update member create description, add 201 response sample with error … #269
This file contains hidden or 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: Validate OAS Files | |
| on: [push] | |
| jobs: | |
| discover-files: | |
| name: Discover OpenAPI Files | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Discover OpenAPI files | |
| id: set-matrix | |
| run: | | |
| files=$(find openapi/ -name "*.yml" -o -name "*.yaml") | |
| matrix_json=$(echo "$files" | jq -R -s -c ' | |
| split("\n")[:-1] | | |
| map(select(length > 0)) | | |
| map({ | |
| openapi_file: ., | |
| filename: (. | split("/")[-1]) | |
| }) | |
| ') | |
| echo "matrix=${matrix_json}" >> $GITHUB_OUTPUT | |
| echo "Found files matrix: ${matrix_json}" | |
| validate-openapi: | |
| name: Validate ${{ matrix.filename }} | |
| needs: discover-files | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: ${{ fromJson(needs.discover-files.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Validate Schema for ${{ matrix.openapi_file }} | |
| uses: thiyagu06/openapi-validator-action@v1 | |
| with: | |
| filepath: ${{ matrix.openapi_file }} | |
| - name: Validate YAML for ${{ matrix.openapi_file }} | |
| uses: ibiqlik/action-yamllint@v3 | |
| with: | |
| file_or_dir: ${{ matrix.openapi_file }} | |
| config_file: .yamllint.yml |