Skip to content

RHINENG-9452: refactor error handling #3901

RHINENG-9452: refactor error handling

RHINENG-9452: refactor error handling #3901

Workflow file for this run

name: OpenAPIv3
on:
push:
pull_request:
types: [ "opened", "synchronize", "reopened" ]
jobs:
spec_validation:
name: Spec validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Spec validation with OpenAPIv3 (docs/v3/openapi.json)
run: docker run --rm -v ${PWD}/docs:/docs:Z openapitools/openapi-generator-cli:v6.0.1 validate -i /docs/v3/openapi.json
gen_client:
name: Generate Python Client
runs-on: ubuntu-latest
env:
working-directory: ./docs
needs: [spec_validation]
steps:
- uses: actions/checkout@v4
- name: Generate Python client with OpenAPIv3 (docs/v3/openapi.json)
run: docker run --rm -v ${PWD}/docs/v3:/local:Z openapitools/openapi-generator-cli:v6.0.1 generate -i /local/openapi.json -g python -o /local/client
- uses: actions/upload-artifact@v4
with:
name: Python-Client
path: ${{env.working-directory}}/client