adk_openapi_schema (erlang_adk v0.7.0)

View Source

Bounded 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

compile(Root, Schema, Opts)

-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.

reject_remote_refs(Value, MaxDepth)

-spec reject_remote_refs(term(), pos_integer()) -> ok | {error, term()}.

resolve_object(Root, Value, Opts)

-spec resolve_object(map(), term(), map()) -> {ok, map()} | {error, term()}.

Resolve an object which is either inline or a single local $ref.

validate_json(Value, MaxDepth)

-spec validate_json(term(), pos_integer()) -> ok | {error, term()}.