Skip to content

Conversation

@aVolpe
Copy link

@aVolpe aVolpe commented Apr 24, 2023

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 added 3 commits April 23, 2023 22:04
This commit also fixes a test with the previous spec file
(https://api.apis.guru/v2/specs/medium.com/1.0.0/swagger.json) that is
no longer available.

Signed-off-by: Arturo Volpe <[email protected]>
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:

```yaml
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 httpie#197

Signed-off-by: Arturo Volpe <[email protected]>
@nounder
Copy link

nounder commented Jan 17, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: OpenAPI schemas give wrong completion when the root of the API is a path relative to the domain

2 participants