pact-foundation / pact-stub-server

Standalone pact stub server
MIT License
75 stars 19 forks source link

Date generator is not implemented #21

Closed mstefan7 closed 5 years ago

mstefan7 commented 5 years ago

Hi again, this is the second issue I'm facing. I have POST request that returns this in body: {"birthDate": "1970-01-01"}

while having this generator assigned {"$.birthDate": {"type": "Date"}}

On matched interaction, I get this message in logs: [WARN] Date generator is not implemented

Very same goes for generator of regex type. Can you please take a look?

uglyog commented 5 years ago

Date generators are still to be implemented in the upstream libraries (see https://github.com/pact-foundation/pact-reference/issues/33)

uglyog commented 5 years ago

Regex generators should be working. Can you provide the version you are using?

uglyog commented 5 years ago

Date and Regex generators have now been implemented in the upstream library. I can now create a new version to support this.

uglyog commented 5 years ago

This has been released with ver 0.2.1