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 ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented nullable fields for openapi spec generation #865

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

Conversation

skytz
Copy link

@skytz skytz commented Aug 15, 2024

I've added the ability to set nullable fields on a struct with poem_api::Object derive.

Following the spec here:https://github /OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#fixed-fields-20

Either for each individual field, withnullableattibute, or at the struct level withnullable_all.

It also solves this opened issue:#701

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.

1 participant