LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

Reslang Enum allows identical values #43

Closed lr-conrs closed 4 years ago

lr-conrs commented 4 years ago
enum GeoCode {
    ARG
    AUS
    BRA
    CAN
    DEU
    ESP
    FRA
    GBR
    IDN
    IND
    ITA
    JPN
    LAT
    MEX
    NLD
    NZ
    TWN
    USA
    HKG
    ALL
    LAT
}

In above example, LAT occurs twice.

This generates just fine, but it probably shouldn't?

liveandrew commented 4 years ago

looking for a code contribution here matt ;-P

lr-conrs commented 4 years ago

Fair enough, I added it to my triage for today. I owe some other reslang work too :)

liveandrew commented 4 years ago

sorry, i got bored and fixed this myself while listening to town hall ;-P fixed in 1.3.10

9fd3624bda5a7a8ae34b88595bc82684ebd7d758