elasticsearch/docs/reference/mapping
Nik Everett 1e587406d8 Fail yaml tests and docs snippets that get unexpected warnings
Adds `warnings` syntax to the yaml test that allows you to expect
a `Warning` header that looks like:
```
    - do:
        warnings:
            - '[index] is deprecated'
            - quotes are not required because yaml
            - but this argument is always a list, never a single string
            - no matter how many warnings you expect
        get:
            index:    test
            type:    test
            id:        1
```

These are accessible from the docs with:
```
// TEST[warning:some warning]
```

This should help to force you to update the docs if you deprecate
something. You *must* add the warnings marker to the docs or the build
will fail. While you are there you *should* update the docs to add
deprecation warnings visible in the rendered results.
2016-08-04 15:23:05 -04:00
..
dynamic Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
fields Fix docs example for the _id field, the field is not accessible in scripts 2016-06-29 15:25:51 +02:00
params Fail yaml tests and docs snippets that get unexpected warnings 2016-08-04 15:23:05 -04:00
types Add scaled_float. #19264 2016-07-18 12:36:23 +02:00
dynamic-mapping.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
fields.asciidoc Fix doc build. 2016-06-22 09:34:49 +02:00
params.asciidoc Removed docs for precision_step - no longer used 2016-06-21 15:19:12 +02:00
types.asciidoc Add new IPv6 types to docs where it's supported 2016-04-26 11:38:49 -07:00