Hyperlinkv0.8.0-beta.28

SchemaRepresentation

SchemaRepresentation.Stringinterfaceeffect/SchemaRepresentation.ts:192
String

The string type with optional validation checks.

Details

checks holds string-specific constraints, such as min/max length, pattern, and UUID checks. contentMediaType and contentSchema indicate that the string contains encoded data, such as "application/json" with a nested schema.

export interface String {
  readonly _tag: "String"
  readonly annotations?: Schema.Annotations.Annotations | undefined
  readonly checks: ReadonlyArray<Check<StringMeta>>
  readonly contentMediaType?: string | undefined
  readonly contentSchema?: Representation | undefined
}
Referenced by 2 symbols