Skip to content

Update swagger - #17

Merged
SirCotare merged 2 commits into
mainfrom
update-swagger
Feb 25, 2025
Merged

Update swagger#17
SirCotare merged 2 commits into
mainfrom
update-swagger

Conversation

@SirCotare

@SirCotare SirCotare commented Feb 25, 2025

Copy link
Copy Markdown
Member

There has been a change in the swagger library that breaks our "nullablility hack".

We want to set all properties to be not-null/required by default. And just those annotated with @Nullable should be nullable. Swagger does do it the other way round with no option to change that.

Unfortunately setting the nullablity flag of the property seems to no longer work as it get overwritten at some point. So I changed it to misuse the "title" field to basically do the same thing as before.

Maybe in a future iteration, we could work out something to write json in to the description field to be able to carry more of that metadata in a more controlled way. But for not this should suffice.

@SirCotare SirCotare self-assigned this Feb 25, 2025
@SirCotare
SirCotare merged commit 2e9413c into main Feb 25, 2025
@SirCotare
SirCotare deleted the update-swagger branch February 25, 2025 10:42
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.

2 participants