aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/masspnfsim/pnf-sim-lightweight/json_schema/input_validator.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocks/masspnfsim/pnf-sim-lightweight/json_schema/input_validator.json')
-rw-r--r--test/mocks/masspnfsim/pnf-sim-lightweight/json_schema/input_validator.json108
1 files changed, 108 insertions, 0 deletions
diff --git a/test/mocks/masspnfsim/pnf-sim-lightweight/json_schema/input_validator.json b/test/mocks/masspnfsim/pnf-sim-lightweight/json_schema/input_validator.json
new file mode 100644
index 000000000..9f56e8df1
--- /dev/null
+++ b/test/mocks/masspnfsim/pnf-sim-lightweight/json_schema/input_validator.json
@@ -0,0 +1,108 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "simulatorParams": {
+ "type": "object",
+ "properties": {
+ "testDuration": {
+ "type": "string"
+ },
+ "messageInterval": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "testDuration",
+ "messageInterval"
+ ]
+ },
+ "commonEventHeaderParams": {
+ "type": "object",
+ "properties": {
+ "eventName": {
+ "type": "string"
+ },
+ "nfNamingCode": {
+ "type": "string"
+ },
+ "nfcNamingCode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "eventName"
+ ]
+ },
+ "pnfRegistrationParams": {
+ "type": "object",
+ "properties": {
+ "serialNumber": {
+ "type": "string"
+ },
+ "vendorName": {
+ "type": "string"
+ },
+ "oamV4IpAddress": {
+ "type": "string"
+ },
+ "oamV6IpAddress": {
+ "type": "string"
+ },
+ "unitFamily": {
+ "type": "string"
+ },
+ "modelNumber": {
+ "type": "string"
+ },
+ "softwareVersion": {
+ "type": "string"
+ },
+ "unitType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "serialNumber",
+ "vendorName",
+ "oamV4IpAddress",
+ "oamV6IpAddress",
+ "unitFamily",
+ "modelNumber",
+ "softwareVersion",
+ "unitType"
+ ]
+ },
+ "notificationParams": {
+ "type": "object",
+ "properties": {
+ "changeIdentifier": {
+ "type": "string"
+ },
+ "changeType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "changeIdentifier",
+ "changeType"
+ ]
+ }
+ },
+ "oneOf": [
+ {
+ "required": [
+ "simulatorParams",
+ "commonEventHeaderParams",
+ "pnfRegistrationParams"
+ ]
+ },
+ {
+ "required": [
+ "simulatorParams",
+ "commonEventHeaderParams",
+ "notificationParams"
+ ]
+ }
+ ]
+}