Skip to content

Commit

Permalink
fix spec errors
Browse files Browse the repository at this point in the history
Signed-off-by: djmadeira <[email protected]>
  • Loading branch information
djmadeira committed May 20, 2024
1 parent a4fdb4a commit 7d06126
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions spec/namespaces/transforms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ info:
paths:
/_plugins/_transform:
get:
operationId: transforms.get.0
x-operation-group: transforms.get
operationId: transforms.search.0
x-operation-group: transforms.search
x-version-added: 1.0
description: Returns the details of all transform jobs.
externalDocs:
url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#get-a-transform-jobs-details
parameters:
- $ref: '#/components/parameters/transforms.get::query.size'
- $ref: '#/components/parameters/transforms.get::query.from'
- $ref: '#/components/parameters/transforms.get::query.search'
- $ref: '#/components/parameters/transforms.get::query.sortField'
- $ref: '#/components/parameters/transforms.get::query.sortDirection'
- $ref: '#/components/parameters/transforms.search::query.size'
- $ref: '#/components/parameters/transforms.search::query.from'
- $ref: '#/components/parameters/transforms.search::query.search'
- $ref: '#/components/parameters/transforms.search::query.sortField'
- $ref: '#/components/parameters/transforms.search::query.sortDirection'
responses:
'200':
$ref: '#/components/responses/transforms.get@200'
$ref: '#/components/responses/transforms.search@200'
/_plugins/_transform/{id}:
get:
operationId: transforms.get.1
operationId: transforms.get.0
x-operation-group: transforms.get
x-version-added: 1.0
description: Returns the status and metadata of a transform job.
Expand Down Expand Up @@ -120,7 +120,7 @@ components:
schema:
$ref: '../schemas/transforms._common.yaml#/components/schemas/Transform'
responses:
transforms.get@200:
transforms.search@200:
content:
application/json:
schema:
Expand Down Expand Up @@ -222,39 +222,39 @@ components:
schema:
type: number
style: form
transforms.get::query.size:
transforms.search::query.size:
name: size
in: query
description: Specifies the number of transforms to return. Default is 10.
required: false
schema:
type: number
style: form
transforms.get::query.from:
transforms.search::query.from:
name: from
in: query
description: The starting transform to return. Default is 0.
required: false
schema:
type: number
style: form
transforms.get::query.search:
transforms.search::query.search:
name: search
in: query
description: The search term to use to filter results.
required: false
schema:
type: string
style: form
transforms.get::query.sortField:
transforms.search::query.sortField:
name: sortField
in: query
description: The field to sort results with.
required: false
schema:
type: string
style: form
transforms.get::query.sortDirection:
transforms.search::query.sortDirection:
name: sortDirection
in: query
description: Specifies the direction to sort results in. Can be ASC or DESC. Default is ASC.
Expand Down
8 changes: 4 additions & 4 deletions spec/schemas/transforms._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ components:
$ref: '#/components/schemas/DateHistogramGroup'
terms:
$ref: '#/components/schemas/TermsGroup'
minproperties: 1
maxproperties: 1
minProperties: 1
maxProperties: 1
DateHistogramGroup:
type: object
properties:
Expand Down Expand Up @@ -164,8 +164,8 @@ components:
type: object
value_count:
type: object
minproperties: 1
maxproperties: 1
minProperties: 1
maxProperties: 1
ContinuousStats:
type: object
properties:
Expand Down

0 comments on commit 7d06126

Please sign in to comment.