200 |
reports changed objects in lists of valid and invalid ones |
|
application/json
model |
example
{
"title": "revalidate report",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.inventory.validate.Report",
"type": "object",
"required": [
"deliveryDate"
],
"properties": {
"deliveryDate": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"validObjs": {
"type": "array",
"uniqueItems": true,
"items": {
"javaType": "com.sos.joc.model.inventory.validate.ReportItem",
"type": "object",
"required": [
"name",
"path",
"objectType"
],
"properties": {
"path": {
"description": "absolute path of an object.",
"type": "string",
"pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
"maxLength": 255,
"minLength": 1
},
"name": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"objectType": {
"javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
"type": "string",
"enum": [
"FOLDER",
"WORKFLOW",
"JOBCLASS",
"JOBRESOURCE",
"LOCK",
"NOTICEBOARD",
"FILEORDERSOURCE",
"WORKINGDAYSCALENDAR",
"NONWORKINGDAYSCALENDAR",
"SCHEDULE",
"INCLUDESCRIPT",
"JOBTEMPLATE",
"DEPLOYMENTDESCRIPTOR",
"DESCRIPTORFOLDER"
]
},
"title": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"valid": {
"type": "boolean"
},
"invalidMsg": {
"type": "string"
},
"error": {
"javaType": "com.sos.joc.model.common.Err",
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
},
"invalidObjs": {
"type": "array",
"uniqueItems": true,
"items": {
"javaType": "com.sos.joc.model.inventory.validate.ReportItem",
"type": "object",
"required": [
"name",
"path",
"objectType"
],
"properties": {
"path": {
"description": "absolute path of an object.",
"type": "string",
"pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
"maxLength": 255,
"minLength": 1
},
"name": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"objectType": {
"javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
"type": "string",
"enum": [
"FOLDER",
"WORKFLOW",
"JOBCLASS",
"JOBRESOURCE",
"LOCK",
"NOTICEBOARD",
"FILEORDERSOURCE",
"WORKINGDAYSCALENDAR",
"NONWORKINGDAYSCALENDAR",
"SCHEDULE",
"INCLUDESCRIPT",
"JOBTEMPLATE",
"DEPLOYMENTDESCRIPTOR",
"DESCRIPTORFOLDER"
]
},
"title": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"valid": {
"type": "boolean"
},
"invalidMsg": {
"type": "string"
},
"error": {
"javaType": "com.sos.joc.model.common.Err",
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
},
"erroneousObjs": {
"type": "array",
"uniqueItems": true,
"items": {
"javaType": "com.sos.joc.model.inventory.validate.ReportItem",
"type": "object",
"required": [
"name",
"path",
"objectType"
],
"properties": {
"path": {
"description": "absolute path of an object.",
"type": "string",
"pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
"maxLength": 255,
"minLength": 1
},
"name": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"objectType": {
"javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
"type": "string",
"enum": [
"FOLDER",
"WORKFLOW",
"JOBCLASS",
"JOBRESOURCE",
"LOCK",
"NOTICEBOARD",
"FILEORDERSOURCE",
"WORKINGDAYSCALENDAR",
"NONWORKINGDAYSCALENDAR",
"SCHEDULE",
"INCLUDESCRIPT",
"JOBTEMPLATE",
"DEPLOYMENTDESCRIPTOR",
"DESCRIPTORFOLDER"
]
},
"title": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"valid": {
"type": "boolean"
},
"invalidMsg": {
"type": "string"
},
"error": {
"javaType": "com.sos.joc.model.common.Err",
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
{ "erroneousObjs": [], "invalidObjs": [{ "invalidMsg": "$.instructions[0].branches[0].instructions[0].agentName: Missing assigned Agent: agent_cluster_002", "name": "agentClusterRoundRobinParallel", "objectType": "WORKFLOW", "path": "/my/agentClusterRoundRobinParallel", "title": "x", "valid": false }, { "invalidMsg": "Missing assigned Calendars: [Everyday]", "name": "everyDaySchedule", "objectType": "SCHEDULE", "path": "/my/everyDaySchedule", "title": "Optimiert die Verteilung der Daten in den Speicherstufen in allen mehrstufigen Speicherplätzen im System.", "valid": false }, { "invalidMsg": "$.instructions[1].jobName: Spaces are not allowed in 'jobName': 'job0 k'", "name": "testJob", "objectType": "WORKFLOW", "path": "/my/testJob", "valid": false }, { "invalidMsg": "$.orderPreparation.parameters['yade_bin'].default: Error in expression: Parsing failed at position 1 “❓/var/sos-b…” · Expected one of \"“''”, “'''”, “JobResource:”, “argument”, “catchCount”, “false”, “missing”, “null”, “true”, “variable”\" · Expected properly terminated '…'-quoted string without non-printable characters (except \\r and \\n) · Expected identifer · Expected a character out of [!\"$'(-0123456789[`{]", "name": "transferFiles", "objectType": "WORKFLOW", "path": "/my/transferFiles", "valid": false }, { "invalidMsg": "$.jobs['こんにちは世界'].executable.env['こんにちは']: only characters 'a-zA-Z0-9_' are allowed in the variable name.", "name": "こんにちは世界", "objectType": "WORKFLOW", "path": "/my/こんにちは世界", "valid": false }], "validObjs": [{ "name": "periodic", "objectType": "SCHEDULE", "path": "/my/periodic", "valid": true }] }
{
"erroneousObjs": [],
"invalidObjs": [{
"invalidMsg": "$.instructions[0].branches[0].instructions[0].agentName: Missing assigned Agent: agent_cluster_002",
"name": "agentClusterRoundRobinParallel",
"objectType": "WORKFLOW",
"path": "/my/agentClusterRoundRobinParallel",
"title": "x",
"valid": false
}, {
"invalidMsg": "Missing assigned Calendars: [Everyday]",
"name": "everyDaySchedule",
"objectType": "SCHEDULE",
"path": "/my/everyDaySchedule",
"title": "Optimiert die Verteilung der Daten in den Speicherstufen in allen mehrstufigen Speicherplätzen im System.",
"valid": false
}, {
"invalidMsg": "$.instructions[1].jobName: Spaces are not allowed in 'jobName': 'job0 k'",
"name": "testJob",
"objectType": "WORKFLOW",
"path": "/my/testJob",
"valid": false
}, {
"invalidMsg": "$.orderPreparation.parameters['yade_bin'].default: Error in expression: Parsing failed at position 1 “❓/var/sos-b…” · Expected one of \"“''”, “'''”, “JobResource:”, “argument”, “catchCount”, “false”, “missing”, “null”, “true”, “variable”\" · Expected properly terminated '…'-quoted string without non-printable characters (except \\r and \\n) · Expected identifer · Expected a character out of [!\"$'(-0123456789[`{]",
"name": "transferFiles",
"objectType": "WORKFLOW",
"path": "/my/transferFiles",
"valid": false
}, {
"invalidMsg": "$.jobs['こんにちは世界'].executable.env['こんにちは']: only characters 'a-zA-Z0-9_' are allowed in the variable name.",
"name": "こんにちは世界",
"objectType": "WORKFLOW",
"path": "/my/こんにちは世界",
"valid": false
}],
"validObjs": [{
"name": "periodic",
"objectType": "SCHEDULE",
"path": "/my/periodic",
"valid": true
}]
}
|