-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(matching): deprecate matching JSON formatted objects
- Removes ability for user to supply JSON document in matching DSL. - Warning displayed to console if used BREAKING CHANGE JSON formatted objects such as `{"foo": "bar"}` are no longer supported in the matching DSL. Marshalling these to the Mock Service correctly is problematic, especially when combining with matchers and other nested JSON formatted objects. Type information is lost re-assembling into a workable map[string]interface{} which meant that, for example, a "100" is converted to 100 losing key information. If we detect a JSON formatted object in the DSL, we now log a warning indicating this potential problem. See #73 for background.
- Loading branch information
Showing
11 changed files
with
77 additions
and
165 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.