Skip to content

Condensed Schema

Note

See Condensed Data for explanation how condensed data handling works.

Contains template allowing to convert condensed_data into a map like object.

Model

An object where the key is the name of the attribute, and the value is one of:

  • cdid pointer to the data in condensed_data to be used as value
  • Another instance of this model
  • An array holding either a cdid pointer or another instance of this model. All cdid pointers contained within an array must omit the number referencing the index within the array:
    • For an array of scalar values this results in cdid ending with . (Example: for data [["value"]] the cdid is .0.).
    • For an array of objects the cdid will contain .. (Example: for data [[["value1_attribute_1"], ["value2_attribute_1"]]] the cdid is .0..0 and .0..1 respectively). Arrays can be nested.

The key must match the following regexp [_a-z0-9]+.

Example

{
  "make": ".0",
  "model": {
    "body_style": ".1.0",
    "price": ".1.1.0"
  },
  "features": [".6."],
  "previous_owners": [{
    "name": ".7..0",
    "city": ".7..1"
  }]
}