Skip to content

Don't deep copy / stringify-keys the OAD to build a root schema anymore (4.0.1) - #504

Merged
ahx merged 2 commits into
mainfrom
share-root-json-schema
Sep 28, 2026
Merged

ahx merged 2 commits into
mainfrom
share-root-json-schema

Conversation

@ahx

@ahx ahx commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Reduce memory usage with large API descriptions. Schemas no longer each deep-copy (stringify keys) the whole OAD build a root schema. This is a json_schemer specific optimization.

@ahx ahx changed the title Share root json schema (4.0.1) Don't deep copy / stringify-keys the OAD to build a root schema anymore (4.0.1) Sep 28, 2026
ahx added 2 commits September 28, 2026 11:38
This is a json_schemer specific optimization so reduce memory usage with large API descriptions. Schemas no longer each deep-copy (stringify keys) the whole OAD build a root schema.

Also added regression test to make sure we still deep-stringify keys in OpenapiFirst.parse
Schemas no longer each deep-copy (stringify keys) the whole OAD build a root schema. This is a json_schemer specific optimization.
@ahx
ahx force-pushed the share-root-json-schema branch from d5e2ebd to 39e4234 Compare September 28, 2026 09:39
@ahx
ahx merged commit 5392e04 into main Sep 28, 2026
32 checks passed
@ahx
ahx deleted the share-root-json-schema branch September 28, 2026 09:45
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