Code

A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents.

Definition

TypePattern
code^[^\s]+( [^\s]+)*$
{
  "<propertyKey>": "value"
}

Path

Code is a primitive datatype, therefore the only possible path corresponds to its property key when used in operators for search or resolution rules matchers.

// Profile
{
  "properties": {
    "countryCode": {
      "type": "code"
    }
  }
}

// Record
{
  "countryCode": "CA"
}

// Path
countryCode