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/
6969output /openapi /elasticsearch-serverless-openapi.tmp * .json
7070output /openapi /elasticsearch-serverless-openapi.examples.json
7171output /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 @@ -57,6 +57,7 @@ transform-to-openapi: ## Generate the OpenAPI definition from the compiled schem
5757
5858transform-to-openapi-for-docs : # # Generate the OpenAPI definition tailored for API docs generation
5959 @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
60+ @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
6061
6162filter-for-serverless : # # Generate the serverless version from the compiled schema
6263 @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:
6060```
6161# Generate the OpenAPI representation
6262$ 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
6370
6471# Apply fixes
6572$ make overlay-docs
You can’t perform that action at this time.
0 commit comments