-
Notifications
You must be signed in to change notification settings - Fork 4
Description
π Environment
- Xcode: 15.2.0
- Platform: MacOS/Vapor
- Version/Release: 0.3.8
- Dependency manager: SPM
π¬ Description
At point of calling public func finalize(pact: Data, completion: ((Result<String, MockServerError>) -> Void)?) my pact data has the correct consumer and provider (as far as i can tell. I am debugging up to the point I can, i can see the consumer and provider set as I expect)
The end result however is a file that is called consumer.provider.json that does not match my expected output file. It also does not overwrite/merge changes and finally the content of the file ends up looking like
"consumer": { "name": "consumer" },
π¦Ά Reproduction Steps
Reproduction steps are tricky - we are using this is a VAPOR API, not an xcode project and therefor have some extra wrappers. However i can see my data all the way down to this level, then it suddenly changes.
π€ Expected Results
"consumer": { "name": "consumer" }, should end up with name matching what i have set the consumer to be, not defaulted to consumer.
π² Actual Results
"consumer": { "name": "consumer" } name has defaulted to consumer