http-prompt icon indicating copy to clipboard operation
http-prompt copied to clipboard

Support openapi 'servers'

Open aVolpe opened this issue 2 years ago • 1 comments

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.

aVolpe avatar Apr 24 '23 14:04 aVolpe

Any chance to get it merged? OpenAPI ecosystem is not sleeping and v3 is used all over the place.

nounder avatar Jan 17 '25 21:01 nounder