oaspec/openapi/parser_schema
Schema-object parsing. Split out of parser.gleam so top-level spec
flow (paths / operations / components) and schema traversal can evolve
independently. The only public entry point is parse_schema_ref; the
rest (object/allOf/oneOf/anyOf/typed/properties/discriminator) is
recursive internal machinery.
Values
pub fn parse_schema_ref(
node: yay.Node,
path: String,
index: location_index.LocationIndex,
) -> Result(schema.SchemaRef, diagnostic.Diagnostic)
Parse a schema ref ($ref) or an inline schema object.