TypeSafeSDK.Schema (TypeSafeSDK v0.4.1)

Copy Markdown View Source

Self-contained JSON Schemas derived from the committed OpenAPI 3.1 document.

These are the wire schemas, not a second definition of stricter semantic constraints (option count, relational domains, probability sums). All component references become local $defs references. Unknown OpenAPI annotations survive.

Summary

Functions

documents(openapi)

@spec documents(map()) :: %{required(String.t()) => map()}

export(directory, source \\ source_path())

@spec export(String.t(), String.t()) :: :ok

source_path()

@spec source_path() :: String.t()

verify(directory, source \\ source_path())

@spec verify(String.t(), String.t()) :: :ok | {:error, [String.t()]}