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

Type null in OpenAPI 3.0 #48

Open
AlexVarchuk opened this issue May 18, 2023 · 0 comments
Open

Type null in OpenAPI 3.0 #48

AlexVarchuk opened this issue May 18, 2023 · 0 comments

Comments

@AlexVarchuk
Copy link

What happened?
Suggest null in schema->type for OpenApi 3.0

What should have happened instead?
Null should not displayed in openapi 3.0 definition

Minimal reproducible OpenAPI snippet

openapi: 3.0.0
servers:
  - url: //petstore.swagger.io/v2
    description: Default server
info:
  description: Test
  version: 1.0.0
  title: Swagger Petstore
  termsOfService: 'http://swagger.io/terms/'
  contact:
    name: API Support
    email: [email protected]
    url: https://github.com/Redocly/redoc
  license:
    name: Apache 2.0
    url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
paths:
  /pet:
    post:
      tags:
        - pet
      summary: Add a new pet to the store
      description: Add new pet to the store inventory.
      operationId: addPet
      responses:
        '200':
          description: wrong type suggestions
          content:
            application/json:
              schema:
                type: null <--here is problem

Screenshots

Screenshot 2023-05-18 at 16 58 58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant