mergeWithSubSchemas
Merges a schema with its allOf/anyOf/oneOf subschemas into a single flat schema, resolving $ref schemas against the components of openAPI.
Convenience overload of mergeWithSubSchemas that installs the standard #/components/schemas/ resolver (SchemaTypeHelpers.tryGetSchemaFromRef) and starts with a fresh traversal state.
Return
merged schema with all subschema constraints applied
Parameters
the source schema containing composed subschemas
OpenAPI document providing component definitions for $ref resolution
Merges a schema with its allOf/anyOf/oneOf subschemas into a single flat schema.
Return
merged schema with all subschema constraints applied
Parameters
the source schema containing composed subschemas
current recursion depth for cycle protection
mutable set tracking visited $ref pointers to prevent infinite loops
function to dereference $ref schemas