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

nullable: true and allOf #1627

Open
2 tasks
huomaozi opened this issue May 15, 2024 · 1 comment
Open
2 tasks

nullable: true and allOf #1627

huomaozi opened this issue May 15, 2024 · 1 comment

Comments

@huomaozi
Copy link

when I define the interface with the field {field1: T | null} the swagger output will contains both nullable and allOf, like below:

NullableOption_Calendar_:
allOf:
- $ref: "#/components/schemas/Calendar"
nullable: true

may I know does it possible to remove the allOf? because only 1 type here, seems allOf is useless.

Sorting

  • I'm submitting a ...

    • bug report
    • feature request
    • [* ] support request
  • I confirm that I

    • [* ] used the search to make sure that a similar issue hasn't already been submit

Expected Behavior

is it possible to

NullableOption_Calendar_:
$ref: "#/components/schemas/Calendar"
nullable: true

Current Behavior

Possible Solution

Steps to Reproduce

Context (Environment)

Version of the library:
Version of NodeJS:

  • Confirm you were using yarn not npm: [ ]

Detailed Description

Breaking change?

Copy link

Hello there huomaozi 👋

Thank you for opening your very first issue in this project.

We will try to get back to you as soon as we can.👀

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

1 participant