Konform now supports this list of validations from the JSON Schema spec
For Any instance
- type: Check the type of the value (subtype of the declared type)
- enum: Value must be one of the specified values, can also validate Strings based on Kotlin enum classes
- const: Value must be equal to the specified value
For Numbers
- multipleOf: Value must be a multiple of the given value
- maximum: Inclusive upper bound on Number
- exclusiveMaximum: Exclusive upper bound on Number
- minimum: Inclusive lower bound on Number
- exclusiveMinimum: Exclusive lower bound on Number
For Strings
- minLength: Check minimum length of String
- maxLength: Check maximum length of String
- pattern: Validate using a regex pattern
For Arrays and Iterables
- minSize: Array must contain a minimum number of items
- maxSize: Array must not contain more than a maximum number of items
- uniqueItems: All items in the Array must be unique
For Maps
- minSize: Map must contain a minimum number of key value pairs
- maxSize: Map must not contain more than a maximum number of key value pairs