Corresponds to the Schema Object in the OpenAPI specification which in turn uses the JSON Schema Specification.
Since this is its own separate specification, the package json-tools/json-schema is used. Please see their docs for accessible values
Because this modules is a wrapper around a separate package and its types, its interface is slightly different. We still keep the opaque type Schema and matching decode. The primary differnce is around querying. Instead of providing querying functions for the JSON Schema spec, I provide a singular get function for accessing the wrapped json-tools/json-schema Json.Schema.Definitions.Schema value.
This is a little unusal compared to the rest of the package but the hope is that this allows for easier migration to a fully compliant JSON Schema package in a future release.
OpenApi.Types.Schema
decode : Json.Decode.Decoder Schema
encode : Schema -> Json.Encode.Value
get : Schema -> Json.Schema.Definitions.Schema
Given the above Schema returns a json-tools/json-schema Json.Schema.Definitions.Schema