Open Que3216 opened 2 years ago
I'm encountering the same issue. Is the expected wire serialization format specified for complex conjure error parameters? https://github.com/palantir/conjure/blob/master/docs/spec/wire.md#55-conjure-errors
Filed https://github.com/palantir/conjure/issues/1217 to clarify wire format.
What happened?
Generates the typings:
But at runtime generates the value:
Note that invalidTimeIntervals is serialized as a string (not even valid JSON). This mismatch can cause bugs at runtime if the developer does not realize the typings are incorrect.
What did you want to happen?
It to generate typings of:
Or the Conjure BE to not serialize params, or serialize them to JSON for the FE to parse (though expect this would be a hard to make break).