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

OpenAPI3 output does not handle nullable values correctly #58

Closed
reieRMeister opened this issue Feb 25, 2022 · 3 comments
Closed

OpenAPI3 output does not handle nullable values correctly #58

reieRMeister opened this issue Feb 25, 2022 · 3 comments

Comments

@reieRMeister
Copy link

Nominal

Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:

    + errors (required, array, nullable)

into this:

  errors:
    type: array
    nullable: true
    items: {}

Actual

Rendering an API Blueprint document to OpenAPI3 with flag --open-api-3 converts an input property like this:

    + errors (required, array, nullable)

into this:

  errors:
    type:
      - array
      - 'null'
    items: {}

Remarks

According to the OpenAPI spec »null is not supported as a type« and instead the nullable property must be used.

@kminami
Copy link
Owner

kminami commented Mar 2, 2022

Thank you for reporting!
I have fixed this at v1.14.1.
Please confirm.

@reieRMeister
Copy link
Author

Looks good to me. 👍

@kminami
Copy link
Owner

kminami commented Mar 24, 2022

Thanks!

@kminami kminami closed this as completed Mar 24, 2022
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

No branches or pull requests

2 participants