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

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

@tjanc

Description

@tjanc
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) -.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions