-
Hi, I noticed that encore does not support arbitrary JSON in schemas for both responses or parameters. That can be very useful when building APIs that consume arbitrary schemas or things like annotations. In Go, I would usually try to support those with a Is support for arbitrary JSON structure currently planned for encore? If you, would you welcome PRs to implement this feature? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use Hope that helps! |
Beta Was this translation helpful? Give feedback.
You can use
json.RawMessage
to communicate that a particular field holds raw, arbitrary JSON. And then you can parse it yourself in the handler in whatever way is best for you.Hope that helps!