Skip to content

Commit 11106f0

Browse files
authored
Generate OpenAPI schema for Elasticsearch Serverless (#2047)
1 parent 8b7d05b commit 11106f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+67243
-16
lines changed

.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/check-license-headers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ function check_license_header {
2727

2828
cd "$TOP"
2929
nErrors=0
30-
for f in $(git ls-files | grep '\.ts$'); do
30+
for f in $(git ls-files | grep -v compiler-wasm-lib/pkg | grep '\.ts$'); do
3131
if ! check_license_header $f; then
3232
nErrors=$((nErrors+1))
3333
fi
3434
done
3535

36-
for f in $(git ls-files | grep '\.js$'); do
36+
for f in $(git ls-files | grep -v compiler-wasm-lib/pkg |grep '\.js$'); do
3737
if ! check_license_header $f; then
3838
nErrors=$((nErrors+1))
3939
fi

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@ clean-dep: ## Clean npm dependencies
4747
transform-expand-generics: ## Create a new schema with all generics expanded
4848
@npm run transform-expand-generics --prefix compiler
4949

50+
transform-to-openapi: ## Generate the OpenAPI definition from the compiled schema
51+
@npm run transform-to-openapi --prefix compiler
52+
5053
dump-routes: ## Create a new schema with all generics expanded
5154
@npm run dump-routes --prefix compiler
5255

53-
contrib: | generate license-check spec-format-fix ## Pre contribution target
56+
contrib: | generate license-check spec-format-fix transform-to-openapi ## Pre contribution target
5457

5558
bump:
5659
@echo ">> bumping..."

compiler-rs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
target

0 commit comments

Comments
 (0)