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

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

Open
tjanc opened this issue Sep 18, 2019 · 0 comments
Open
Labels

Comments

@tjanc
Copy link
Contributor

tjanc commented Sep 18, 2019

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) -.
@kylef kylef added the bug label Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants