Validation using @sinclair/typebox library as per recommendation, not working? #1010
-
I am building out a new validation for an object type and Angular is throwing errors. I'm trying to figure out why it is throwing this complaint in the code and at runtime. According to the validation documentation, it should work? Am I missing something? I checked and I'm using 17.0.0. Error Call Definitions
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, There is a syntax error in your schema, remove const SCHEMA_EventList = Type.Object({ events: Type.Array( Type.String() ), schedule: Type.String(), }); |
Beta Was this translation helpful? Give feedback.
-
Ballocks. Was that it? Thanks. |
Beta Was this translation helpful? Give feedback.
Hello,
There is a syntax error in your schema, remove
id:
and it is OK: