Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAS3 integration tests and fixes SO-103 #253

Merged
merged 51 commits into from
Apr 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
1b5b8fe
chore: ignore lib directory
XVincentX Apr 12, 2019
e643c84
refactor: change name, oas2
XVincentX Apr 12, 2019
c8741e9
test: enlarge the oas2 base file
XVincentX Apr 12, 2019
2237843
refactor: add json schema types for better typings
XVincentX Apr 12, 2019
39f670b
fix: cast back to ajv so we can use it safely around
XVincentX Apr 12, 2019
ecdcf32
refactor: avoid dangling non const
XVincentX Apr 12, 2019
e1b9ae9
chore: use node 10
XVincentX Apr 12, 2019
ad6211b
test: add bunch of tests
XVincentX Apr 12, 2019
067287f
test: add to do when we'll fix this problem
XVincentX Apr 15, 2019
9726463
test: use more precise paths
XVincentX Apr 15, 2019
04f4486
test: add basic and failing tests
XVincentX Apr 15, 2019
fc03e90
feat: return and transform the default response if defined
XVincentX Apr 15, 2019
a9aed0e
test: change test meaning
XVincentX Apr 15, 2019
a8e3c9e
chore: lint after the tests
XVincentX Apr 15, 2019
97374fd
fix: try to find first the default response and then modify it
XVincentX Apr 15, 2019
ec8e5c4
fix: dot overwrite the original object
XVincentX Apr 15, 2019
4822431
test: add request specific status code test
XVincentX Apr 15, 2019
77b3acc
test: add test for unexistend status code
XVincentX Apr 15, 2019
2647a1e
test: add no parameter provided test
XVincentX Apr 15, 2019
4257b79
fix: find a suitable response when not found
XVincentX Apr 15, 2019
b8ac931
test: update test to return default content-type
XVincentX Apr 16, 2019
cec1601
Merge branch 'develop' into feat/oas3-integration-tests
XVincentX Apr 16, 2019
40441da
Merge branch 'develop' into feat/oas3-integration-tests
XVincentX Apr 16, 2019
8b93461
test: dry fixture document
XVincentX Apr 16, 2019
08fc0cd
refactor: correct texts
XVincentX Apr 16, 2019
d387779
test: remove oas2 leftover test
XVincentX Apr 16, 2019
da8f4bc
test: put oas2/3 documents on pair
XVincentX Apr 16, 2019
5534e6c
test: repeat tests for oas2 and 3
XVincentX Apr 16, 2019
fbbc690
Merge branch 'develop' into feat/oas3-integration-tests
XVincentX Apr 16, 2019
eae5871
chore: file rename
XVincentX Apr 16, 2019
db3a5c4
test: remove oas3 file test
XVincentX Apr 16, 2019
6c300c8
test: add oas3 specific
XVincentX Apr 16, 2019
aeb641e
test: remove xml content types
XVincentX Apr 16, 2019
09f7587
test: reorder and fixup
XVincentX Apr 16, 2019
d32132f
test: use native promise
XVincentX Apr 16, 2019
4b5415f
test: remove redundant test
XVincentX Apr 16, 2019
a33b860
feat: do not create singleton grahite and loaders
XVincentX Apr 16, 2019
49c68e4
chore: env in config file
XVincentX Apr 16, 2019
0ddb47e
chore: typecheck only on regular builds
XVincentX Apr 17, 2019
5e83a3c
refactor: export class definition, not factories
XVincentX Apr 17, 2019
6a5e857
test: check loader type
XVincentX Apr 17, 2019
a555cb4
chore: dry test configuration
XVincentX Apr 17, 2019
d459ca0
test: oas specific
XVincentX Apr 17, 2019
ec9d52e
Merge branch 'develop' into feat/oas3-integration-tests
XVincentX Apr 17, 2019
cdf769f
Merge branch 'develop' into feat/oas3-integration-tests
XVincentX Apr 17, 2019
b488157
Merge branch 'develop' into feat/oas3-integration-tests
XVincentX Apr 17, 2019
dd3a57b
test: externalise oas specific tests
XVincentX Apr 17, 2019
088d6d4
tests: check the body
XVincentX Apr 17, 2019
6fd666b
test: check resources are the same when loading same file in two inst…
XVincentX Apr 17, 2019
27b2dc8
test default response in oas2 too
XVincentX Apr 18, 2019
98116d9
v3.0.0-pre.2
XVincentX Apr 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $?
- run:
name: Run build
command: yarn build
command: yarn typecheck
publish:
docker:
- image: circleci/node:10
Expand Down
28 changes: 23 additions & 5 deletions examples/petstore.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"http"
],
"paths": {
"/pet": {
"/pets": {
"post": {
"tags": [
"pet"
Expand Down Expand Up @@ -130,7 +130,7 @@
]
}
},
"/pet/findByStatus": {
"/pets/findByStatus": {
"get": {
"tags": [
"pet"
Expand Down Expand Up @@ -185,7 +185,7 @@
]
}
},
"/pet/findByTags": {
"/pets/findByTags": {
"get": {
"tags": [
"pet"
Expand Down Expand Up @@ -235,7 +235,7 @@
"deprecated": true
}
},
"/pet/{petId}": {
"/pets/{petId}": {
"get": {
"tags": [
"pet"
Expand Down Expand Up @@ -275,6 +275,24 @@
"schema": {
"$ref": "#/definitions/Pet"
}
},
"default": {
"description": "default response",
"schema": {
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
}
},
"security": [
Expand Down Expand Up @@ -380,7 +398,7 @@
]
}
},
"/pet/{petId}/uploadImage": {
"/pets/{petId}/uploadImage": {
"post": {
"tags": [
"pet"
Expand Down