mergeWithSubSchemas

fun mergeWithSubSchemas(input: Schema<*>, depth: Int, visitedRefs: MutableSet<String>, resolve: (Schema<*>) -> Schema<*> = { it }): Schema<*>

Merges a schema with its allOf/anyOf/oneOf subschemas into a single flat schema.

Return

merged schema with all subschema constraints applied

Parameters

input

the source schema containing composed subschemas

depth

current recursion depth for cycle protection

visitedRefs

mutable set tracking visited $ref pointers to prevent infinite loops

resolve

function to dereference $ref schemas