Comments (3)
@mikenikles Hi, Apologies for the delay in reply (have been exceptionally busy of late)
I am happy to receive a PR to amend/revert this message, however it may be worthwhile checking out the TypeBox error function.
https://github.com/sinclairzx81/typebox?tab=readme-ov-file#error-function
Usually it's better to intercept the ValueErrorType
enumeration than the en-US
string message, however I'm not sure if this would work with your current implementation. The error function has been updated since 0.25.x so it might be good to check none the less.
Will keep this issue open for a week or so if you wanted to submit the PR to revert the message.
Again, sorry for the delay.
S
from typebox.
@mikenikles Hiya,
Have just published a update to amend the error message on 0.32.35. You should be able to use this moving forward, but would recommend investigating the ValueErrorType passed on the ErrorFunction for more robust matching.
Hope this helps
S
from typebox.
Thanks a lot for the change and also the link to the custom error handling 🙏.
from typebox.
Related Issues (20)
- Max call stack size exceeded HOT 1
- Value.Convert() doesn't work with nullable record HOT 1
- Variadic Any Typed function parameters HOT 2
- How to do a cross field validation? HOT 3
- Undefined is incorrectly handled in Diff HOT 3
- QoL helper: `TypeCheck.Ensure` HOT 3
- Usage of `Type.Composite` with `Type.TemplateLiteral` HOT 3
- `Check` doesn't validate strings with enums HOT 4
- `Type.Omit` mixed with `Type.Union` is not preserving the `additionalProperties` attribute HOT 2
- Advice to compose types HOT 3
- Access to schema properties for non TObject schemas HOT 5
- Type.Optional with Type.Transform unexpected behaviour HOT 1
- ts(7056) when you try to export a big union type HOT 1
- `Value.Default` does not traverse object schema HOT 2
- Unable to use a union of literal as record key type after upgrading version HOT 2
- Unknown format 'email' after update HOT 3
- Uncaught Error: Cannot access 'Object' before initialization HOT 3
- Support for conditional optional based on other value HOT 2
- Type.Mapped does not handle optional properties the same as Typescript HOT 1
- Add changelog or create a new release for each tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typebox.