-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
Description
Dynamite should support validating more strict types:
- array lengths #Support specified length for arrays. #1056
- minItems
- maxItems
- uniqueItems (maybe utilize a Set for this)
- number:
- minimum/exclusiveMinimum
- maximum/exclusiveMaximum
- multipleOf
- enum
- check the pattern at build time (fix(dynamite): Fix pattern check for enums #1313)
This can all fit nicely into: https://github.com/nextcloud/neon/blob/main/packages/dynamite/dynamite/lib/src/helpers/pattern_check.dart. We must not only consider validating these schemas inside objects but also when uses as a parameter in an operation.