If the schema has a recursive reference, the recursive reference would be repeated
as much as the props.recursive depth. If you've configured the props.recursive
as false or 0, it would be failed and return an IOpenApiSchemaError.
Also, if there's a OpenApi.IJsonSchema.IReference type which cannot find
the matched type in the OpenApi.IComponents.schemas, it would also be failed
and return an IOpenApiSchemaError either.
Escape from the OpenApi.IJsonSchema.IReference type.
Escape from the OpenApi.IJsonSchema.IReference type, replacing the every references to the actual schemas. If the escape is successful, the returned schema never contains any OpenApi.IJsonSchema.IReference type in its structure.
If the schema has a recursive reference, the recursive reference would be repeated as much as the
props.recursive
depth. If you've configured theprops.recursive
asfalse
or0
, it would be failed and return an IOpenApiSchemaError. Also, if there's a OpenApi.IJsonSchema.IReference type which cannot find the matched type in the OpenApi.IComponents.schemas, it would also be failed and return an IOpenApiSchemaError either.