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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config for inline JSON Schema maps #2449

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Nov 8, 2024

Resolves #2443

This commit adds the useInlineMaps setting to allow users to configure JSON Schema conversion to inline converted map shapes instead of creating references.

This is distinct from the mapStrategy setting in that it's about the placement of the generated type and not how the type is generated. Combining the two would require two strategies for each type of map converted.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kstich kstich force-pushed the flat_jsonschema_map_strategies branch from 4b8a368 to 29d7ded Compare November 11, 2024 07:41
This commit adds the useInlineMaps setting to allow users to configure
JSON Schema conversion to inline converted map shapes instead of creating
references.
@kstich kstich force-pushed the flat_jsonschema_map_strategies branch from 29d7ded to e754ef4 Compare November 11, 2024 07:45
@kstich kstich marked this pull request as ready for review November 11, 2024 07:46
@kstich kstich requested a review from a team as a code owner November 11, 2024 07:46
@kstich kstich requested a review from sugmanue November 11, 2024 07:46
@kstich kstich merged commit d8c83fa into main Nov 11, 2024
14 checks passed
@kstich kstich deleted the flat_jsonschema_map_strategies branch November 11, 2024 17:02
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.

Inline {map,list}_statements in conversion to OpenAPI
2 participants