hello there, pretty new to Cerbos and I have had some fun using it lately.
I was having some questions that i dont seem to find an answer to.
I am using a .NET client as a consumer for the cerbos PDP. I managed to use some reflection to be able to create my CheckRequests automatically whenever I want to check the rights for a specific resource or many.
So each Entity in C# has a smaller subset of their properties as a DTO that will be sent towards the PDP.
Now every time I want to change the policies to add some new attribute I have to also keep in mind the DTO that I am using to generate the request.
Here comes the question:
Is there a plan to create something that would generate JSON Schemas for such files and maybe vice-versa?
Could be something like:
cerbosctl gen-schema --type=csharp --source="/Dto" --dest="/cerbos/_schema"
cerbosctl gen-dto --type=csharp --source="/cerbos/_schema" --dest="/Dto"
Or even just based on the resource_policy to create the resource schematic?
Thank you!