Skip to content

Commit

Permalink
Removed superseeded operations that have unresolved parameters.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Nov 4, 2024
1 parent 6610faa commit 5485529
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 83 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### Added
- Added API specs for query groups lifecycle APIs ([#649](https://github.com/opensearch-project/opensearch-api-specification/pull/649))
- Added Python and Ruby spec validators ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))

### Removed
- Removed unsupported `_common.mapping:SourceField`'s `mode` field and associated `_common.mapping:SourceFieldMode` enum ([#652](https://github.com/opensearch-project/opensearch-api-specification/pull/652))

### Fixed
- Spec passes OpenAPI 3.1.0 validations ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Global parameters no longer contain invalid `default` ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Invalid values of `schema: null` are replaced with `schema: false` ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Key names containing invalid `@` and `:` are renamed to `.` and `_` respectively on merge ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Added missing `required` to `path` parameters ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Added missing `schema` parent to response types ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Removed invalid `externalDocs` from `flow_framework.create/update::query.use_case` ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Fixed incorrect `style` in `indices.get_mapping::query.index` ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))
- Removed invalid `required` from `ppl` responses ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))

## [0.1.0] - 2024-10-25

### Added
Expand Down Expand Up @@ -115,7 +127,6 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added API spec for `adjust_pure_negative` for bool queries ([#641](https://github.com/opensearch-project/opensearch-api-specification/pull/641))
- Added a spec style checker [#620](https://github.com/opensearch-project/opensearch-api-specification/pull/620).
- Added `remote_store` to node `Stats` ([#643](https://github.com/opensearch-project/opensearch-api-specification/pull/643))
- Added Python and Ruby spec validators ([#646](https://github.com/opensearch-project/opensearch-api-specification/pull/646))

### Changed

Expand Down
158 changes: 79 additions & 79 deletions spec/_superseded_operations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ $schema: ./json_schemas/_superseded_operations.schema.yaml
operations:
- GET
- PUT
/_opendistro/_ism/policies/{policyID}:
superseded_by: /_plugins/_ism/policies/{policyID}
operations:
- GET
- HEAD
- PUT
- DELETE
# /_opendistro/_ism/policies/{policyID}:
# superseded_by: /_plugins/_ism/policies/{policyID}
# operations:
# - GET
# - HEAD
# - PUT
# - DELETE
/_opendistro/_ism/remove:
superseded_by: /_plugins/_ism/remove
operations:
Expand Down Expand Up @@ -239,10 +239,10 @@ $schema: ./json_schemas/_superseded_operations.schema.yaml
superseded_by: /_plugins/_knn/{nodeId}/stats/
operations:
- GET
/_opendistro/_knn/{nodeId}/stats/{stat}:
superseded_by: /_plugins/_knn/{nodeId}/stats/{stat}
operations:
- GET
# /_opendistro/_knn/{nodeId}/stats/{stat}:
# superseded_by: /_plugins/_knn/{nodeId}/stats/{stat}
# operations:
# - GET
/_opendistro/_performanceanalyzer/_agent/{redirectEndpoint}:
superseded_by: /_plugins/_performanceanalyzer/_agent/{redirectEndpoint}
operations:
Expand Down Expand Up @@ -353,25 +353,25 @@ $schema: ./json_schemas/_superseded_operations.schema.yaml
operations:
- GET
- PUT
/_opendistro/_rollup/jobs/{rollupID}:
superseded_by: /_plugins/_rollup/jobs/{rollupID}
operations:
- GET
- HEAD
- PUT
- DELETE
/_opendistro/_rollup/jobs/{rollupID}/_explain:
superseded_by: /_plugins/_rollup/jobs/{rollupID}/_explain
operations:
- GET
/_opendistro/_rollup/jobs/{rollupID}/_start:
superseded_by: /_plugins/_rollup/jobs/{rollupID}/_start
operations:
- POST
/_opendistro/_rollup/jobs/{rollupID}/_stop:
superseded_by: /_plugins/_rollup/jobs/{rollupID}/_stop
operations:
- POST
# /_opendistro/_rollup/jobs/{rollupID}:
# superseded_by: /_plugins/_rollup/jobs/{rollupID}
# operations:
# - GET
# - HEAD
# - PUT
# - DELETE
# /_opendistro/_rollup/jobs/{rollupID}/_explain:
# superseded_by: /_plugins/_rollup/jobs/{rollupID}/_explain
# operations:
# - GET
# /_opendistro/_rollup/jobs/{rollupID}/_start:
# superseded_by: /_plugins/_rollup/jobs/{rollupID}/_start
# operations:
# - POST
# /_opendistro/_rollup/jobs/{rollupID}/_stop:
# superseded_by: /_plugins/_rollup/jobs/{rollupID}/_stop
# operations:
# - POST
/_opendistro/_security/api/_upgrade_check/:
superseded_by: /_plugins/_security/api/_upgrade_check/
operations:
Expand Down Expand Up @@ -400,13 +400,13 @@ $schema: ./json_schemas/_superseded_operations.schema.yaml
operations:
- GET
- PATCH
/_opendistro/_security/api/actiongroups/{name}:
superseded_by: /_plugins/_security/api/actiongroups/{name}
operations:
- GET
- PUT
- PATCH
- DELETE
# /_opendistro/_security/api/actiongroups/{name}:
# superseded_by: /_plugins/_security/api/actiongroups/{name}
# operations:
# - GET
# - PUT
# - PATCH
# - DELETE
/_opendistro/_security/api/audit/:
superseded_by: /_plugins/_security/api/audit/
operations:
Expand All @@ -432,17 +432,17 @@ $schema: ./json_schemas/_superseded_operations.schema.yaml
operations:
- GET
- PATCH
/_opendistro/_security/api/internalusers/{name}:
superseded_by: /_plugins/_security/api/internalusers/{name}
operations:
- GET
- PUT
- PATCH
- DELETE
/_opendistro/_security/api/internalusers/{name}/authtoken:
superseded_by: /_plugins/_security/api/internalusers/{name}/authtoken
operations:
- POST
# /_opendistro/_security/api/internalusers/{name}:
# superseded_by: /_plugins/_security/api/internalusers/{name}
# operations:
# - GET
# - PUT
# - PATCH
# - DELETE
# /_opendistro/_security/api/internalusers/{name}/authtoken:
# superseded_by: /_plugins/_security/api/internalusers/{name}/authtoken
# operations:
# - POST
/_opendistro/_security/api/migrate:
superseded_by: /_plugins/_security/api/migrate
operations:
Expand All @@ -456,25 +456,25 @@ $schema: ./json_schemas/_superseded_operations.schema.yaml
operations:
- GET
- PATCH
/_opendistro/_security/api/roles/{name}:
superseded_by: /_plugins/_security/api/roles/{name}
operations:
- GET
- PUT
- PATCH
- DELETE
# /_opendistro/_security/api/roles/{name}:
# superseded_by: /_plugins/_security/api/roles/{name}
# operations:
# - GET
# - PUT
# - PATCH
# - DELETE
/_opendistro/_security/api/rolesmapping/:
superseded_by: /_plugins/_security/api/rolesmapping/
operations:
- GET
- PATCH
/_opendistro/_security/api/rolesmapping/{name}:
superseded_by: /_plugins/_security/api/rolesmapping/{name}
operations:
- GET
- PUT
- PATCH
- DELETE
# /_opendistro/_security/api/rolesmapping/{name}:
# superseded_by: /_plugins/_security/api/rolesmapping/{name}
# operations:
# - GET
# - PUT
# - PATCH
# - DELETE
/_opendistro/_security/api/securityconfig:
superseded_by: /_plugins/_security/api/securityconfig
operations:
Expand Down Expand Up @@ -518,27 +518,27 @@ $schema: ./json_schemas/_superseded_operations.schema.yaml
operations:
- GET
- PATCH
/_opendistro/_security/api/tenants/{name}:
superseded_by: /_plugins/_security/api/tenants/{name}
operations:
- GET
- PUT
- PATCH
- DELETE
# /_opendistro/_security/api/tenants/{name}:
# superseded_by: /_plugins/_security/api/tenants/{name}
# operations:
# - GET
# - PUT
# - PATCH
# - DELETE
/_opendistro/_security/api/user:
superseded_by: /_plugins/_security/api/user
operations:
- GET
/_opendistro/_security/api/user/{name}:
superseded_by: /_plugins/_security/api/user/{name}
operations:
- GET
- PUT
- DELETE
/_opendistro/_security/api/user/{name}/authtoken:
superseded_by: /_plugins/_security/api/user/{name}/authtoken
operations:
- POST
# /_opendistro/_security/api/user/{name}:
# superseded_by: /_plugins/_security/api/user/{name}
# operations:
# - GET
# - PUT
# - DELETE
# /_opendistro/_security/api/user/{name}/authtoken:
# superseded_by: /_plugins/_security/api/user/{name}/authtoken
# operations:
# - POST
/_opendistro/_security/api/validate:
superseded_by: /_plugins/_security/api/validate
operations:
Expand Down
6 changes: 3 additions & 3 deletions spec/namespaces/ism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ paths:
'200':
$ref: '#/components/responses/ism.explain_policy@200'
post:
operationId: ism.explain_policy.0
operationId: ism.explain_policy.1
x-operation-group: ism.explain_policy
description: Gets the currently applied policy on indices.
externalDocs:
Expand All @@ -190,7 +190,7 @@ paths:
$ref: '#/components/responses/ism.explain_policy@200'
/_plugins/_ism/explain/{index}:
get:
operationId: ism.explain_policy.1
operationId: ism.explain_policy.3
x-operation-group: ism.explain_policy
description: Gets the currently applied policy on indices.
externalDocs:
Expand All @@ -203,7 +203,7 @@ paths:
'200':
$ref: '#/components/responses/ism.explain_policy@200'
post:
operationId: ism.explain_policy.1
operationId: ism.explain_policy.4
x-operation-group: ism.explain_policy
description: Gets the currently applied policy on indices.
externalDocs:
Expand Down

0 comments on commit 5485529

Please sign in to comment.