Skip to content
Merged
19 changes: 19 additions & 0 deletions .github/workflows/lint-spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run Spectral on Pull Requests

on:
- pull_request

jobs:
build:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint SDK specification
uses: stoplightio/spectral-action@latest
with:
file_glob: 'sdk/*.yaml'
- name: Lint distribution specification
uses: stoplightio/spectral-action@latest
with:
file_glob: 'dist/*.yaml'
2 changes: 1 addition & 1 deletion dist/betting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ paths:
in: query
schema:
type: integer
example: '063'
example: 51
responses:
'200':
description: Request successful
Expand Down
2 changes: 1 addition & 1 deletion dist/lending.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ paths:
in: query
schema:
type: integer
example: '063'
example: 51
responses:
'200':
$ref: '#/paths/~1transfer/post/responses/200'
Expand Down
10 changes: 5 additions & 5 deletions dist/paystack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2321,12 +2321,12 @@ paths:
in: query
schema:
type: integer
example: '50'
example: 50
- name: page
in: query
schema:
type: integer
example: '2'
example: 2
responses:
'200':
$ref: '#/paths/~1product/post/responses/201'
Expand All @@ -2353,12 +2353,12 @@ paths:
in: query
schema:
type: integer
example: '50'
example: 50
- name: page
in: query
schema:
type: integer
example: '2'
example: 2
responses:
'200':
$ref: '#/paths/~1product/post/responses/201'
Expand Down Expand Up @@ -3843,7 +3843,7 @@ paths:
in: query
schema:
type: integer
example: '063'
example: 51
responses:
'200':
$ref: '#/paths/~1page/get/responses/200'
Expand Down
2 changes: 1 addition & 1 deletion dist/savings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ paths:
in: query
schema:
type: integer
example: '063'
example: 51
responses:
'200':
$ref: '#/paths/~1transfer/post/responses/200'
Expand Down
4 changes: 2 additions & 2 deletions main/resources/settlement/fetch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ get:
in: query
schema:
type: integer
example: '50'
example: 50
- name: page
in: query
schema:
type: integer
example: '2'
example: 2
responses:
200:
$ref: '../../responses/created.yaml'
Expand Down
4 changes: 2 additions & 2 deletions main/resources/settlement/transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ get:
in: query
schema:
type: integer
example: '50'
example: 50
- name: page
in: query
schema:
type: integer
example: '2'
example: 2
responses:
200:
$ref: '../../responses/created.yaml'
Expand Down
4 changes: 2 additions & 2 deletions main/resources/verification/resolve-bank.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ get:
in: query
schema:
type: integer
example: '0022728151'
example: 0022728151
- name: bank_code
in: query
schema:
type: integer
example: '063'
example: 063
responses:
200:
$ref: '../../responses/ok.yaml'
Expand Down
Loading