String types
string
Section titled “string”A sequence of characters.
A JSON example of this model.
"Hello, world!"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: string.yamltype: stringdescription: A sequence of characters
A Uniform Resource Locator (URL).
A JSON example of this model.
"https://example.com/path"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: url.yamltype: stringformat: uridescription: A Uniform Resource Locator (URL)
A universally unique identifier.
A JSON example of this model.
"30a12e5e-5940-4c08-921c-17a8960fcf4b"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: uuid.yamltype: stringexamples: - 30a12e5e-5940-4c08-921c-17a8960fcf4bformat: uuiddescription: A universally unique identifier
The TypeSpec code for this model.
/** A universally unique identifier */@example("30a12e5e-5940-4c08-921c-17a8960fcf4b")@format("uuid")scalar uuid extends string;
An email address.
A JSON example of this model.
"test@example.com"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: email.yamltype: stringexamples: - test@example.comformat: emaildescription: An email address
The TypeSpec code for this model.
/** An email address */@example("test@example.com")@format("email")@Versioning.added(CommonGrants.Versions.v0_2)scalar email extends string;
employerTaxId
Section titled “employerTaxId”An Employer Identification Number (EIN).
A JSON example of this model.
"12-3456789"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: employerTaxId.yamltype: stringexamples: - 12-3456789pattern: ^[0-9]{2}-[0-9]{7}$description: An Employer Identification Number (EIN) issued by the IRS
The TypeSpec code for this model.
/** An Employer Identification Number (EIN) issued by the IRS */@example("12-3456789")@pattern("^[0-9]{2}-[0-9]{7}$")@Versioning.added(CommonGrants.Versions.v0_2)scalar employerTaxId extends string;
samUEI
Section titled “samUEI”A Unique Entity Identifier (UEI).
A JSON example of this model.
"12ABC34DEF56"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: samUEI.yamltype: stringexamples: - 12ABC34DEF56pattern: ^[A-z0-9]{12}$description: A Unique Entity Identifier (UEI) issued by SAM.gov
The TypeSpec code for this model.
/** A Unique Entity Identifier (UEI) issued by SAM.gov */@example("12ABC34DEF56")@pattern("^[A-z0-9]{12}$")@Versioning.added(CommonGrants.Versions.v0_2)scalar samUEI extends string;
A Data Universal Numbering System (DUNS) number.
A JSON example of this model.
"12-345-6789"
The JSON Schema for this model.
$schema: https://json-schema.org/draft/2020-12/schema$id: duns.yamltype: stringexamples: - 123456789-1234 - 12-345-6789 - "123456789"description: A Data Universal Numbering System (DUNS) number
The TypeSpec code for this model.
/** A Data Universal Numbering System (DUNS) number */@example("123456789")@example("12-345-6789")@example("123456789-1234")@Versioning.added(CommonGrants.Versions.v0_2)scalar duns extends string;