TypeSpec.JsonSchema
Json
Specify that the provided template argument should be emitted as raw JSON or YAML
as opposed to a schema. Use in combination with the
Template Parameters
Name | Description |
---|
Data | the type to convert to raw JSON |
Properties
Name | Type | Description |
---|
value | Data | |
Well-known JSON Schema formats.
Name | Value | Description |
---|
dateTime | "date-time" | |
date | "date" | |
time | "time" | |
duration | "duration" | |
email | "email" | |
idnEmail | "idn-email" | |
hostname | "hostname" | |
idnHostname | "idn-hostname" | |
ipv4 | "ipv4" | |
ipv6 | "ipv6" | |
uri | "uri" | |
uriReference | "uri-reference" | |
iri | "iri" | |
iriReference | "iri-reference" | |
uuid | "uuid" | |
jsonPointer | "json-pointer" | |
relativeJsonPointer | "relative-json-pointer" | |
regex | "regex" | |