apiaryio / api-blueprint

API Blueprint
https://apiblueprint.org
MIT License
8.63k stars 2.14k forks source link

Mistakenly detected duplication in enumerator #455

Closed aweelex closed 4 years ago

aweelex commented 4 years ago

I have such code:

    - type (enum, required)
        + Members
            + quote
            + quote-credits
            + quote-message
            + quote-autopilot-phone
            + quote-phone-by-pro
            + quote-phone-turbo
            + quote-phone-sent-message
            + availability_request
            + hired_status
            + refund
            + gift
            + gift-starclub
            + gift-new-pro
            + gift-bo
            + gesture-commercial
            + survey-pme
            + invite
            + expiration
            + purchase
            + purchase_refunded

Parser shows such warning: diplicit valuer in enumeration

kylef commented 4 years ago

- is a separator between an enumeration and the description block, where + quote - credits would be a enumeration quote with a description of credits. Therefore you have duplicate enumeration called quote. To use - it will need to be escaped by wrapping the enumeration in backticks, for example:

+ (enum)
    + Members
        + quote
        + `quote-credits`
        + `quote-message`