ts_ids_core.schema.dimension module

Model Dimension[source]

Bases: DimensionMetadata

A dimension of a DataCube

Show JSON schema
{
   "description": "A dimension of a DataCube",
   "type": "object",
   "properties": {
      "name": {
         "type": [
            "string",
            "null"
         ]
      },
      "unit": {
         "type": [
            "string",
            "null"
         ]
      },
      "scale": {
         "items": {
            "type": [
               "number",
               "null"
            ]
         },
         "type": "array"
      }
   },
   "additionalProperties": false,
   "required": [
      "name",
      "unit",
      "scale"
   ]
}

Validators:
  • all_abstract_fields_implemented » all fields

field name: Required[Nullable[str]]
field scale: Required[List[Nullable[float]]]
field unit: Required[Nullable[str]]
Model DimensionMetadata[source]

Bases: IdsElement

Metadata for a dimension of a DataCube

Show JSON schema
{
   "description": "Metadata for a dimension of a DataCube",
   "type": "object",
   "properties": {
      "name": {
         "type": [
            "string",
            "null"
         ]
      },
      "unit": {
         "type": [
            "string",
            "null"
         ]
      }
   },
   "additionalProperties": false,
   "required": [
      "name",
      "unit"
   ]
}

Validators:
  • all_abstract_fields_implemented » all fields

field name: Required[Nullable[str]]
field unit: Required[Nullable[str]]