Skip to content

Expose openapi3.Schema in the Schema object#365

Merged
1 commit merged into
oapi-codegen:masterfrom
curvegrid:expose-schema
Jun 2, 2021
Merged

Expose openapi3.Schema in the Schema object#365
1 commit merged into
oapi-codegen:masterfrom
curvegrid:expose-schema

Conversation

@natsukagami
Copy link
Copy Markdown
Contributor

@natsukagami natsukagami commented May 19, 2021

This change exposes the extra information embedded in the OAPI schema in the template. This extends the possibilities offered by oapi-codegen.

One such use is validation code generation (which used to be dependent on #225), which uses many fields inside the openapi3.Schema struct that was not otherwise exposed (Min/Max, Pattern, Min/MaxLen, ...)

The change should not interfere with any other parts of the code, and is not a breaking change.

@ghost ghost merged commit d860c63 into oapi-codegen:master Jun 2, 2021
@natsukagami natsukagami deleted the expose-schema branch June 3, 2021 04:12
natsukagami added a commit to curvegrid/oapi-codegen that referenced this pull request Jun 3, 2021
* Rely on OAPI schema

* Remove Validations patch

* Minimize changes
vlastahajek pushed a commit to bonitoo-io/oapi-codegen that referenced this pull request Aug 9, 2021
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
This pull request was closed.
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