drafter
drafter copied to clipboard
Report not allowed characters in identifiers
@zdne opened apiaryio/snowcrash#41
Currently only some characters are allowed in API Blueprint identifiers.
If illegal character is used the whole section is silently ignored.
Following blueprint should at least produce a warning about illegal identifier (character '
)
# Group Parcel
## Parcel's sticker [/parcels/{parcel_id}/stickers.json]
@zdne commented
With apiaryio/snowcrash#70 resolved this only mean that unexpected characters in identifiers are [
, ]
, (
and )
.
E.g:
Group Parc ] el
@zdne commented
Currently a group like this is silently ignored (and treated as a description):
## Group ]A
Hello
To fix this issue the parser should warn that while keyword was find the identifier is not valid. Related issues are apiaryio/snowcrash#31 and apiaryio/snowcrash#65 and should be probably solved in one go.