🚚 Rename convenience endpoint to MaakKlantcontact #53
Workflow file for this run
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
name: generate-sdks | |
on: | |
push: | |
paths: | |
- "src/openklant/components/*/openapi.yaml" | |
- ".github/workflows/generate-sdks.yml" | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
component: ['contactgegevens', 'klantinteracties'] | |
name: Run with component ${{ matrix.component }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm install -g @openapitools/openapi-generator-cli | |
- name: Determining oas path | |
id: vars | |
run: echo ::set-output name=oas::./src/openklant/components/${{ matrix.component }}/openapi.yaml | |
- name: Validate schema | |
run: openapi-generator-cli validate -i ${{ steps.vars.outputs.oas }} | |
- name: Generate Java client | |
run: openapi-generator-cli generate -i ${{ steps.vars.outputs.oas }} --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ | |
-o ./sdks/java -g java --additional-properties=dateLibrary=java8,java8=true,optionalProjectFile=false,optionalAssemblyInfo=false | |
- name: Generate .NET client | |
run: openapi-generator-cli generate -i ${{ steps.vars.outputs.oas }} --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ | |
-o ./sdks/net -g csharp --additional-properties=optionalProjectFile=false,optionalAssemblyInfo=false | |
- name: Generate Python client | |
run: openapi-generator-cli generate -i ${{ steps.vars.outputs.oas }} --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ | |
-o ./sdks/python -g python --additional-properties=optionalProjectFile=false,optionalAssemblyInfo=false+ |