apiaryio/snowcrash

right closing bracket in parameter value fails to parse

Closed this issue · 3 comments

When you have following blueprint containing right bracket ) as a part of example parameter value:

#Car API

## Group cars

### Car [/car/{filter}]
+ Parameters
    + filter (required, string, `id~(valueOne|valueTwo)`) ... Includes all items which match the filter.

#### Retrieve car [GET]

+ Response 200

It fails to parse parameter filter:

_version: 2.0
metadata:
name: "Car API"
description:
resourceGroups:
- name: "cars"
  description:
  resources:
  - name: "Car"
    description:
    uriTemplate: "/car/{filter}"
    model:
    parameters:
    actions:
    - name: "Retrieve car"
      description:
      method: "GET"
      parameters:
      examples:
      - name:
        description:
        requests:
        responses:
        - name: "200"
          description:
          headers:
          body:
          schema:

OK.
warning: (5)  ignoring unrecognized list, expected parameter discussion, e.g. '<parameter name> ... lorem ipsum' :66:100
warning: (3)  no parameters specified, expected a nested list of parameters, one parameter per list item :51:11;66:100

Probably duplicate of #109

zdne commented

Yes duplicate. Please track #109