-
Notifications
You must be signed in to change notification settings - Fork 168
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
b/158262661: Move snake to json segment mapping to per-operation instead of global #218
Conversation
…Name mapping Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
…225) - Added a script to sort example JSONs automatically when running `make format` - Redeployed all examples in `cloudesf-testing`. That way, everyone on the team has permissions to deploy and update them. FYI the diff looks big because this sorts the JSONs alphabetically by key. Semantically, they are identical. The only difference is the name of each API. Unblocks #218
# Conflicts: # examples/testdata/path_matcher/envoy_config.json # examples/testdata/path_matcher/openapi_swagger.json # examples/testdata/path_matcher/service_config_generated.json
Signed-off-by: Teju Nareddy <nareddyt@google.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nareddyt, qiwzhang, TAOXUY The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@nareddyt This is a breaking change. Please don't forget to change version to v7. |
Yup, I will make a PR changing to v7 as soon as this is submitted. Don't want to update in this PR, diff will be horrible. |
Due to breaking API change in GoogleCloudPlatform#218 Signed-off-by: Teju Nareddy <nareddyt@google.com>
Due to breaking API change in #218 Signed-off-by: Teju Nareddy <nareddyt@google.com>
In OpenAPI specs, a path template jsonName may conflict with the jsonName of well known
google.protobuf.*
types. To prevent this, define the snake_to_json segment mapping per operation instead of globally in the path matcher filter. Then the validation of name conflicts will only be per-operation, greatly making the validation less strict.Also optimize when this needs to be configured in the path matcher config. We only pass this when we need path parameter extraction under constant address backend routing.
Diff is too large already. I will follow-up with PRs for:
Ref: https://groups.google.com/u/1/g/google-cloud-endpoints/c/hxyuDx1yrvQ
Closes #185
Signed-off-by: Teju Nareddy nareddyt@google.com