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

Improve handling of nullable Raw fields for OAS 3.1.0 #961

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

tsokalski
Copy link
Contributor

@tsokalski tsokalski commented Dec 6, 2024

Modified the implementation of field2nullable for OAS 3.1.0 to only append "null" to the list of types if there is already a type for the field. This prevents issues in which a nullable field with no specific associated OAS type can get bound to "type": ["null"], which is overly restrictive.

Fixes #960.

@lafrech
Copy link
Member

lafrech commented Dec 7, 2024 via email

@tsokalski
Copy link
Contributor Author

tsokalski commented Dec 10, 2024

Sorry about that, I didn't realize a global .gitignore was a thing - thanks for the tip!

I've removed the offending section from the .gitignore file. Please let me know if you have any other feedback.

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.

Nullable Raw fields are not handled well for OAS 3.1.0
2 participants