Skip to content

Commit

Permalink
[OAS] Migrate machine learning APIs to v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Nov 21, 2023
1 parent dda4498 commit 41d3db0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions x-pack/plugins/ml/common/openapi/ml_apis.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.0.1
openapi: 3.1.0
info:
title: Machine learning APIs
description: Kibana APIs for the machine learning feature
Expand Down Expand Up @@ -82,7 +82,8 @@ components:
required: false
schema:
type: boolean
example: 'true'
examples:
- true
securitySchemes:
basicAuth:
type: http
Expand Down Expand Up @@ -187,12 +188,14 @@ components:
properties:
error:
type: string
example: Unauthorized
examples:
- Unauthorized
message:
type: string
statusCode:
type: integer
example: 401
examples:
- 401
examples:
mlSyncExample:
summary: Two anomaly detection jobs required synchronization in this example.
Expand Down
11 changes: 7 additions & 4 deletions x-pack/plugins/ml/common/openapi/ml_apis_serverless.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.0.1
openapi: 3.1.0
info:
title: Machine learning APIs
description: Kibana APIs for the machine learning feature
Expand Down Expand Up @@ -46,7 +46,8 @@ components:
required: false
schema:
type: boolean
example: 'true'
examples:
- true
securitySchemes:
apiKeyAuth:
type: apiKey
Expand Down Expand Up @@ -148,12 +149,14 @@ components:
properties:
error:
type: string
example: Unauthorized
examples:
- Unauthorized
message:
type: string
statusCode:
type: integer
example: 401
examples:
- 401
examples:
mlSyncExample:
summary: Two anomaly detection jobs required synchronization in this example.
Expand Down

0 comments on commit 41d3db0

Please sign in to comment.