JSON Schemas

From Heatweb Wiki
Jump to: navigation, search


Pipe

File:pipes_schema.json

{
  "type": "object",
  "title": "Pipe",
  "properties": {
    "class": {
      "type": "string",
      "title": "Class",
      "description": "The class of pipe",
      "minLength": 3
    },
    "length": {
      "type": "number",
      "title": "Length [m]",
      "minimum": 0.1
    },
    "diameter": {
      "type": "number",
      "title": "Diameter [mm]",
      "minimum": 6
    },
   "material": {
      "title": "Material",
      "type": "string",
      "enum": [
        "copper",
        "steel",
        "plastic"
      ]
    },
    "insulation": {
      "type": "number",
      "title": "Insulation thickness [mm]",
      "minimum": 1
    },
    "dx": {
      "type": "number",
      "title": "[m]"
    },
    "dy": {
      "type": "number",
      "title": "[m]"
    },
    "dz": {
      "type": "number",
      "title": "[m]"
    },
    "pipes": {
      "type": "object",
      "title": "Downstream pipes"
    },
    "dislike": {
      "type": "array",
      "title": "I dislike...",
      "items": {
        "type": "string",
        "title": "I hate"
      }
    }
  },
  "required": [
    "length"
  ]
}