You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Since the routes are attached to the application during runtime, the data in routes.json must be always in a valid format. Currently, the application checks the same immediately before injecting the routes.
Now the RBAC configs are dependent on portions of routes.json (access identifiers), the application needs robust and reliable method to ensure the integrity of the contents of routes.json
Describe the solution you'd like
The idea is to use a JSON-schema-validation library, (particularly AJV) to ensure that routes.json is in the correct format. AJV is chosen as of the commonly available libraries, it is the fastest.
Describe alternatives you've considered
We can use any of the libraries mentioned in the above screenshot.
Additional context
This forms the base for the RBAC mechanism that allows the application to map roles to rights during runtime.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Since the routes are attached to the application during runtime, the data in routes.json must be always in a valid format. Currently, the application checks the same immediately before injecting the routes.
Now the RBAC configs are dependent on portions of routes.json (access identifiers), the application needs robust and reliable method to ensure the integrity of the contents of routes.json
Describe the solution you'd like
The idea is to use a JSON-schema-validation library, (particularly AJV) to ensure that routes.json is in the correct format. AJV is chosen as of the commonly available libraries, it is the fastest.
Describe alternatives you've considered
We can use any of the libraries mentioned in the above screenshot.
Additional context
This forms the base for the RBAC mechanism that allows the application to map roles to rights during runtime.
The text was updated successfully, but these errors were encountered: