Detect cases where a developer thinks they have declared a dynamic mapping, but have not. Example:
- name: disks.states.*
type: object
description: |
map of raw disk states
The rule would detect fields where
name contains an asterisk
type == "object"
object_type is not set
Without specifying an object_type the result index template will declare a mapping for a literal name containing * asterisks and that is unexpected/surprising/wrong.
"disks": {
"properties": {
"states": {
"properties": {
"*": {
"type": "object"
}
}
}
}
},
Detect cases where a developer thinks they have declared a dynamic mapping, but have not. Example:
The rule would detect fields where
namecontains an asterisktype == "object"object_typeis not setWithout specifying an
object_typethe result index template will declare a mapping for a literal name containing*asterisks and that is unexpected/surprising/wrong.