Skip to content

Commit

Permalink
fix(docs): change JSDoc from .resource to .requestBody (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarunint authored and bcoe committed Nov 6, 2019
1 parent bd9bfdc commit 8803e77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generator/templates/method-partial.njk
Expand Up @@ -23,16 +23,16 @@
{% endif %}
{% if m.supportsMediaUpload %}
{% if m.request %}
* @param {object} params.resource Media resource metadata
* @param {object} params.requestBody Media resource metadata
{% endif %}
* @param {object} params.media Media object
* @param {string} params.media.mimeType Media mime-type
* @param {string|object} params.media.body Media body contents
{% elif m.request %}
{% if m.request.$ref %}
* @param {{ lb }}{{ api.name }}({{ api.version }}).{{ m.request.$ref }}{{ rb }} params.resource Request body data
* @param {{ lb }}{{ api.name }}({{ api.version }}).{{ m.request.$ref }}{{ rb }} params.requestBody Request body data
{% else %}
* @param {object} params.resource Request body data
* @param {object} params.requestBody Request body data
{% endif %}
{% endif %}
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down

0 comments on commit 8803e77

Please sign in to comment.