Serializing Compiled Schemas #769
-
My understanding is that schemas can't reliably be serialized/deserialized due to containing additional type information in [Kind] and other fields. But, is it possible to serialize/deserialize the schemas that are compiled by |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Is there docs or something about how typebox cannot reliably (de)serialize its schemas? That's the exact usecase I chose typebox for, unfortunately. |
Beta Was this translation helpful? Give feedback.
Typebox 1.0 (and previous versions) support full serialization. TypeBox 1.0 added support for deserialization by consequence of having validators able to validate raw Json Schema. You can transmit TypeBox types over Http and have remote systems load and validate with them.