Commit cc7b460
committed
feat(opensearchapi)!: regenerate with typed string enums
Regenerate opensearchapi and plugins after the osgen string-enum change.
Enum-like fields and query parameters that were plain string are now named
types with exported consts: NodeRole (cat-nodes, nodes-info), Result and
VersionType (write ops), TimeUnit (cat time params), OpType, SearchType,
and the rest. NodeRole now carries the search and warm roles.
BREAKING CHANGE: fields and query params across opensearchapi and plugins
change from string to named enum types (e.g. Roles []string -> []NodeRole,
Result string -> Result). Values still assign and compare as strings via
the named type; type-strict comparisons against untyped string literals
need the const (e.g. opensearchapi.ResultUpdated). Updates the one such
hand-written assertion in api_document_lifecycle_test.go.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>1 parent 3df8570 commit cc7b460
76 files changed
Lines changed: 984 additions & 228 deletions
File tree
- opensearchapi
- plugins
- flow_framework
- ism
- knn
- list
- ltr
- ml
- rollups
- search_relevance
- sm
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments