Browse Source

fix the schema validation for scripts_painless_context (#55738)

Jake Landis 5 years ago
parent
commit
1955b46256

+ 0 - 3
modules/lang-painless/build.gradle

@@ -194,6 +194,3 @@ task regen {
   }
 }
 
-validateRestSpec {
-  ignore 'scripts_painless_context.json'
-}

+ 4 - 0
modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json

@@ -1,6 +1,10 @@
 {
   "scripts_painless_context": {
     "stability": "experimental",
+    "documentation": {
+      "url": "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html",
+      "description": "Returns the painless contexts"
+    },
     "url": {
       "paths": [
         {