I am new to Pact Contract Testing. I am using Pact...
# general
a
I am new to Pact Contract Testing. I am using Pact-go and I have a Struct with String[], I need to write a pact:example for this, but I am getting error "`struct field tag
json:"tags" pact:"example="Name::CustomerName","Status::Live""
not compatible with reflect.StructTag.Get: key:"value" pairs not separated by spaces`". JSON value is
Copy code
"tags":["Name::CustomerName","Status::Live"]
Under Struct, this is what I have which is throwing error. `Tags []string `json:"tags" pact:"example="Name::CustomerName","Status::Live""`` can someone tell me the correct format of pact:example for string[]?
m
I see you’ve asked in Pact Go - I’ll answer there.
1