Skip to content

fix(api): consider expiration return addresses for ledger updates #104

fix(api): consider expiration return addresses for ledger updates

fix(api): consider expiration return addresses for ledger updates #104

Workflow file for this run

name: Swagger Validate
on:
push:
paths:
- "documentation/api/**"
- ".github/workflows/swagger.yml"
branches:
- main
pull_request:
paths:
- "documentation/api/**"
- ".github/workflows/swagger.yml"
jobs:
list-docs:
name: Gather API definitions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- id: set-matrix
run: echo "::set-output name=matrix::$(ls documentation/api/*.yml | jq -Rsc 'split("\n")[:-1]')"
validate-swagger-docs:
needs: list-docs
name: ${{ format('Validating {0}', matrix.doc) }}
runs-on: ubuntu-latest
strategy:
matrix:
doc: ${{ fromJson(needs.list-docs.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- name: Validate API definition
uses: char0n/swagger-editor-validate@v1
with:
definition-file: ${{ matrix.doc }}