open-api icon indicating copy to clipboard operation
open-api copied to clipboard

(feature) path parameters in yaml

Open nahelbahel opened this issue 6 years ago • 1 comments

Right now, it is not possible to pass a YAML description of path parameters for routes. Like

module.exports = {
  // parameters for all operations in this path
  parameters: `
    - in: path
      name: id
      required: true
      type: integer
  `
}

This would be quite handy, to be consistent when also writing the apiDoc in YAML

nahelbahel avatar Jan 22 '19 08:01 nahelbahel

@nahelbahel please submit a pr to add support for this.

jsdevel avatar Feb 01 '19 16:02 jsdevel