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

Deletes can have a body in rare circumstances, instead we will requir… #705

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

smb158
Copy link
Contributor

@smb158 smb158 commented Apr 23, 2020

…e uses to annotate to assign fields as from query param

…e uses to annotate to assign fields as from query param
@smb158 smb158 requested a review from argouber April 23, 2020 03:17
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 69.871% when pulling 0df13fe on deletes-can-now-have-a-body into f911853 on master.

@@ -254,7 +254,7 @@ func NewMethod(
method.setValidStatusCodes()

if method.RequestType != "" {
hasNoBody := method.HTTPMethod == "GET" || method.HTTPMethod == "DELETE"
hasNoBody := method.HTTPMethod == "GET"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test by creating an endpoint in example-gateway that is a DELETE and has a request body.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I added a test endpoint to exercise this path

smb158 and others added 21 commits April 23, 2020 13:24
…ing, scanning - part2 (#703)

* parallelize endpoint gen, post gen hook, optimize loop

* removing unnecessary reading of files repeatedly, optimize scanning

* generate endpoint collection in a deterministic order

* code fix to accomodate zanzibar user who has a different downstream converter

* utilize parallel-go lib

* transitive dep collection

* closure param pass

* parallelize factor
* parallelize resolve module
* support for system wide whitelisting of default headers

we have a concept of default middleware, this is a same concept where we
don't need a whitelist of headers per endpoint but rather a system-wide
whitelist that will be always forwarded when available. These should be
used for more of control plane kind of headers rather than application
logic.
* export package.defaultHeaders field

missed exporting the field in a previous PR# 709
* refactor write_json

* Refactor write_json
* selectively generate module code
- fix the generated code
- glide-up and cleanup
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.

7 participants