elasticsearch/docs/reference/rest-api
edh-oss 6869f5bc0d Update JSON parser and snippets (#77983)
Related to issue  #77823

This does the following:

- Updates several asciidoc files that contained code snippets with
  invalid JSON, most involving unnecessary trailing commas.

- Makes the switch from the Groovy JSON parser to the Jackson parser,
  pursuant to the general goal of eliminating Groovy dependence.

- Makes testing of JSON validity at build time more strict.

Note that this update still allows backslash escaping for any
character. Currently that matters because of the file
"docs/reference/ml/anomaly-detection/apis/get-datafeed-stats.asciidoc",
specifically this part:

    "attributes" : {
      "ml.machine_memory" :
        "$body.datafeeds.0.node.attributes.ml\.machine_memory",
      "ml.max_open_jobs" : "512"
    }

It's not clear to me what change, if any, is appropriate there. So,
I've left in the escaped period and configured the parser to ignore
it for the time being.
2021-09-20 11:11:54 +01:00
..
common-parms.asciidoc [DOCS] Fixes description of index_total property for GET Transforms stats API docs. (#77354) (#77401) 2021-09-08 09:24:47 +02:00
cron-expressions.asciidoc [DOCS] Fix link to quartz crontrigger tutorial (#61531) 2020-08-25 10:49:00 -04:00
defs.asciidoc [7.x][DOCS] Moves analysis resources to PUT DFA API docs (#50793) 2020-01-09 16:21:35 +01:00
index.asciidoc Node shutdown API docs (#74505) 2021-08-19 11:00:19 -06:00
info.asciidoc Update JSON parser and snippets (#77983) 2021-09-20 11:11:54 +01:00
usage.asciidoc Remove xpack actions for vector field (#75302) 2021-07-13 11:33:52 -04:00