Skip to content

Commit

Permalink
💚 Fix failing CI due to openapitools issue
Browse files Browse the repository at this point in the history
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
stevenbal committed Dec 9, 2024
1 parent df117af commit 6635402
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions openapitools.json
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"
}
}

0 comments on commit 6635402

Please sign in to comment.