Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when enum description keys do not match enum values #5

Open
jautor opened this issue Jun 25, 2021 · 0 comments
Open

Crash when enum description keys do not match enum values #5

jautor opened this issue Jun 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@jautor
Copy link
Member

jautor commented Jun 25, 2021

A crash occurs within the XML tree library when an enumDescription / LongDescription key does not match a value in the enum list. While this is an error in the input, it would be helpful for the tool to validate that description entries match up with enum values. This can be easily reproduced using the test.json file in the repo, such as:

    "ThingType": "RackMount | Cheap | Expensive | Obsolete | Trendy",
    "ThingType!enumDescriptions": {
        "RackMount": "tmp",
        "SUPERCHEAP": "THIS VALUE DOES NOT MATCH A DEFINED ENUMERATION!",
        "Expensive": "tmp2",
        "Obsolete": "tmp3",
        "Trendy": "tmp4"
    },
@jautor jautor added the enhancement New feature or request label Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant