Sha256: 43219a4297b8b14d257a422991d9fd84a67808842dae61cbfcbd518c356d3939

Contents?: true

Size: 1.75 KB

Versions: 11

Compression:

Stored size: 1.75 KB

Contents

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "deviceName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "description": {
      "type": "string",
      "maxLength": 32767
    },
    "deviceDescription": {
      "type": "string",
      "maxLength": 32767
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[0-9a-zA-Z_-]{1,255}$"
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "required": [
          "key",
          "value"
        ],
        "additionalProperties": false
      }
    },
    "attributes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[0-9a-zA-Z_-]{1,255}$"
          },
          "dataType": {
            "type": "string",
            "enum": [
              "string",
              "number",
              "gps",
              "boolean"
            ]
          }
        },
        "required": [
          "name",
          "dataType"
        ],
        "additionalProperties": false
      }
    },
    "deviceClass": {
      "type": "string",
      "enum": [
        "standalone",
        "gateway",
        "peripheral",
        "floating",
        "virtual"
      ]
    },
    "gatewayId": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    }
  },
  "additionalProperties": false,
  "required": [
    "name"
  ]
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
losant_rest-1.1.2 schemas/deviceRecipePost.json
losant_rest-1.1.1 schemas/deviceRecipePost.json
losant_rest-1.1.0 schemas/deviceRecipePost.json
losant_rest-1.0.8 schemas/deviceRecipePost.json
losant_rest-1.0.7 schemas/deviceRecipePost.json
losant_rest-1.0.6 schemas/deviceRecipePost.json
losant_rest-1.0.5 schemas/deviceRecipePost.json
losant_rest-1.0.4 schemas/deviceRecipePost.json
losant_rest-1.0.3 schemas/deviceRecipePost.json
losant_rest-1.0.2 schemas/deviceRecipePost.json
losant_rest-1.0.1 schemas/deviceRecipePost.json