Open hsluoyz opened 4 years ago
I would like to work on this
Hi @hsluoyz I wanted to implement the validations but I am not getting how will I understand what is a valid Casbin Model? Is there any docs to help out?
See our docs: https://casbin.org/docs/en/syntax-for-models
Thanks yang, Will try to implement it
@hsluoyz Please check the PR at https://github.com/casbin/casbin-dashboard/pull/68 And please do let me know if my implementation is in the correct direction.
Thanks
@hsluoyz Is this issue still open for work?
@arteevraina yes.
I am working on this.
@hsluoyz Should this feature be implemented on this page?
@arteevraina you can ask @438561537
Yes, I am working on this.@arteevraina
Yes, I am working on this.@arteevraina
Ok Cool!
Casbin dashboard has a page for models. We want to check whether the user has written a correct Casbin model or not. If it has syntax error, we want to prompt the error line and error reason. Just like IDE showing compile errors for languages like C++ or Java.
The syntax and semantics check can be done by frontend (like codemirror) or backend (run it on a Golang casbin enforcer) or mix the above two ways.