Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
Signed-off-by: Ruirui Zhang <mariazrr@amazon.com>
  • Loading branch information
ruai0511 committed Oct 29, 2024
1 parent 493d5ae commit 5f4e240
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added `config_id` and `config_id_list` to `/_plugins/_notifications/configs` query parameters ([#594](https://github.com/opensearch-project/opensearch-api-specification/pull/594))
- Added a release workflow triggered on a tag ([#635](https://github.com/opensearch-project/opensearch-api-specification/pull/635))
- Added API spec for query insights plugin ([#625](https://github.com/opensearch-project/opensearch-api-specification/pull/625))
- Added API specs for query groups lifecycle APIs ([#649](https://github.com/opensearch-project/opensearch-api-specification/pull/649))
- 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))
Expand Down
14 changes: 7 additions & 7 deletions spec/namespaces/wlm.yaml → spec/namespaces/query_group.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: OpenSearch Workload Management API
description: OpenSearch Workload Management API
title: OpenSearch Workload Management Query Group API
description: Query group lifecycle APIs for the workload management plugin.
version: 1.0.0
paths:
/_wlm/query_group:
Expand Down Expand Up @@ -62,27 +62,27 @@ components:
content:
application/json:
schema:
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupCreate'
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupCreate'

Check failure on line 65 in spec/namespaces/query_group.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 12 spaces but found 14 spaces
required: true
query_group.update:
content:
application/json:
schema:
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupUpdate'
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupUpdate'

Check failure on line 71 in spec/namespaces/query_group.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 12 spaces but found 14 spaces
required: true
responses:
query_group.create@200:
description: ''
content:
application/json:
schema:
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse'
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse'
query_group.update@200:
description: ''
content:
application/json:
schema:
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse'
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse'
query_group.delete@200:
description: ''
content:
Expand All @@ -102,7 +102,7 @@ components:
query_groups:
type: array
items:
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse'
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse'
parameters:
query_group.update::path.name:
name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ components:
type: string
enum: [ "soft", "enforced", "monitor" ]
resource_limits:
type: object
properties:
memory:
type: number
format: double
cpu:
type: number
format: double
$ref: '#/components/schemas/ResourceLimitsSchema'
ResourceLimitsSchema:
type: object
properties:
memory:
type: number
format: double
cpu:
type: number
format: double

0 comments on commit 5f4e240

Please sign in to comment.