Marcus Kohlberg
Marcus Kohlberg
There's no functionality provided for that right now.
Bug: Union type exported from a shared package is not recognized as a union in API schema validation
Thanks. This is a known limitation and we are working on extending the types support. Generally, the workaround described -- declaring your own types can be more robust than relying...
Hey, great catch we had missed publishing the docs for this new feature. Fixed now. Here you go: https://encore.dev/docs/ts/primitives/validation#value-based-validation-rules
Ah, makes sense. You can create custom validation by composing the built-in rules in the type definition: https://encore.dev/docs/ts/primitives/validation#combining-rules For custom rules beyond what's possible using the built-in rules, you can...
Thanks!
Not familiar with schemez, but generally with Encore you can do validation on the backend and generate a frontend client using `encore client gen` (https://encore.dev/docs/ts/frontend/request-client).
Thanks for the report, we'll take a look!
Not that I know of yet. Feel free to try it out!