adk_openapi_schema (erlang_adk v0.7.0)
View SourceBounded local-reference resolver and JSON Schema compiler for OpenAPI.
Summary
Functions
Resolve and compile the provider-neutral JSON Schema subset supported by adk_json_schema. Unsupported assertion keywords are rejected rather than silently weakening the API contract.
Resolve an object which is either inline or a single local $ref.
Functions
-spec compile(map(), term(), map()) -> {ok, adk_json_schema:schema()} | {error, term()}.
Resolve and compile the provider-neutral JSON Schema subset supported by adk_json_schema. Unsupported assertion keywords are rejected rather than silently weakening the API contract.
-spec reject_remote_refs(term(), pos_integer()) -> ok | {error, term()}.
Resolve an object which is either inline or a single local $ref.
-spec validate_json(term(), pos_integer()) -> ok | {error, term()}.