Skip to content

Commit 8e35012

Browse files
Fix anyOf body payload (#15)
* fix: is payload contains or, treat as object * build: add prepare script to generate models * chore(git): ignore model jsons * chore(demo): delete model jsons, add anyOf api * chore(deps): regenerate package-lock.json * test: add test for anyOf payload * build: remove travis, add github action * test: migrate test runner * chore: remove codemirror import * 4.2.1
1 parent 5b372b8 commit 8e35012

33 files changed

+3129
-592106
lines changed

.github/workflows/tests.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: tests
2+
3+
env:
4+
FORCE_COLOR: 1
5+
6+
on:
7+
push:
8+
pull_request:
9+
branches:
10+
- stage
11+
- master
12+
jobs:
13+
test_linux:
14+
name: ${{ matrix.os }} (${{ matrix.browser }})
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-18.04, ubuntu-20.04]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v1
23+
with:
24+
node-version: 14
25+
- uses: microsoft/playwright-github-action@v1
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Run tests
29+
run: npm test
30+
# test_win:
31+
# name: "Windows"
32+
# strategy:
33+
# fail-fast: false
34+
# runs-on: windows-latest
35+
# steps:
36+
# - uses: actions/checkout@v2
37+
# - uses: actions/setup-node@v1
38+
# with:
39+
# node-version: 14
40+
# - uses: microsoft/playwright-github-action@v1
41+
# - name: Install dependencies
42+
# run: npm ci
43+
# - name: Run tests
44+
# run: npm test

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,7 @@ node_modules
5858
coverage
5959
dist/
6060

61-
.idea
61+
.idea
62+
63+
demo/*.json
64+
!demo/apis.json

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)