-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Currently each language has its own validation rules and implementation. This means updating the regex rules will require a change and release of every pkg. Likewise, the schema for validation of the store files currently lives in code and is not being shared.
Rules:
- https://github.com/openfga/language/blob/main/pkg/js/validator/validate-rules.ts#L1-L49
- https://github.com/openfga/language/blob/main/pkg/java/src/main/java/dev/openfga/language/validation/Validator.java#L5-L70
- https://github.com/openfga/language/blob/main/pkg/go/validation/validation-rules.go#L8-L64
Schema:
Figure out a way to share the JSON schema between all 3 implementations, and centralize the regex rule patterns to reduce number of touch points on release.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog