You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix DerivedField serializing unsupported name field causing mapper_parsing_exception
The _common___DerivedField schema in opensearch-openapi.yaml included a
required name property. This caused DerivedField.java to serialize a
name key into the JSON mapping body, but the OpenSearch API does not
accept name inside a derived field definition and returns:
mapper_parsing_exception: unknown parameter [name] on mapper
In the API, the derived field's name is expressed as the map key in the
parent derived object, not as a property inside the field definition.
Remove name from the _common___DerivedField schema (both from
properties and required) and update the generated DerivedField.java
accordingly. The Java client no longer serializes name inside derived
field definitions.
Fixes#1937
Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>
0 commit comments