You can use the serialized schema for client-side validation in frontend applications:
Copy
import {serializeSchema} from '@orion-js/schema'import {UserSchema} from './schemas/UserSchema'// In your API endpointapp.get('/schemas/user', (req, res) => { res.json(serializeSchema(UserSchema))})
On the client side, you can use this schema with form libraries or build custom validation: