Skip to content

Error when providing old apidoc apiExample syntax #4

@quorak

Description

@quorak

hey there,
thx for the plugin.

when i mix old and new syntax in different blocks, I get error:
error: Cannot read property 'path' of null

Code:

/**
 * @api {get} /user/:id
 * @apiExample {curl} Example usage:
 *     curl -i http://localhost/user/4711
 */
[...]
/**
 * @api {get} /api GetAPI
 * @apiExample {json=./ex/api.req.json} apiParamExample Request
 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions