stefanpearson / bluth

Validates payloads against a specified JSON Schema within your API Blueprint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to find endpoint where action has URI template

matt-oakes opened this issue · comments

An error is returned when trying to validate with an endpoint that matches a URI template on an action.

Example API Blueprint:

## ribot [/ribots]

### Retrieve authenticated ribot [GET /ribots/me?embed=checkins]

    SNIP

### Retrieve ribot collection [GET /ribots]

    SNIP

### Retrieve single ribot [GET /ribots/{ribotId}?embed=checkins]

    SNIP

If you try and match on a URI like /ribots/me it will error. It needs to search the ast for actions inside each resourceGroup which have matching attributes.uriTemplate properties.