-
Notifications
You must be signed in to change notification settings - Fork 67
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
base: master
Are you sure you want to change the base?
Conversation
…e uses to annotate to assign fields as from query param
@@ -254,7 +254,7 @@ func NewMethod( | |||
method.setValidStatusCodes() | |||
|
|||
if method.RequestType != "" { | |||
hasNoBody := method.HTTPMethod == "GET" || method.HTTPMethod == "DELETE" | |||
hasNoBody := method.HTTPMethod == "GET" |
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.
add a test by creating an endpoint in example-gateway that is a DELETE and has a request body.
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.
Good point, I added a test endpoint to exercise this path
…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
…e uses to annotate to assign fields as from query param