lexgen: generate actual enums for enum strings
did:plc:p5yjdr64h7mk5l3kh6oszryk opened this Jan 23, 2026 0 comments
did:plc:p5yjdr64h7mk5l3kh6oszryk opened Jan 23, 2026
Right now the generator will see the following and generate a Cowstr that isn't validated to be one of the possible closed values instead of a type safe enum.
"sortBy": {
"type": "string",
"enum": ["newest", "oldest", "top"],
"default": "newest"
}It would be a major improvement to change this behaviour.
No activity yet.