-
Beta Was this translation helpful? Give feedback.
Answered by
lbroudoux
Jan 23, 2024
Replies: 1 comment 1 reply
-
Hello! examples:
MOCK_0:
value: |-
{"name": "Eclair Cafe", "description": "Delicieux Eclair au Cafe pas calorique du tout", "size": "M", "price": {{request.body/price}}, "status": "available"} that way, the example is considered as a String and not as JSON with type interpolation. Let me know if those memories are correct. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lbroudoux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
For using the number type, you have to serialize your example differently to avoid Microcks interpreting it as a String.
Typically, IIRC, you have to use the serialized JSON form embedded in YAML. Something like:
that way, the example is considered as a String and not as JSON with type interpolation.
Let me know if those memories are correct.