-
Notifications
You must be signed in to change notification settings - Fork 813
Add support for negated parameters in SpringMvcContract #1171
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
Closed
kssumin
wants to merge
86
commits into
spring-cloud:4.1.x
from
kssumin:fix/1134-support-negated-params
Closed
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
f0dbdc9
Fixing compile errors for new Boot and Spring Framework versions
ryanjbaxter b715d5e
Bumping versions
spring-builds f232205
Update SNAPSHOT to 4.2.0-M1
spring-builds 72e74b2
Going back to snapshots
spring-builds 88b05dd
Bumping versions
spring-builds 3b753ba
Bump com.google.protobuf:protobuf-java from 3.25.3 to 3.25.4 (#1045)
dependabot[bot] 56e779d
Bump com.fasterxml.jackson.dataformat:jackson-dataformat-smile (#1042)
dependabot[bot] fc1093e
Update GitHub actions.
OlgaMaciaszek 16229ce
Merge remote-tracking branch 'origin/main'
OlgaMaciaszek e0c3f7e
Update dependabot.
OlgaMaciaszek 220faec
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek cea0947
Add dependabot checks for npm.
OlgaMaciaszek b5c78b1
Bumping versions
spring-builds 73af460
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek 6be8546
Bump @antora/collector-extension in /docs (#1057)
dependabot[bot] 3dd1819
Bump @springio/asciidoctor-extensions in /docs (#1060)
dependabot[bot] fad2640
Bump antora from 3.2.0-alpha.4 to 3.2.0-alpha.6 in /docs (#1063)
dependabot[bot] 076dd29
Merge remote-tracking branch 'origin/main'
OlgaMaciaszek a11a442
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek d3ecd5c
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek fec17ae
Adds ignorecase field to pageable spring (#1047)
gklp ee9f34f
Make Content-Encoding configurable (#1071)
AndreTeigler 79b81dd
Bump commons-io:commons-io from 2.16.1 to 2.17.0 (#1091)
dependabot[bot] eca3b0b
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek 61c86e4
Bump com.google.protobuf:protobuf-java from 3.25.4 to 3.25.5 (#1090)
dependabot[bot] 270934d
Bump com.google.protobuf:protobuf-java in /spring-cloud-openfeign-cor…
dependabot[bot] a6f8202
Bump io.github.openfeign:feign-bom from 13.3 to 13.4 (#1073)
dependabot[bot] 1c00226
polishing FeignClientsRegistrar (#1038)
birariro 964d3c8
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek fc4c9f8
Bump com.fasterxml.jackson.dataformat:jackson-dataformat-smile (#1097)
dependabot[bot] 442b1c9
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek 2295955
Update SNAPSHOT to 4.2.0-M2
spring-builds b56dc8d
Going back to snapshots
spring-builds f9e55b5
fix: remove last slash of url
birariro 8cc00f0
code rollback
birariro 560239a
Delete '/' at the end of url
artem-gorshkov 0f55e2d
Allow removing trailing slashes (#1100)
OlgaMaciaszek 4575b41
Bump io.github.openfeign:feign-bom from 13.4 to 13.5 (#1099)
dependabot[bot] 1770f0b
Merge remote-tracking branch 'origin/main'
OlgaMaciaszek ffd0c37
Update deprecations.
OlgaMaciaszek 959db4a
Bump io.vavr:vavr from 0.10.4 to 0.10.5 (#1109)
dependabot[bot] e1d6ecd
Bump @antora/collector-extension in /docs (#1106)
dependabot[bot] de1c351
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek 80cba56
Merge remote-tracking branch 'origin/main'
OlgaMaciaszek 9c0d439
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek 9afa68b
Make feign-form-spring optional.
OlgaMaciaszek 4367c96
Reformat.
OlgaMaciaszek 0194a99
Bump com.fasterxml.jackson.dataformat:jackson-dataformat-smile (#1115)
dependabot[bot] a5db369
Revert make feign-form optional
spencergibb 766f31c
Ignores duplicate resource from boot.
spencergibb dfb7ab6
Update SNAPSHOT to 4.2.0-RC1
spring-builds 721fdef
Going back to snapshots
spring-builds 0f40833
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek ad615b7
Bump @antora/collector-extension in /docs (#1123)
dependabot[bot] 7acb03a
Fix Code of Conduct link.
OlgaMaciaszek 15ecd4d
Bumping versions
spring-builds 7a2a681
Bump commons-io:commons-io from 2.17.0 to 2.18.0 (#1127)
dependabot[bot] 611edf5
Bump com.fasterxml.jackson.dataformat:jackson-dataformat-smile (#1133)
dependabot[bot] d675b68
Bump @antora/collector-extension in /docs (#1130)
dependabot[bot] 5958f70
Disable docs dependencies for 2024.0.0 release
ryanjbaxter 9ed2ab2
Update SNAPSHOT to 4.2.0
spring-builds a8ee17e
Going back to snapshots
spring-builds 761bb50
Bumping versions to 4.2.1-SNAPSHOT after release
spring-builds 29f79e9
Bumping dependency versions after release
spring-builds 1c2cd08
Bumping versions
spring-builds dfdd900
Bumping versions
spring-builds d170ae5
Bump antora from 3.2.0-alpha.6 to 3.2.0-alpha.8 in /docs (#1139)
dependabot[bot] 3bf0d84
Bump @antora/collector-extension from 1.0.0-rc.1 to 1.0.1 in /docs (#…
dependabot[bot] 6850706
Merge branch '4.1.x'
ryanjbaxter 44d7d6b
Merge branch '4.1.x'
ryanjbaxter 66d590c
Document disabling protocol upgrade for Apache HC5. Fixes gh-1141.
OlgaMaciaszek 4f94fff
Merge remote-tracking branch 'origin/4.1.x'
OlgaMaciaszek 78262f1
Upgrade versions to 4.3.0-SNAPSHOT.
OlgaMaciaszek 8202c0b
Bumping versions
spring-builds 90ac9ab
Bumping versions
spring-builds ad19228
Bumping versions
spring-builds ee1bbd9
Update SNAPSHOT to 4.3.0-M1
spring-builds 5095ef4
Going back to snapshots
spring-builds b5ca153
Merge remote-tracking branch 'origin/4.1.x' into 4.2.x
OlgaMaciaszek a3befcc
Merge remote-tracking branch 'origin/4.2.x'
OlgaMaciaszek 596b2be
Update dependabot settings.
OlgaMaciaszek 99239f6
Merge remote-tracking branch 'origin/4.1.x' into 4.2.x
OlgaMaciaszek 0d30431
Merge remote-tracking branch 'origin/4.2.x'
OlgaMaciaszek f7c3e3b
Update SNAPSHOT to 4.3.0-M2
spring-builds fc42811
Going back to snapshots
spring-builds 849865d
Add support for negated parameters in SpringMvcContract
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ given the ability to merge pull requests. | |
|
|
||
| ## Code of Conduct | ||
| This project adheres to the Contributor Covenant [code of | ||
| conduct](https://github.com/spring-cloud/spring-cloud-build/blob/main/docs/src/main/asciidoc/code-of-conduct.adoc). By participating, you are expected to uphold this code. Please report | ||
| conduct](https://github.com/spring-cloud/spring-cloud-build/blob/main/docs/modules/ROOT/partials/code-of-conduct.adoc). By participating, you are expected to uphold this code. Please report | ||
| unacceptable behavior to [email protected]. | ||
|
|
||
| ## Code Conventions and Housekeeping | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /* | ||
| * Copyright 2013-2023 the original author or authors. | ||
| * Copyright 2013-2024 the original author or authors. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
|
|
@@ -45,6 +45,7 @@ | |
| * @author Hyeonmin Park | ||
| * @author Jasbir Singh | ||
| * @author Dominique Villard | ||
| * @author kssumin | ||
kssumin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| */ | ||
| @ConfigurationProperties("spring.cloud.openfeign.client") | ||
| public class FeignClientProperties { | ||
|
|
@@ -61,6 +62,16 @@ public class FeignClientProperties { | |
| */ | ||
| private boolean decodeSlash = true; | ||
|
|
||
| /** | ||
| * If {@code true}, trailing slashes at the end of request urls will be removed. | ||
| */ | ||
| private boolean removeTrailingSlash; | ||
|
|
||
| /** | ||
| * If {@code true}, negated parameters (those starting with '!') will be allowed. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove "(those starting with '!') " from the comment. |
||
| */ | ||
| private boolean allowNegatedParams = false; | ||
|
|
||
| public boolean isDefaultToProperties() { | ||
| return defaultToProperties; | ||
| } | ||
|
|
@@ -93,6 +104,22 @@ public void setDecodeSlash(boolean decodeSlash) { | |
| this.decodeSlash = decodeSlash; | ||
| } | ||
|
|
||
| public boolean isRemoveTrailingSlash() { | ||
| return removeTrailingSlash; | ||
| } | ||
|
|
||
| public void setRemoveTrailingSlash(boolean removeTrailingSlash) { | ||
| this.removeTrailingSlash = removeTrailingSlash; | ||
| } | ||
|
|
||
| public void setAllowNegatedParams(Boolean allowNegatedParams) { | ||
kssumin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| this.allowNegatedParams = allowNegatedParams; | ||
| } | ||
|
|
||
| public boolean getAllowNegatedParams() { | ||
| return allowNegatedParams; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean equals(Object o) { | ||
| if (this == o) { | ||
|
|
@@ -103,12 +130,13 @@ public boolean equals(Object o) { | |
| } | ||
| FeignClientProperties that = (FeignClientProperties) o; | ||
| return defaultToProperties == that.defaultToProperties && Objects.equals(defaultConfig, that.defaultConfig) | ||
| && Objects.equals(config, that.config) && Objects.equals(decodeSlash, that.decodeSlash); | ||
| && Objects.equals(config, that.config) && Objects.equals(decodeSlash, that.decodeSlash) | ||
| && Objects.equals(removeTrailingSlash, that.removeTrailingSlash); | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| return Objects.hash(defaultToProperties, defaultConfig, config, decodeSlash); | ||
| return Objects.hash(defaultToProperties, defaultConfig, config, decodeSlash, removeTrailingSlash); | ||
| } | ||
|
|
||
| /** | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.