• Converts the shape to a JSON schema.

    Parameters

    • shape: AnyShape

      The shape to convert.

    • Optionaloptions: JSONSchemaOptions

      The JSON schema options.

    Returns JSONSchema

  • Converts definitions to a JSON schema.

    Parameters

    • shapes: Dict<AnyShape>

      The mapping from a shape name to shape.

    • Optionaloptions: JSONSchemaOptions

      The JSON schema options.

    Returns JSONSchema