tryGetSchemaFromRef
Attempts to dereference a schema $ref against the OpenAPI components. Returns the dereferenced schema if found; otherwise returns the original schema.
Return
dereferenced schema or the original input
Parameters
schema
schema that may contain a $ref
openAPI
OpenAPI document providing component definitions