chaokunyang commented on issue #3904:
URL: https://github.com/apache/fory/issues/3904#issuecomment-5140481309

   Thanks for raising this question.
   
   Currently, Apache Fory does not support field validation rules in FDL like 
Protovalidate or protoc-gen-validate.
   
   If added in the future, validation would likely be generated as a separate 
validator instead of being embedded into the serialization/deserialization path.
   
   For example:
   
   ```fdl
   struct User {
       string email @validate(email);
       int age @validate(gte=18);
   }
   ```
   
   could generate:
   
   ```
   User user = serializer.deserialize(bytes);
   validator.validate(user);
   ```
   
   This keeps Fory's serialization performance unchanged while allowing users 
to enable validation when needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to