You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an example API, hosts at https://statsapi.web.nhl.com/api/v1, which has its root at the path/api/v1 relative to the domain. I also have the corresponding (schema)[https://github.com/erunion/sport-api-specifications/blob/master/nhl/nhl.yaml]. However, when I try:
I find that the program displays completions as if there were no path given in the API root URL. So for instance, typing cd / givens the completion options from the schemas paths (divisions, etc..) rather than the actual root relative to the domain /api, as it should.
http-prompt 2.1.0 python 3.9
The text was updated successfully, but these errors were encountered:
aVolpe
added a commit
to aVolpe/http-prompt
that referenced
this issue
Apr 24, 2023
In openapi 3 the 'schemes' and 'basePath' were replaced with a single
property called 'servers', in this property we introduce the avaiable
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.
fixeshttpie#197
Signed-off-by: Arturo Volpe <[email protected]>
aVolpe
added a commit
to aVolpe/http-prompt
that referenced
this issue
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:
```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.
fixeshttpie#197
Signed-off-by: Arturo Volpe <[email protected]>
I have an example API, hosts at
https://statsapi.web.nhl.com/api/v1
, which has its root at the path/api/v1
relative to the domain. I also have the corresponding (schema)[https://github.com/erunion/sport-api-specifications/blob/master/nhl/nhl.yaml]. However, when I try:http-prompt https://statsapi.web.nhl.com/api/v1 --spec nhl.yaml
I find that the program displays completions as if there were no path given in the API root URL. So for instance, typing
cd /
givens the completion options from the schemas paths (divisions
, etc..) rather than the actual root relative to the domain/api
, as it should.http-prompt 2.1.0
python 3.9
The text was updated successfully, but these errors were encountered: