Added
oaspec/openapi/parser.parse_string_resolvedparses a spec and validates every$refit contains, rejecting missing schema targets and circular schema reference chains so downstream callers no longer have to re-implement the check on top ofparse_string. (#616)
Changed
- The OpenAPI spec AST types (
OpenApiSpec,Info,PathItem,Operation,Parameter,RequestBody,Response,Schema*,RefOr,Components,MediaType,Server,Tag,License,Contact,ExternalDoc,SecurityScheme, and the rest of the public-by-intent surface returned byoaspec/openapi/parser) now live in the new public modulesoaspec/openapi/specandoaspec/openapi/schema, moved out ofoaspec/internal/openapi/*. Callers can now destructure parsed values and pattern-match nested variants without reaching intooaspec/internal/*. (#615)
Install
Download the oaspec escript binary below and place it on your PATH.
Requires Erlang/OTP runtime.
chmod +x oaspec
./oaspec generate --config=oaspec.yaml