UNPKG

@itentialopensource/adapter-eai

Version:

Itential Ericsson Adaptive Inventory Adapter

126 lines 2.61 kB
{ "$id": "card_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": "getCardTemplates", "enum": [ "getCardTemplates", "createCardTemplate", "updateCardTemplate", "deleteCardTemplate" ], "external_name": "ph_request_type" }, "id": { "type": "integer", "description": "the card unique identifier", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "id" }, "name": { "type": "string", "description": "the name of card", "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" }, "cardTemplateType": { "type": "string", "description": "the type of card", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "_type" }, "slotOccupancy": { "type": ["integer", "string"], "description": "the slot the card is in", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "slotOccupancy" }, "status": { "type": "string", "description": "the status of the card", "parse": false, "encode": false, "encrypt": { "type": "AES", "key": "" }, "external_name": "status" } }, "allOf": [ { "if": { "properties": { "ph_request_type": { "enum": [ "createCardTemplate" ] } } }, "then": { "required": [ "name", "type", "cardTemplateType", "status", "slotOccupancy" ] } }, { "if": { "properties": { "ph_request_type": { "enum": [ "updateCardTemplate" ] } } }, "then": { "required": [ "type" ] } } ], "definitions": {} }