alsbury / spice2json

Utility to generate a basic JSON representation of a SpiceDB Schema
MIT License
4 stars 1 forks source link

Add type namespace, caveat parameter name #4

Closed rutgersc closed 1 month ago

rutgersc commented 2 months ago

I'm generating some csharp with this and noticed some of the data was missing.

Also changed the type cast to a switch on relationType.RelationOrWildcard.(type), since it's slightly more explicit.

thewunder commented 1 month ago

@rutgersc thanks for the PR looks good!