Skip to content

Fix: Generate models for all JSON media types#1177

Merged
jamietanna merged 1 commit intomasterfrom
defect/all-json-types
Aug 7, 2023
Merged

Fix: Generate models for all JSON media types#1177
jamietanna merged 1 commit intomasterfrom
defect/all-json-types

Conversation

@jamietanna
Copy link
Copy Markdown
Member

@jamietanna jamietanna commented Aug 4, 2023

As highlighted in #1168, we have some cases where JSON-compatible media
types aren't having their respective models generated, as we previously
only looked for application/json.

To resolve this, we can make sure that any media types that are
compatible with JSON (via our utility method) can have their types
generated.

This is a fix for #1168, which could also be deemed a feature. However,
as this has broken in the upgrade from v1.12.x to v1.13.x, this is being
treated as a feature.

Closes #1168.

As highlighted in #1168, we have some cases where JSON-compatible media
types aren't having their respective models generated, as we previously
only looked for `application/json`.

To resolve this, we can make sure that any media types that are
compatible with JSON (via our utility method) can have their types
generated.

This is a fix for #1168, which could also be deemed a feature. However,
as this has broken in the upgrade from v1.12.x to v1.13.x, this is being
treated as a feature.

Closes #1168.
@jamietanna jamietanna force-pushed the defect/all-json-types branch from a0f2104 to 6df40d3 Compare August 5, 2023 15:47
@jamietanna jamietanna changed the title Generate types for all JSON-conforming types Fix: Generate models for all JSON media types Aug 5, 2023
@jamietanna jamietanna requested a review from a user August 5, 2023 15:47
@jamietanna jamietanna marked this pull request as ready for review August 5, 2023 15:47
@jamietanna jamietanna merged commit e90f06d into master Aug 7, 2023
@jamietanna jamietanna deleted the defect/all-json-types branch August 7, 2023 15:05
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.

Generated API code no longer compiles after upgrade form 1.12.4 to 1.13.2

1 participant