Validates the commit without committing after loading service data.
Description
Returns error message if commit is invalid.
Route
POST /nso_manager/validateCommit
Roles
admin
Parameters
DetailsExampleSchema
Name
Type
Required
Description
servicePath
string
yes
The service path of the target service model.
serviceData
object
yes
A valid service instance of the target service model in JSON format.
Copied to Clipboard
{
"servicePath": "quis adipisicing est Ut esse",
"serviceData": null
}
Copied to Clipboard
{
"type": "object",
"properties": {
"servicePath": {
"description": "The service path of the target service model.",
"type": "string"
},
"serviceData": {
"description": "A valid service instance of the target service model in JSON format.",
"type": "object",
"properties": {},
"required": [
"serviceData"
],
"additionalProperties": false
}
},
"required": [
"servicePath",
"serviceData"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name
Type
Description
result
object
Result object
Copied to Clipboard
{
"isValid": false,
"message": "fugiat nulla pariatur anim"
}
Copied to Clipboard
{
"properties": {
"isValid": {
"type": "boolean",
"description": "True if commit is valid, false otherwise."
},
"message": {
"type": "string",
"description": "Error message if any, empty string if commit is valid."
}
}
}