Converts a @cleverbrush/schema builder to a JSON Schema object suitable
for embedding in an OpenAPI 3.1 spec (no $schema header, Draft 2020-12).
Returns an empty schema {} when the input is null or undefined.
When a SchemaRegistry or a custom resolver function is provided, any
schema instance that resolves to a name will be emitted as a
$ref: '#/components/schemas/<name>' pointer instead of being inlined.
Converts a
@cleverbrush/schemabuilder to a JSON Schema object suitable for embedding in an OpenAPI 3.1 spec (no$schemaheader, Draft 2020-12).Returns an empty schema
{}when the input isnullorundefined.When a SchemaRegistry or a custom resolver function is provided, any schema instance that resolves to a name will be emitted as a
$ref: '#/components/schemas/<name>'pointer instead of being inlined.