Interface RootObjectMapperNamespaceValidator

All Known Implementing Classes:
DefaultRootObjectMapperNamespaceValidator

public interface RootObjectMapperNamespaceValidator
SPI to inject additional rules around namespaces (top level fields) that are prohibited in Elasticsearch mappings.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    If the namespace in the mapper is not allowed, an Exception should be thrown.
  • Method Details

    • validateNamespace

      void validateNamespace(@Nullable ObjectMapper.Subobjects subobjects, String name)
      If the namespace in the mapper is not allowed, an Exception should be thrown.
      Parameters:
      subobjects - Whether subobjects are enabled. Null is allowed
      name - namespace (field name) to validate