Skip to content

Commit

Permalink
revert non-relevant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Jun 27, 2023
1 parent 8c89cb1 commit cfe395a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions scripts/fix-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ function patchSpec3(spec3) {

for (const schemaKey in spec3.components.schemas) {
const schema = spec3.components.schemas[schemaKey];
if (schema.additionalProperties === true) {
schema.additionalProperties = {};
}
if (schema.type === 'object' && !schema.properties) {
schema.additionalProperties = {};
emptySchemas.push(schemaKey);
Expand Down
6 changes: 3 additions & 3 deletions templates/openapi-generator/api/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class {{classname}}RequestFactory extends BaseAPIRequestFactory {
* {{&summary}}
{{/summary}}
{{#allParams}}
* @param {{paramName}} {{&description}}
* @param {{paramName}} {{description}}
{{/allParams}}
*/
public async {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}_options?: Configuration): Promise<RequestContext> {
Expand Down Expand Up @@ -214,15 +214,15 @@ export class {{classname}}ResponseProcessor {
return body;
{{/is2xx}}
{{^is2xx}}
throw new ApiException<{{{dataType}}}>({{code}}, '{{&message}}', body, response.headers);
throw new ApiException<{{{dataType}}}>({{code}}, '{{message}}', body, response.headers);
{{/is2xx}}
{{/dataType}}
{{^dataType}}
{{#is2xx}}
return;
{{/is2xx}}
{{^is2xx}}
throw new ApiException<undefined>(response.httpStatusCode, '{{&message}}', undefined, response.headers);
throw new ApiException<undefined>(response.httpStatusCode, '{{message}}', undefined, response.headers);
{{/is2xx}}
{{/dataType}}
}
Expand Down

0 comments on commit cfe395a

Please sign in to comment.