Actual Behavior
Every time I try to validate a request or a response from a single endpoint (base_url + path) the validation function gives me a ServerNotFound error unless i explicitly change the openAPI spec file I'm working with to include the base_url + path combination in the 'servers' list.
Expected Behavior
Given a base_url in the validate_request/validate_response function, that should be used to check with the servers list (or skip the check if servers is omitted in the specification entirely as it is not even required) and the rest of the url (the actual path) should be checked under the 'paths' in the openAPI spec file.
Steps to Reproduce
- openAPI spec file includes server list or does not include server list
- make a request on an endpoint that is not fully listed in the servers list:
e.g.: GET to "https://example.dev/v1/test" if only "https://example.dev/v1" is listed in the 'servers' list
OpenAPI Core Version
0.17.1
OpenAPI Core Integration
Requests
Affected Area(s)
Validation
References
No response
Anything else we need to know?
Go easy on me if this is expected behavior this is one of my first days working with this.
Would you like to implement a fix?
No