JsonSchema Module
JSON Schema export for the JSON wire shape described by `Schema<'T>`. This exports the structural JSON contract implied by the schema. Mapping wrappers such as `Schema.map` and `Schema.tryMap` contribute the underlying wire shape, while field-policy wrappers affect whether object properties are listed as required.
Types and nested modules
| Type/Module | Description |
|
Helpers for building JSON Schema import options. |
|
|
Validates a JSON Schema `format` string against domain-specific rules. |
|
|
Options for JSON Schema import. Import stays structural by default, but callers can opt into extra string-format checks by registering validators for specific `format` names. |
|
|
Describes the outcome of importing a JSON Schema into `Schema |
Functions and values
| Function or value |
Description
|
|
Generates a compact JSON Schema document for the JSON wire shape of a schema. The exported schema describes the JSON contract only. XML-specific shape details and business-rule semantics inside mapping functions are not representable here and therefore export as the underlying wire form.
|
|
|
Full Usage:
importUsing options jsonSchemaText
Parameters:
ImportOptions
jsonSchemaText : string
Returns: Schema<JsonValue>
|
Imports the deterministic JSON Schema subset into a JSON-only `Schema
|
Full Usage:
importWithReport jsonSchemaText
Parameters:
string
Returns: ImportReport
|
Imports JSON Schema into `Schema
|
Full Usage:
importWithReportUsing options jsonSchemaText
Parameters:
ImportOptions
jsonSchemaText : string
Returns: ImportReport
|
Imports the deterministic JSON Schema subset into a JSON-only `Schema
|
CodecMapper