Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change JSDoc from .resource to .requestBody #1864

Merged
merged 3 commits into from Nov 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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