@itentialopensource/adapter-eai
Version:
Itential Ericsson Adaptive Inventory Adapter
114 lines • 2.34 kB
JSON
{
"$id": "site_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": "getSiteTemplates",
"enum": [
"getSiteTemplates",
"createSiteTemplate",
"updateSiteTemplate",
"deleteSiteTemplate"
],
"external_name": "ph_request_type"
},
"id": {
"type": "integer",
"description": "The unique id of the site template",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "id"
},
"name": {
"type": "string",
"description": "The name for the site template",
"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"
},
"siteTemplateType": {
"type": "string",
"description": "the type of site",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "_type"
},
"status": {
"type": "string",
"description": "The status of the site",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "status"
}
},
"allOf": [
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"createSiteTemplate"
]
}
}
},
"then": {
"required": [
"name",
"type",
"siteTemplateType",
"status"
]
}
},
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"updateSiteTemplate"
]
}
}
},
"then": {
"required": [
"type"
]
}
}
],
"definitions": {}
}