Peri.JSONSchema.Decoder (peri v0.8.3)
View SourceDecodes a JSON Schema (Draft 7) map into a Peri schema definition.
Returns {:ok, schema} on success or {:error, errors} if the resulting
Peri schema fails Peri.validate_schema/1.
Prefer Peri.from_json_schema/1 as the public entry point.
Summary
Functions
@spec decode(map()) :: {:ok, Peri.schema()} | {:error, term()}