Convert Contract Definitions to YAML (#827)
without this change, if you're using some external libraries and you reference them in your DSL, those libraries need to also be used on the consumer side. with this change, you can set the contractsToYaml property of the plugin, that will convert the contract definitions into YAML, and then generate tests and stubs. We will store the original contract definitions under the originals folder. fixes #744
This commit is contained in:
committed by
GitHub
parent
6901fe03f5
commit
59e5f8b1eb
@@ -32,7 +32,7 @@ Contract.make {
|
||||
test : named(
|
||||
name: value(consumer(regex(nonEmpty())), producer('filename1')),
|
||||
content: value(c(regex(nonEmpty())), producer(fileAsBytes("test.json"))),
|
||||
contentType: "application/json")
|
||||
contentType: value("application/json"))
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ Contract.make {
|
||||
test : named(
|
||||
name: value(consumer(regex(nonEmpty())), producer('filename1')),
|
||||
content: value(c(regex(nonEmpty())), producer(file("test.json"))),
|
||||
contentType: "application/json")
|
||||
contentType: value("application/json"))
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user