danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 481 forks source link

enum syntax not work #192

Closed jk2K closed 9 years ago

jk2K commented 9 years ago
 type (enum[string]) - upload type
        + Members
            + `avatar` - avatar
            + `gallery` - gallery

version: aglio 2.2.0 olio 1.4.0

danielgtaylor commented 9 years ago

@jk2K thanks for reporting. This seems to be an upstream issue in the Drafter parser library.

Also, you could use this shorter form, I believe. Still doesn't generate the right example JSON though:

# Data Structures

## My Type
+ type (enum) - upload type
    + avatar
    + gallery
danielgtaylor commented 9 years ago

@jk2K please try the latest olio theme 1.5.0 (you can just reinstall Aglio to get it). The rendering of enumerated types should be fixed now, and it should choose the first option for the examples. In your example above, that means you would see "type": "avatar" in the JSON for you example MSON above.

jk2K commented 9 years ago

work fine, thanks