This commit allows the JSON schema's documentation.url property to have a null value. This can useful for cases where a feature is under development, and does not have documentation published yet. This commit also adds a documentation.url for two ml resources.
This commit is contained in:
parent
5f5a648b9a
commit
9c76ee47c4
|
@ -43,6 +43,37 @@
|
||||||
"$ref": "#/definitions/Body"
|
"$ref": "#/definitions/Body"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"if": {
|
||||||
|
"properties": {
|
||||||
|
"stability": {
|
||||||
|
"const": "stable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"then": {
|
||||||
|
"properties": {
|
||||||
|
"documentation": {
|
||||||
|
"$ref": "#/definitions/Documentation",
|
||||||
|
"properties": {
|
||||||
|
"url" : {
|
||||||
|
"type": ["string"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"else": {
|
||||||
|
"properties": {
|
||||||
|
"documentation": {
|
||||||
|
"$ref": "#/definitions/Documentation",
|
||||||
|
"properties": {
|
||||||
|
"url" : {
|
||||||
|
"type": ["string", "null"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"documentation",
|
"documentation",
|
||||||
"stability",
|
"stability",
|
||||||
|
@ -130,7 +161,6 @@
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"url": {
|
"url": {
|
||||||
"type": "string",
|
|
||||||
"format": "uri"
|
"format": "uri"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
|
|
|
@ -159,7 +159,4 @@ testClusters.integTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
validateRestSpec {
|
|
||||||
ignore 'ml.validate.json'
|
|
||||||
ignore 'ml.validate_detector.json'
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"ml.validate":{
|
"ml.validate":{
|
||||||
"documentation":{
|
"documentation":{
|
||||||
"url":null,
|
"url":"https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html",
|
||||||
"description":"Validates an anomaly detection job."
|
"description":"Validates an anomaly detection job."
|
||||||
},
|
},
|
||||||
"stability":"stable",
|
"stability":"stable",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"ml.validate_detector":{
|
"ml.validate_detector":{
|
||||||
"documentation":{
|
"documentation":{
|
||||||
"url":null,
|
"url":"https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html",
|
||||||
"description":"Validates an anomaly detection detector."
|
"description":"Validates an anomaly detection detector."
|
||||||
},
|
},
|
||||||
"stability":"stable",
|
"stability":"stable",
|
||||||
|
|
Loading…
Reference in New Issue