Skip to content

Conversation

@8W9aG
Copy link
Contributor

@8W9aG 8W9aG commented Apr 15, 2025

  • Check if the type is optional, if it is and the default is undefined set the default to None
  • This allows OpenAPI to understand that the field is not required

@8W9aG 8W9aG enabled auto-merge (squash) April 15, 2025 21:52
@8W9aG 8W9aG merged commit bfd7ac9 into main Apr 15, 2025
21 checks passed
@8W9aG 8W9aG deleted the sackfield/no-optional-required branch April 15, 2025 21:54
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

Successfully merging this pull request may close these issues.

3 participants