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

Showing undefined if an OpenAPI spec has no description or contact object in info object #102

Closed
Dhroov7 opened this issue Jul 25, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Dhroov7
Copy link
Contributor

Dhroov7 commented Jul 25, 2019

Resulting collection description is undefined as this spec has no description.

As per OpenAPI spec title and version is required in info object. Rest are optional

Resulting Output:
Screenshot 2019-07-25 at 3 50 05 PM

OpenAPI Spec:

{
	"openapi": "3.0.0",
	"info": {
		"version": "1.0.0",
		"title": "Swagger Petstore",
		"license": {
			"name": "MIT"
		},
                "contact": {
                        "name": "API Support",
  "url": "http://www.example.com/support",
  "email": "[email protected]"
                }
	},
	"servers": [
		{
			"url": "http://petstore.swagger.io/v1"
		}
	],
	"paths": {
		"/pets": {
			"get": {
				"summary": "Info for a specific pet",
				"operationId": "showPetById",
				"tags": [
					"pets"
				],
				"responses": {
					"200": {
						"description": "Expected response to a valid request",
						"content": {
							"application/json": {
								"schema": {
									"type:": "integer",
									"format": "int32"
								}
							}
						}
					}
				}
			}
		}
	}
}
@Dhroov7
Copy link
Contributor Author

Dhroov7 commented Sep 18, 2019

Resolved in 7.7.0!

@Dhroov7 Dhroov7 closed this as completed Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants