Specify that the provided template argument should be emitted as raw JSON or YAML
as opposed to a schema. Use in combination with the
model TypeSpec.JsonSchema.Json<Data>
| Name | Description |
|---|
| Data | the type to convert to raw JSON |
| Name | Type | Description |
|---|
| value | Data | |
Well-known JSON Schema formats.
enum TypeSpec.JsonSchema.Format
| 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" | |