File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -69,4 +69,6 @@ compiler/test/**/output/
69
69
output /openapi /elasticsearch-serverless-openapi.tmp * .json
70
70
output /openapi /elasticsearch-serverless-openapi.examples.json
71
71
output /openapi /elasticsearch-openapi.tmp * .json
72
- output /openapi /elasticsearch-openapi.examples.json
72
+ output /openapi /elasticsearch-openapi.examples.json
73
+ output /openapi /elasticsearch-serverless-openapi-docs.json
74
+ output /openapi /elasticsearch-openapi-docs.json
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ transform-to-openapi: ## Generate the OpenAPI definition from the compiled schem
54
54
55
55
transform-to-openapi-for-docs : # # Generate the OpenAPI definition tailored for API docs generation
56
56
@npm run transform-to-openapi -- --schema output/schema/schema.json --flavor stack --lift-enum-descriptions --merge-multipath-endpoints --multipath-redirects --output output/openapi/elasticsearch-openapi-docs.json
57
+ @npm run transform-to-openapi -- --schema output/schema/schema.json --flavor serverless --lift-enum-descriptions --merge-multipath-endpoints --multipath-redirects --output output/openapi/elasticsearch-serverless-openapi-docs.json
57
58
58
59
filter-for-serverless : # # Generate the serverless version from the compiled schema
59
60
@npm run --prefix compiler filter-by-availability -- --serverless --visibility=public --input ../output/schema/schema.json --output ../output/output/openapi/elasticsearch-serverless-openapi.json
Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ Follow the steps to generate the JSON representation, then:
60
60
```
61
61
# Generate the OpenAPI representation
62
62
$ make transform-to-openapi
63
+ ```
64
+
65
+ To generate the JSON representation that is used for documentation purposes, the commands are different:
66
+
67
+ ```
68
+ # Generate the OpenAPI files
69
+ $ make transform-to-openapi-for-docs
63
70
64
71
# Apply fixes
65
72
$ make overlay-docs
You can’t perform that action at this time.
0 commit comments