-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Update JSON schemas for code editors (#207706)
## Summary - Updates the default path to the openapi file - Updates JSON schemas for ML and Transform code editors with the latest changes from elasticsearch-specification
- Loading branch information
Showing
6 changed files
with
2,386 additions
and
3,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# @kbn/json-schemas | ||
|
||
JSON schema for code editors in Kibana | ||
This package provides JSON schemas used by code editors within the Kibana app. | ||
|
||
## Generating/Updating the JSON Schema | ||
|
||
To generate or update the output JSON schema files, run the following command from the root directory of the package: | ||
|
||
```bash | ||
yarn run jsonSchema | ||
``` | ||
|
||
By default, this command assumes that your `elasticsearch-specification` folder is located next to the Kibana repository. If your `elasticsearch-specification` folder is located elsewhere, you can specify the path to the OpenAPI file as a command-line argument: | ||
|
||
```bash | ||
yarn run jsonSchema /path/to/elasticsearch-specification/output/openapi/elasticsearch-serverless-openapi.json | ||
``` | ||
|
||
### Example: | ||
|
||
```bash | ||
yarn run jsonSchema /Users/my_user/dev/elasticsearch-specification/output/openapi/elasticsearch-serverless-openapi.json | ||
``` | ||
|
||
This will generate or update the necessary JSON schema files in the `./src` folder. | ||
|
||
Once the changes are made, ensure they are reviewed and merged to the appropriate release version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.