UNPKG

@itentialopensource/adapter-eai

Version:

Itential Ericsson Adaptive Inventory Adapter

126 lines 2.6 kB
{ "$id": "shelf_template_schema.json", "type": "object", "schema": "http://json-schema.org/draft-07/schema#", "translate": true, "dynamicfields": true, "properties": { "ph_request_type": { "type": "string", "description": "type of request (internal to adapter)", "default": "getShelfTemplates", "enum": [ "getShelfTemplates", "createShelfTemplate", "updateShelfTemplate", "deleteShelfTemplate" ], "external_name": "ph_request_type" }, "id": { "type": "integer", "description": "the shelf template unique identifier", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "id" }, "name": { "type": "string", "description": "the name of shelf", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "name" }, "type": { "type": "string", "description": "the entity", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "type" }, "shelfTemplateType": { "type": "string", "description": "the type of shelf", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "_type" }, "vendor": { "type": "string", "description": "the vendor for the shelf", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "vendor" }, "status": { "type": "string", "description": "the status of the shelf", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "status" } }, "allOf": [ { "if": { "properties": { "ph_request_type": { "enum": [ "createShelfTemplate" ] } } }, "then": { "required": [ "name", "type", "shelfTemplateType", "status", "vendor" ] } }, { "if": { "properties": { "ph_request_type": { "enum": [ "updateShelfTemplate" ] } } }, "then": { "required": [ "type" ] } } ], "definitions": {} }