Open YOU54F opened 3 months ago
We would like to implement Pact V3 Specification support for Pact Ruby
Will be tagging and closing related v3/v4 issues, and linking to this meta issue
https://github.com/pact-foundation/pact-ruby/issues/318
min
max
{ "type": "RandomInt", "min": 0, "max": 2147483647 }
{ "type": "RandomDecimal", "digits": 6 }
{ "type": "RandomHexadecimal", "digits": 8 }
{ "type": "RandomString", "size": 20 }
{ "type": "Regex", "regex": "\\d{1,8}" }
{ "type": "Uuid" }
{ "type": "Date", "format": "MM/dd/yyyy" }
{ "type": "Time", "format": "HH:mm" }
{ "type": "DateTime", "format": "yyyy/MM/dd - HH:mm:ss.S" }
{ "type": "RandomBoolean" }
{ "match": "include", "value": "substr" }
{ "match": "integer" }
{ "match": "decimal" }
{ "match": "number" }
{ "match": "datetime", "format": "yyyy-MM-dd HH:ss:mm" }
{ "match": "time", "format": "HH:ss:mm" }
{ "match": "date", "format": "yyyy-MM-dd" }
{ "match": "null" }
{ "match": "boolean" }
true
false
{ "match": "contentType", "value": "image/jpeg" }
{ "match": "values" }
We would like to implement Pact V3 Specification support for Pact Ruby
Current status
Required V3 Features
Implementation notes
Validation
V3 Related Issues
https://github.com/pact-foundation/pact-ruby/issues/318
V3 Generators
min
andmax
values{ "type": "RandomInt", "min": 0, "max": 2147483647 }
{ "type": "RandomDecimal", "digits": 6 }
{ "type": "RandomHexadecimal", "digits": 8 }
{ "type": "RandomString", "size": 20 }
{ "type": "Regex", "regex": "\\d{1,8}" }
{ "type": "Uuid" }
{ "type": "Date", "format": "MM/dd/yyyy" }
{ "type": "Time", "format": "HH:mm" }
{ "type": "DateTime", "format": "yyyy/MM/dd - HH:mm:ss.S" }
{ "type": "RandomBoolean" }
V3 Matchers
{ "match": "include", "value": "substr" }
{ "match": "integer" }
{ "match": "decimal" }
{ "match": "number" }
{ "match": "datetime", "format": "yyyy-MM-dd HH:ss:mm" }
{ "match": "time", "format": "HH:ss:mm" }
{ "match": "date", "format": "yyyy-MM-dd" }
{ "match": "null" }
{ "match": "boolean" }
true
andfalse
){ "match": "contentType", "value": "image/jpeg" }
{ "match": "values" }