openfga / language

Grammar for the OpenFGA modeling language
https://openfga.dev
Apache License 2.0
16 stars 7 forks source link

Generated exception underscores relationship name when relationship name is the same as undefined type name #127

Closed d-jeffery closed 2 weeks ago

d-jeffery commented 8 months ago

Example

model
  schema 1.1
type group
  relations
    define customer: [customer]

Exception generated here

d-jeffery commented 2 weeks ago

Fixed by https://github.com/openfga/language/commit/0ce47ba5d9daa754cde3177255a913d57f1ffc04#diff-00a651c62901f9a4eb2d5f98cbf2a3aa169efb1319405cca3c494059112a8b9aR109-R118