Skip to content

Commit a3a2ebe

Browse files
committed
fix: remove unsupported name field from DerivedField schema
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>
1 parent ec27dff commit a3a2ebe

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

spec/schemas/_common.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,6 @@ components:
576576
DerivedField:
577577
type: object
578578
properties:
579-
name:
580-
type: string
581579
type:
582580
type: string
583581
script:
@@ -591,7 +589,6 @@ components:
591589
format:
592590
type: string
593591
required:
594-
- name
595592
- script
596593
- type
597594
Sort:

0 commit comments

Comments
 (0)