Skip to content

fix: remove unsupported name field from DerivedField schema#1156

Open
gingeekrishna wants to merge 1 commit into
opensearch-project:mainfrom
gingeekrishna:fix/derivedfield-remove-name-field
Open

fix: remove unsupported name field from DerivedField schema#1156
gingeekrishna wants to merge 1 commit into
opensearch-project:mainfrom
gingeekrishna:fix/derivedfield-remove-name-field

Conversation

@gingeekrishna

@gingeekrishna gingeekrishna commented Jul 5, 2026

Copy link
Copy Markdown

Summary

DerivedField in spec/schemas/_common.yaml declares a name property and marks it as required. However, OpenSearch does not recognize this field in mapping definitions. When a client serializes a DerivedField with name set, the server rejects the request with:

mapper_parsing_exception: Failed to parse mapping: unknown parameter [name]

This fix removes name from DerivedField.properties and from the required list so the schema matches the actual server behavior.

Fixes #1157

Related

Test plan

  • Verify DerivedField serialization no longer includes the name field
  • Confirm existing DerivedField usage in OpenSearch tests passes without name

Copilot AI review requested due to automatic review settings July 5, 2026 14:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

gingeekrishna pushed a commit to gingeekrishna/opensearch-java that referenced this pull request Jul 5, 2026
The fix belongs in the OpenSearch API specification, not in generated
code. Submitted upstream: opensearch-project/opensearch-api-specification#1156

The java-codegen/opensearch-openapi.yaml change is kept here as a local
workaround until the upstream spec fix is pulled in by the weekly
code-generation workflow.

Signed-off-by: RadhaKrishnan Rajendran <gingeekrishna@gmail.com>
Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>
gingeekrishna added a commit to gingeekrishna/opensearch-java that referenced this pull request Jul 5, 2026
The fix belongs in the OpenSearch API specification, not in generated
code. Submitted upstream: opensearch-project/opensearch-api-specification#1156

The java-codegen/opensearch-openapi.yaml change is kept here as a local
workaround until the upstream spec fix is pulled in by the weekly
code-generation workflow.

Signed-off-by: RadhaKrishnan Rajendran <gingeekrishna@gmail.com>
Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>
The DerivedField type in _common.yaml declares a 'name' property and
marks it as required, but OpenSearch does not recognize this field in
mapping definitions. When a client serializes a DerivedField with 'name'
set, the server rejects the request with a mapper_parsing_exception:

  [mapper_parsing_exception] Failed to parse mapping: unknown parameter [name]

Remove the 'name' property from DerivedField.properties and from the
required list so the schema matches the actual server behavior.

Signed-off-by: RadhaKrishnan Rajendran <gingeekrishna@gmail.com>
Signed-off-by: Radhakrishnan Pachyappan <radhakrishnan.p@op.tech>
@gingeekrishna
gingeekrishna force-pushed the fix/derivedfield-remove-name-field branch from 405e2ee to a3a2ebe Compare July 5, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: DerivedField schema incorrectly declares unsupported 'name' field

2 participants