Skip to content

Return a 400 for requests missing form parameters#194

Open
danielcompton wants to merge 1 commit intojuxt:masterfrom
danielcompton:fix-empty-body-form-params
Open

Return a 400 for requests missing form parameters#194
danielcompton wants to merge 1 commit intojuxt:masterfrom
danielcompton:fix-empty-body-form-params

Conversation

@danielcompton
Copy link
Copy Markdown
Contributor

@danielcompton danielcompton commented Sep 1, 2017

#125 added support for returning a 400 when the body of a request was empty and that didn't pass the :body resource schema. This commit extends that support to also handle requests where the schema is defined on the :form.

Relates to #110

juxt#125 added support for returning a 400 when the body of a request was
empty and that didn't pass the :body resource schema. This commit
extends that support to also handle requests where the schema is defined
on the :form.

Relates to juxt#110
@danielcompton
Copy link
Copy Markdown
Contributor Author

danielcompton commented Sep 1, 2017

This causes the form-test tests to fail. I think I must be missing the distinction between :form and :body here. I would assume that requests for either that were missing form parameters would fail, but it seems like it is acceptable for :form to have missing params, but not :body?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant