-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💚 Fix failing CI due to openapitools issue
the generate-sdks job was failing due to some network calls that were performed when validating the OAS, this is avoided by specifying the version of the generator-cli in openapitools.json see also: OpenAPITools/openapi-generator-cli#802
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 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 |
---|---|---|
|
@@ -556,9 +556,6 @@ jobs: | |
run: npm install -g @openapitools/[email protected] | ||
- name: Validate schema | ||
run: openapi-generator-cli validate -i ./openapi.yaml | ||
- name: Set the version of openapi-generator which gets used | ||
run: | | ||
openapi-generator-cli version-manager set 7.0.0 | ||
- name: Generate Java client | ||
run: | ||
openapi-generator-cli generate -i ./openapi.yaml | ||
|
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", | ||
"spaces": 2, | ||
"generator-cli": { | ||
"version": "7.0.0" | ||
} | ||
} |