OpenAPISPecification contains prebuilt definitions from spec. It speeds up both matching and response generation.
request validation moved outside of matcher. paths is a dict. so there couldn't be several identical paths that differ only in header/query/body. Request validation against a request schema moved to faker.
Faker tries to generate a valid error message according to the spec if validation breaks. It's more realistic then throwing 500 unconditionally.
Fixes #
Description
paths
is a dict. so there couldn't be several identical paths that differ only in header/query/body. Request validation against a request schema moved to faker.How to test