Skip to content

Conversation

@florentchauveau
Copy link
Contributor

@florentchauveau florentchauveau commented Jun 2, 2022

This fixes #604. Properties that are both readonly and required should not be pointers on server-side code. Also, they should not be marked as "omitEmpty".

@florentchauveau florentchauveau force-pushed the fix-readonly-required branch 3 times, most recently from 058bbfb to 5f2116a Compare June 3, 2022 10:23
@florentchauveau florentchauveau force-pushed the fix-readonly-required branch from 513d7d1 to f542a2f Compare June 8, 2022 12:08
@florentchauveau florentchauveau force-pushed the fix-readonly-required branch 4 times, most recently from c91f581 to 34b3268 Compare July 15, 2022 15:54
@deepmap-marcinr deepmap-marcinr merged commit 6273e1a into oapi-codegen:master Jul 25, 2022
glrf added a commit to projectsyn/lieutenant-api that referenced this pull request Jul 29, 2022
This version introduces many breaking changes, but the old code gen
behaviour can be restored with the correct configuration.

However there is currently a bug, preventing us from completely switching
back to the old behaviour. The provided config should generate
equivalent code as soon as oapi-codegen/oapi-codegen#605
is released.
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
…ters (oapi-codegen#605)

This fixes oapi-codegen#604.

Co-authored-by: Marcin Romaszewicz <47459980+deepmap-marcinr@users.noreply.github.com>
bastjan pushed a commit to projectsyn/lieutenant-api that referenced this pull request May 24, 2024
This version introduces many breaking changes, but the old code gen
behaviour can be restored with the correct configuration.

However there is currently a bug, preventing us from completely switching
back to the old behaviour. The provided config should generate
equivalent code as soon as oapi-codegen/oapi-codegen#605
is released.
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
…ters (oapi-codegen#605)

This fixes oapi-codegen#604.

Co-authored-by: Marcin Romaszewicz <47459980+deepmap-marcinr@users.noreply.github.com>
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.

AllOf does not respect required for referenced properties

2 participants