Skip to content

feat(jsonschema): added support for $defs and const keyword - #1579

Open
Dzordzu wants to merge 22 commits into
juhaku:masterfrom
Dzordzu:jsonschema-features
Open

feat(jsonschema): added support for $defs and const keyword#1579
Dzordzu wants to merge 22 commits into
juhaku:masterfrom
Dzordzu:jsonschema-features

Conversation

@Dzordzu

@Dzordzu Dzordzu commented Jul 5, 2026

Copy link
Copy Markdown

Changes

  • Added support for const type
  • Added support for $defs
  • Added methods that support changing $ref values from imported schemas /#defs/ to /#schema/components
  • Added methods allowing extraction of the subschemas from $defs keyword to the separate entities
  • Multiple tests and docs

Additional changes

  • Fix for the missing title keyword within AnyOf

Why?

Sometimes part of the code has been generated from jsonschema files. In that
case (for the generated structures) ToSchema can be implemented by just
loading proper jsonschema file.

Notes

@Dzordzu
Dzordzu force-pushed the jsonschema-features branch from e4209ac to 76bf3ca Compare July 6, 2026 07:18
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