Skip to content

Commit

Permalink
Revert "set value required in constant_keyword field type (#419)"
Browse files Browse the repository at this point in the history
This reverts commit 7e1a233.
  • Loading branch information
dblock authored Jul 17, 2024
1 parent 7e1a233 commit 7f9324b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed query DSL `match` that supports a field name and value ([#405](https://github.com/opensearch-project/opensearch-api-specification/pull/405))
- Fixed `/_mapping` with `index` in query ([#385](https://github.com/opensearch-project/opensearch-api-specification/pull/385))
- Fixed duplicate `/_nodes/{node_id}` path ([#416](https://github.com/opensearch-project/opensearch-api-specification/pull/416))
- Fixed required value for `constant_keyword` field type ([#419](https://github.com/opensearch-project/opensearch-api-specification/pull/419))

### Security

Expand Down
3 changes: 1 addition & 2 deletions spec/schemas/_common.mapping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -789,14 +789,13 @@ components:
- type: object
properties:
value:
type: string
type: object
type:
type: string
enum:
- constant_keyword
required:
- type
- value
FieldAliasProperty:
allOf:
- $ref: '#/components/schemas/PropertyBase'
Expand Down
31 changes: 0 additions & 31 deletions tests/mapping/constant_keyword.yaml

This file was deleted.

0 comments on commit 7f9324b

Please sign in to comment.