Skip to content

Commit

Permalink
[OAS] Migrate machine learning APIs to v3.1.0 (elastic#171594)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Nov 23, 2023
1 parent 78f7b80 commit 2f258a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 8 additions & 5 deletions x-pack/plugins/ml/common/openapi/ml_apis.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
openapi: 3.0.1
openapi: 3.1.0
info:
title: Machine learning APIs
description: Kibana APIs for the machine learning feature
version: "1.0.1"
version: "1.0.2"
license:
name: Elastic License 2.0
url: https://www.elastic.co/licensing/elastic-license
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
13 changes: 8 additions & 5 deletions x-pack/plugins/ml/common/openapi/ml_apis_serverless.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
openapi: 3.0.1
openapi: 3.1.0
info:
title: Machine learning APIs
description: Kibana APIs for the machine learning feature
version: "1.0.1"
version: "1.0.2"
license:
name: Elastic License 2.0
url: https://www.elastic.co/licensing/elastic-license
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 2f258a2

Please sign in to comment.