JTD.Schema (jtd v0.1.0) View Source

Module to convert Map to JSON Type Definition schema struct.

Link to this section Summary

Functions

Convert given map to JTD.Schema.

Verify converted schema.

Link to this section Types

Specs

t() :: %JTD.Schema{
  additional_properties: any(),
  definitions: any(),
  discriminator: any(),
  elements: any(),
  enum: any(),
  mapping: any(),
  metadata: any(),
  nullable: any(),
  optional_properties: any(),
  properties: any(),
  ref: any(),
  type: any(),
  values: any()
}

Link to this section Functions

Specs

from_map(map()) :: t()

Convert given map to JTD.Schema.

Specs

verify(t()) :: t()

Verify converted schema.