ComparableSchema

Overview

SugoiJS provides schema based validation using the ComparableSchema object.

ComparableSchema provide a way to verify data of any kind (primitive, array, map) by type, regex and numeric validation. The Schema can be build using the ComparableSchema.builder() method.

The ComparableSchema is used with Sugoi/server @RequestSchemaPolicy decorator.