You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
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.
Perhaps because of incorrect interpretation of enum[string], fixed,
perhaps independent parser issue (notice trailing dash on line + valueType: date (enum[string], fixed) -.