Skip to content

Commit

Permalink
Generate OpenAPI schema for Elasticsearch Serverless (#2047)
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez authored Oct 23, 2023
1 parent 8b7d05b commit 11106f0
Show file tree
Hide file tree
Showing 53 changed files with 67,243 additions and 16 deletions.
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

4 changes: 2 additions & 2 deletions .github/check-license-headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ function check_license_header {

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

for f in $(git ls-files | grep '\.js$'); do
for f in $(git ls-files | grep -v compiler-wasm-lib/pkg |grep '\.js$'); do
if ! check_license_header $f; then
nErrors=$((nErrors+1))
fi
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ clean-dep: ## Clean npm dependencies
transform-expand-generics: ## Create a new schema with all generics expanded
@npm run transform-expand-generics --prefix compiler

transform-to-openapi: ## Generate the OpenAPI definition from the compiled schema
@npm run transform-to-openapi --prefix compiler

dump-routes: ## Create a new schema with all generics expanded
@npm run dump-routes --prefix compiler

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

bump:
@echo ">> bumping..."
Expand Down
2 changes: 2 additions & 0 deletions compiler-rs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
target
Loading

0 comments on commit 11106f0

Please sign in to comment.