Skip to content

@camera.ui/sdk / storage / JsonStringSchema

Interface: JsonStringSchema

Defined in: storage/index.ts:120

String-specific schema options.

Use format to render the value with a specialized UI control:

  • 'date-time' — ISO 8601 date+time picker.
  • 'date' — date-only picker.
  • 'time' — time-only picker.
  • 'email' — email input with format validation.
  • 'uuid' — UUID input with format validation.
  • 'ipv4' — IPv4 address input.
  • 'ipv6' — IPv6 address input.
  • 'password' — masked input that hides characters.
  • 'qrCode' — value is rendered as a QR code (read-only display).
  • 'image' — value is a data URL or path; rendered as a thumbnail.

Extended by

Properties

format?

optional format?: "date-time" | "date" | "time" | "email" | "uuid" | "ipv4" | "ipv6" | "password" | "qrCode" | "image"

Defined in: storage/index.ts:123

String format for validation/display. See type docs for behavior per format.


maxLength?

optional maxLength?: number

Defined in: storage/index.ts:127

Maximum string length (inclusive).


minLength?

optional minLength?: number

Defined in: storage/index.ts:125

Minimum string length (inclusive).


type

type: "string"

Defined in: storage/index.ts:121