File tree Expand file tree Collapse file tree 3 files changed +0
-21
lines changed
react-native/src/services Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,6 @@ export class {{ service.name | caseUcfirst }} {
109
109
}
110
110
{%~ endif %}
111
111
{%~ endfor %}
112
- {%~ for parameter in method .parameters .all %}
113
- {%~ if parameter .type == ' object' %}
114
- {%~ for attribute in parameter | getReadOnlyProperties(method .responseModel , spec ) %}
115
- delete {{ parameter .name | caseCamel | escapeKeyword }}?.{{ attribute }};
116
- {%~ endfor %}
117
- {%~ endif %}
118
- {%~ endfor %}
119
112
120
113
const apiPath = '{{ method .path }}'{% for parameter in method .parameters .path %}.replace('{{ ' {' }}{{ parameter .name | caseCamel | escapeKeyword }}{{ ' }' }}', {{ parameter .name | caseCamel | escapeKeyword }}){% endfor %};
121
114
const payload: Payload = {};
Original file line number Diff line number Diff line change @@ -113,13 +113,6 @@ export class {{ service.name | caseUcfirst }} extends Service {
113
113
throw new {{spec .title | caseUcfirst }}Exception('Missing required parameter: "{{ parameter .name | caseCamel | escapeKeyword }}"');
114
114
}
115
115
116
- {% endif %}
117
- {% endfor %}
118
- {% for parameter in method .parameters .all %}
119
- {% if parameter .type == ' object' %}
120
- {% for attribute in parameter | getReadOnlyProperties(method .responseModel , spec ) %}
121
- delete {{ parameter .name | caseCamel | escapeKeyword }}?.{{ attribute }};
122
- {% endfor %}
123
116
{% endif %}
124
117
{% endfor %}
125
118
const apiPath = '{{ method .path }}'{% for parameter in method .parameters .path %}.replace('{{ ' {' }}{{ parameter .name | caseCamel | escapeKeyword }}{{ ' }' }}', {{ parameter .name | caseCamel | escapeKeyword }}){% endfor %};
Original file line number Diff line number Diff line change @@ -110,13 +110,6 @@ export class {{ service.name | caseUcfirst }} {
110
110
}
111
111
{%~ endif %}
112
112
{%~ endfor %}
113
- {%~ for parameter in method .parameters .all %}
114
- {%~ if parameter .type == ' object' %}
115
- {%~ for attribute in parameter | getReadOnlyProperties(method .responseModel , spec ) %}
116
- delete {{ parameter .name | caseCamel | escapeKeyword }}?.{{ attribute }};
117
- {%~ endfor %}
118
- {%~ endif %}
119
- {%~ endfor %}
120
113
121
114
const apiPath = '{{ method .path }}'{% for parameter in method .parameters .path %}.replace('{{ ' {' }}{{ parameter .name | caseCamel | escapeKeyword }}{{ ' }' }}', {{ parameter .name | caseCamel | escapeKeyword }}){% endfor %};
122
115
const payload: Payload = {};
You can’t perform that action at this time.
0 commit comments