Centralize FeathersJS Validation with AJV Service Hooks
Use one AJV JSON Schema in a FeathersJS before hook to validate REST and Socket.io payloads before they reach the database adapter.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use one AJV JSON Schema in a FeathersJS before hook to validate REST and Socket.io payloads before they reach the database adapter.
Feathers services return either a paginated object or a plain array from find(). Learn how to configure pagination, normalize $limit and $skip in a before hook, and handle offset pagination limits.
Architecture note on using FeathersJS service hooks to enforce authentication, authorization, validation, and pagination across REST and WebSocket transports with explicit trust and data boundaries.
Avoid transport duplication by using FeathersJS service hooks as a unified enforcement boundary for validation and authorization across REST and real-time clients.