-
Notifications
You must be signed in to change notification settings - Fork 362
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
Fix/oas23 body param validation nographite #501
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropped a first round of comments, but I need to check this out again tomorrow.
packages/http-server/src/__tests__/body-params-validation.spec.ts
Outdated
Show resolved
Hide resolved
packages/http-server/src/__tests__/body-params-validation.spec.ts
Outdated
Show resolved
Hide resolved
packages/http-server/src/__tests__/body-params-validation.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I had another look.
It was a little bit hard to review; I got confused I because of the unsupported tests and the amount of tests — which is good anyway :)
I think we have a bug in httpSpec package, which is treating the required
parameter as true by default, but the spec is saying the opposite.
packages/http-server/src/__tests__/body-params-validation.spec.ts
Outdated
Show resolved
Hide resolved
packages/http-server/src/__tests__/body-params-validation.spec.ts
Outdated
Show resolved
Hide resolved
packages/http-server/src/__tests__/fixtures/encodings.oas3.yaml
Outdated
Show resolved
Hide resolved
test-harness/specs/validate-body-params/form-byte-format-fail.oas2.txt
Outdated
Show resolved
Hide resolved
...-harness/specs/validate-body-params/form-data-encoding-contenttype-fail.oas3.txt.unsupported
Outdated
Show resolved
Hide resolved
test-harness/specs/validate-body-params/form-data-invalid-request.oas3.txt
Outdated
Show resolved
Hide resolved
test-harness/specs/validate-body-params/form-dont-allow-empty-values.oas2.txt.unsupported
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok another bunch of commits; I've checked out all the harness examples.
test-harness/specs/validate-body-params/form-dont-allow-empty-values.oas2.txt.unsupported
Outdated
Show resolved
Hide resolved
test-harness/specs/validate-body-params/form-data-encoding-contenttype-ok.oas3.txt.unsupported
Outdated
Show resolved
Hide resolved
...-harness/specs/validate-body-params/form-data-encoding-contenttype-fail.oas3.txt.unsupported
Outdated
Show resolved
Hide resolved
test-harness/specs/validate-body-params/form-data-allow-reserved-fail.oas3.txt.unsupported
Outdated
Show resolved
Hide resolved
test-harness/specs/validate-body-params/form-allow-empty-values.oas2.txt.unsupported
Outdated
Show resolved
Hide resolved
@chris-miaskowski also — do not forget to update the CHANGELOG.md |
Closes #408
Closes #483