Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing mandatory field: 'host' #71

Closed
Techbrunch opened this issue Jun 10, 2020 · 1 comment
Closed

Missing mandatory field: 'host' #71

Techbrunch opened this issue Jun 10, 2020 · 1 comment
Labels

Comments

@Techbrunch
Copy link

I ran into this issue a couple of time:

The OpenAPI specification contained in https://.../api/v2/swagger/json is missing the mandatory field: 'host'

Adding the host in the JSON fixed the issue:

{
    "basePath": "/api/v2",
    "host": "www.xxx.com",
    "definitions": {

I would be nice to default the host to the host of the swagger doc when it's not set and we pass a URL to OpenAPI Parser.

@reversebrain
Copy link

I totally agree with this solution, I solved the same problem adding the host in the JSON.

@aress31 aress31 assigned aress31 and unassigned aress31 Nov 6, 2021
@aress31 aress31 closed this as completed Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants