Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Enumerations contain duplicate values when you have a default/sample with different description #718

Closed
kylef opened this issue Jun 21, 2019 · 1 comment · Fixed by #728
Labels

Comments

@kylef
Copy link
Member

kylef commented Jun 21, 2019

Given the following example, the "enumerations" inside the "enum" element contain east twice in the parse result, if you remove the description then they are correctly deduplicated.

# API
## GET /

+ Response 200 (application/json)
    + Attributes
        + direction (enum)
            + `east` - a description
            + Default
                + `east`
@kylef kylef added the bug label Jun 21, 2019
@kylef
Copy link
Member Author

kylef commented Jun 21, 2019

I think similiar applies when you use direction: east to set the content value to use in the enum element, it will be duplicated in the enumerations as it won't have the description.

@kylef kylef changed the title Enumerations contain duplicate values when you have a default with different description Enumerations contain duplicate values when you have a default/sample with different description Jun 25, 2019
@kylef kylef closed this as completed in #728 Jul 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant