Skip to content
Schemas/Value types

Dollars

US dollars as a decimal string.

Typestring

Format

pattern ^\d+\.\d{2}$

Example values

JSON example
"100.00"

JSON schema

Dollars
{
  "type": "string",
  "pattern": "^\\d+\\.\\d{2}$",
  "description": "Dollars and cents as a decimal string.",
  "examples": [
    "100.00"
  ]
}
Next in schemasAtomic

We use necessary cookies to run this site. With your permission, we also use analytics and advertising technologies to measure visits and downloads.