apiaryio / drafter

API Blueprint Parser (C++)
https://apiblueprint.org/
MIT License
302 stars 54 forks source link

Missing description after wrongly interpreted MSON `enum[string], fixed` #750

Open tjanc opened 5 years ago

tjanc commented 5 years ago
FORMAT: 1A
HOST: http://example.com

# Example API

# Group Test

## Order Collection [/example]

### GET

+ Response 200 (application/json)
    + Attributes (EnumTest)        

# Data Structures

## EnumTest (object)
+ `valueType`: date (enum[string], fixed) -
    + `date` - 'Represents a date/time'
    + `double` - Represents a floating point value
    + `integer` - Represents a whole number
    + `money` - Represents a floating point number greater than 0 and two decimal places
    + `string` - Represents a series of characters
    + `boolean` - Represents a true/false value
    + `databound` - Represents an object

Issue 1

Wrong warning "duplicit value in enumeration". Entries inherit fixed and are therefore all string literal types, differentiated on type level via their content.

Issue 2

Drafter drops the description of the first element, Represents a date/time.