String types
string
Section titled “string”A sequence of characters.
"Hello, world!"
$schema: https://json-schema.org/draft/2020-12/schema$id: string.yamltype: stringdescription: A sequence of characters
A Uniform Resource Locator (URL).
"https://example.com/path"
$schema: https://json-schema.org/draft/2020-12/schema$id: url.yamltype: stringformat: uridescription: A Uniform Resource Locator (URL)
A universally unique identifier.
"30a12e5e-5940-4c08-921c-17a8960fcf4b"
$schema: https://json-schema.org/draft/2020-12/schema$id: uuid.yamltype: stringformat: uuiddescription: A universally unique identifier
/** A universally unique identifier */@example("30a12e5e-5940-4c08-921c-17a8960fcf4b")@format("uuid")scalar uuid extends string;
An email address.
"test@example.com"
$schema: https://json-schema.org/draft/2020-12/schema$id: email.yamltype: stringformat: emaildescription: An email address
/** An email address */@example("test@example.com")@format("email")scalar email extends string;
employerTaxId
Section titled “employerTaxId”An Employer Identification Number (EIN).
"12-3456789"
$schema: https://json-schema.org/draft/2020-12/schema$id: employerTaxId.yamltype: stringpattern: "^[0-9]{2}-[0-9]{7}$"description: An Employer Identification Number (EIN)
/** An Employer Identification Number (EIN) */@example("123456789")@pattern("^[0-9]{2}-[0-9]{7}$")scalar employerTaxId extends string;
samUEI
Section titled “samUEI”A Unique Entity Identifier (UEI).
"ABC1234567890"
$schema: https://json-schema.org/draft/2020-12/schema$id: samUEI.yamltype: stringpattern: "^[A-z0-9]{12}$"description: A Unique Entity Identifier (UEI)
/** A Unique Entity Identifier (UEI) */@example("ABC1234567890")@pattern("^[A-z0-9]{12}$")scalar samUEI extends string;
A Data Universal Numbering System (DUNS) number.
"123456789012"
$schema: https://json-schema.org/draft/2020-12/schema$id: duns.yamltype: stringpattern: "^[0-9]{9}$"description: A Data Universal Numbering System (DUNS) number
/** A Data Universal Numbering System (DUNS) number */@example("123456789012")@pattern("^[0-9]{9}$")scalar duns extends string;