http-prompt
http-prompt copied to clipboard
Support openapi 'servers'
In openapi 3 the 'schemes' and 'basePath' were replaced with a single property called 'servers', in this property we introduce the available servers with the full path, for example:
servers:
- url: https://statsapi.web.nhl.com/api/v1
With this change, a flag is added in the parsing of the context
is_open_api that can be used to check for the new properties available
in open api 3.
fixes #197
This PR also fixes the test test_spec_from_http_only that relied on an old spec that is no longer available.
Any chance to get it merged? OpenAPI ecosystem is not sleeping and v3 is used all over the place.