Amazon Vinyl
    Preparing search index...

    Function toJsonSchema

    • Serializes a validator to a JSON Schema definition.

      Schema nodes (JsonSchemaProviders) serialize themselves so that per-node metadata is honored; other validators contribute their attached JSON Schema fragment, defaulting to the empty schema (which matches any value) when none is attached.

      Parameters

      • source: Validator<any, any>

        The validator or schema node to serialize.

      Returns JsonSchema