mirror of
				https://github.com/OpenAPITools/openapi-generator.git
				synced 2025-11-04 10:43:44 +00:00 
			
		
		
		
	Eliminates handlebars helper warnings (#12078)
This commit is contained in:
		
							parent
							
								
									d5d1e7180c
								
							
						
					
					
						commit
						d45f72da32
					
				@ -88,7 +88,7 @@ Class | Method | HTTP request | Description
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Author
 | 
					## Author
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{#with apiInfo}}{{#each apis}}{{#unless hasMore}}{{infoEmail}}
 | 
					{{#with apiInfo}}{{#each apis}}{{#unless hasMore}}{{#if infoEmail}}{{infoEmail}}{{/if}}
 | 
				
			||||||
{{/unless}}{{/each}}{{/with}}
 | 
					{{/unless}}{{/each}}{{/with}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Notes for Large OpenAPI documents
 | 
					## Notes for Large OpenAPI documents
 | 
				
			||||||
 | 
				
			|||||||
@ -13,7 +13,7 @@ Method | HTTP request | Description
 | 
				
			|||||||
# **{{{operationId}}}**
 | 
					# **{{{operationId}}}**
 | 
				
			||||||
> {{#if returnType}}{{{returnType}}} {{/if}}{{{operationId}}}({{#each requiredParams}}{{#unless defaultValue}}{{paramName}}{{#if hasMore}}, {{/if}}{{/unless}}{{/each}})
 | 
					> {{#if returnType}}{{{returnType}}} {{/if}}{{{operationId}}}({{#each requiredParams}}{{#unless defaultValue}}{{paramName}}{{#if hasMore}}, {{/if}}{{/unless}}{{/each}})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{{summary}}}{{#if notes}}
 | 
					{{#if summary}}{{{summary}}}{{/if}}{{#if notes}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{{notes}}}{{/if}}
 | 
					{{{notes}}}{{/if}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -159,9 +159,9 @@ Code | Class | Description
 | 
				
			|||||||
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
 | 
					n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
 | 
				
			||||||
{{#each responses}}
 | 
					{{#each responses}}
 | 
				
			||||||
{{#if isDefault}}
 | 
					{{#if isDefault}}
 | 
				
			||||||
default | ApiResponseForDefault | {{message}} {{description}}
 | 
					default | ApiResponseForDefault | {{message}}
 | 
				
			||||||
{{else}}
 | 
					{{else}}
 | 
				
			||||||
{{code}} | ApiResponseFor{{code}} | {{message}} {{description}}
 | 
					{{code}} | ApiResponseFor{{code}} | {{message}}
 | 
				
			||||||
{{/if}}
 | 
					{{/if}}
 | 
				
			||||||
{{/each}}
 | 
					{{/each}}
 | 
				
			||||||
{{#each responses}}
 | 
					{{#each responses}}
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@
 | 
				
			|||||||
{{#if complexType}}
 | 
					{{#if complexType}}
 | 
				
			||||||
Type | Description  | Notes
 | 
					Type | Description  | Notes
 | 
				
			||||||
------------- | ------------- | -------------
 | 
					------------- | ------------- | -------------
 | 
				
			||||||
[**{{dataType}}**]({{complexType}}.md) | {{description}} | {{#if isReadOnly}}[readonly] {{/if}}
 | 
					[**{{dataType}}**]({{complexType}}.md) | {{#if description}}{{description}}{{/if}} | {{#if isReadOnly}}[readonly] {{/if}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{else}}
 | 
					{{else}}
 | 
				
			||||||
{{> schema_doc }}
 | 
					{{> schema_doc }}
 | 
				
			||||||
 | 
				
			|||||||
@ -559,13 +559,13 @@ conf = {{{packageName}}}.Configuration(
 | 
				
			|||||||
            {{#each servers}}
 | 
					            {{#each servers}}
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                'url': "{{{url}}}",
 | 
					                'url': "{{{url}}}",
 | 
				
			||||||
                'description': "{{{description}}}{{#unless description}}No description provided{{/unless}}",
 | 
					                'description': "{{#unless description}}No description provided{{else}}{{{description}}}{{/unless}}",
 | 
				
			||||||
                {{#each variables}}
 | 
					                {{#each variables}}
 | 
				
			||||||
                {{#if @first}}
 | 
					                {{#if @first}}
 | 
				
			||||||
                'variables': {
 | 
					                'variables': {
 | 
				
			||||||
                {{/if}}
 | 
					                {{/if}}
 | 
				
			||||||
                    '{{{name}}}': {
 | 
					                    '{{{name}}}': {
 | 
				
			||||||
                        'description': "{{{description}}}{{#unless description}}No description provided{{/unless}}",
 | 
					                        'description': "{{#unless description}}No description provided{{else}}{{{description}}}{{/unless}}",
 | 
				
			||||||
                        'default_value': "{{{defaultValue}}}",
 | 
					                        'default_value': "{{{defaultValue}}}",
 | 
				
			||||||
                        {{#each enumValues}}
 | 
					                        {{#each enumValues}}
 | 
				
			||||||
                        {{#if @first}}
 | 
					                        {{#if @first}}
 | 
				
			||||||
 | 
				
			|||||||
@ -208,13 +208,13 @@ _servers = (
 | 
				
			|||||||
{{/if}}
 | 
					{{/if}}
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        'url': "{{{url}}}",
 | 
					        'url': "{{{url}}}",
 | 
				
			||||||
        'description': "{{{description}}}{{#unless description}}No description provided{{/unless}}",
 | 
					        'description': "{{#unless description}}No description provided{{else}}{{{description}}}{{/unless}}",
 | 
				
			||||||
        {{#each variables}}
 | 
					        {{#each variables}}
 | 
				
			||||||
        {{#if @first}}
 | 
					        {{#if @first}}
 | 
				
			||||||
        'variables': {
 | 
					        'variables': {
 | 
				
			||||||
        {{/if}}
 | 
					        {{/if}}
 | 
				
			||||||
            '{{{name}}}': {
 | 
					            '{{{name}}}': {
 | 
				
			||||||
                'description': "{{{description}}}{{#unless description}}No description provided{{/unless}}",
 | 
					                'description': "{{#unless description}}No description provided{{else}}{{{description}}}{{/unless}}",
 | 
				
			||||||
                'default_value': "{{{defaultValue}}}",
 | 
					                'default_value': "{{{defaultValue}}}",
 | 
				
			||||||
                {{#each enumValues}}
 | 
					                {{#each enumValues}}
 | 
				
			||||||
                {{#if @first}}
 | 
					                {{#if @first}}
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@
 | 
				
			|||||||
Name | Type | Description | Notes
 | 
					Name | Type | Description | Notes
 | 
				
			||||||
------------ | ------------- | ------------- | -------------
 | 
					------------ | ------------- | ------------- | -------------
 | 
				
			||||||
    {{#each vars}}
 | 
					    {{#each vars}}
 | 
				
			||||||
**{{baseName}}** | {{#unless complexType}}**{{dataType}}**{{/unless}}{{#if complexType}}[**{{dataType}}**]({{complexType}}.md){{/if}} | {{description}} | {{#unless required}}[optional] {{/unless}}{{#if isReadOnly}}[readonly] {{/if}}{{#if defaultValue}} if omitted the server will use the default value of {{{defaultValue}}}{{/if}}
 | 
					**{{baseName}}** | {{#unless complexType}}**{{dataType}}**{{/unless}}{{#if complexType}}[**{{dataType}}**]({{complexType}}.md){{/if}} | {{#if description}}{{description}}{{/if}} | {{#unless required}}[optional] {{/unless}}{{#if isReadOnly}}[readonly] {{/if}}{{#if defaultValue}} if omitted the server will use the default value of {{{defaultValue}}}{{/if}}
 | 
				
			||||||
    {{/each}}
 | 
					    {{/each}}
 | 
				
			||||||
    {{#with additionalProperties}}
 | 
					    {{#with additionalProperties}}
 | 
				
			||||||
**any string name** | **{{dataType}}** | any string name can be used but the value must be the correct type | [optional]
 | 
					**any string name** | **{{dataType}}** | any string name can be used but the value must be the correct type | [optional]
 | 
				
			||||||
@ -23,9 +23,9 @@ typing.Union[dict, frozendict, str, date, datetime, int, float, bool, Decimal, N
 | 
				
			|||||||
typing.Union[{{#if isMap}}dict, frozendict, {{/if}}{{#if isString}}str, {{/if}}{{#if isDate}}date, {{/if}}{{#if isDataTime}}datetime, {{/if}}{{#or isLong isShort isUnboundedInteger}}int, {{/or}}{{#or isFloat isDouble}}float, {{/or}}{{#if isNumber}}Decimal, {{/if}}{{#if isBoolean}}bool, {{/if}}{{#if isNull}}None, {{/if}}{{#if isArray}}list, tuple, {{/if}}{{#if isBinary}}bytes{{/if}}] | | {{#with allowableValues}}{{#if defaultValue}}, {{/if}} must be one of [{{#each enumVars}}{{{value}}}, {{/each}}]{{/with}}
 | 
					typing.Union[{{#if isMap}}dict, frozendict, {{/if}}{{#if isString}}str, {{/if}}{{#if isDate}}date, {{/if}}{{#if isDataTime}}datetime, {{/if}}{{#or isLong isShort isUnboundedInteger}}int, {{/or}}{{#or isFloat isDouble}}float, {{/or}}{{#if isNumber}}Decimal, {{/if}}{{#if isBoolean}}bool, {{/if}}{{#if isNull}}None, {{/if}}{{#if isArray}}list, tuple, {{/if}}{{#if isBinary}}bytes{{/if}}] | | {{#with allowableValues}}{{#if defaultValue}}, {{/if}} must be one of [{{#each enumVars}}{{{value}}}, {{/each}}]{{/with}}
 | 
				
			||||||
        {{else}}
 | 
					        {{else}}
 | 
				
			||||||
            {{#if isArray}}
 | 
					            {{#if isArray}}
 | 
				
			||||||
{{#unless arrayModelType}}**{{dataType}}**{{/unless}}{{#if arrayModelType}}[**{{dataType}}**]({{arrayModelType}}.md){{/if}} | {{description}} | {{#if defaultValue}}{{#if hasRequired}} if omitted the server will use the default value of {{/if}}{{#unless hasRequired}}defaults to {{/unless}}{{{defaultValue}}}{{/if}}
 | 
					{{#unless arrayModelType}}**{{dataType}}**{{/unless}}{{#if arrayModelType}}[**{{dataType}}**]({{arrayModelType}}.md){{/if}} | {{#if description}}{{description}}{{/if}} | {{#if defaultValue}}{{#if hasRequired}} if omitted the server will use the default value of {{/if}}{{#unless hasRequired}}defaults to {{/unless}}{{{defaultValue}}}{{/if}}
 | 
				
			||||||
            {{else}}
 | 
					            {{else}}
 | 
				
			||||||
{{#unless arrayModelType}}**{{dataType}}**{{/unless}} | {{description}} | {{#if defaultValue}}{{#if hasRequired}} if omitted the server will use the default value of {{/if}}{{#unless hasRequired}}defaults to {{/unless}}{{{defaultValue}}}{{/if}}{{#with allowableValues}}{{#if defaultValue}}, {{/if}} must be one of [{{#each enumVars}}{{{value}}}, {{/each}}]{{/with}}
 | 
					{{#unless arrayModelType}}**{{dataType}}**{{/unless}} | {{#if description}}{{description}}{{/if}} | {{#if defaultValue}}{{#if hasRequired}} if omitted the server will use the default value of {{/if}}{{#unless hasRequired}}defaults to {{/unless}}{{{defaultValue}}}{{/if}}{{#with allowableValues}}{{#if defaultValue}}, {{/if}} must be one of [{{#each enumVars}}{{{value}}}, {{/each}}]{{/with}}
 | 
				
			||||||
            {{/if}}
 | 
					            {{/if}}
 | 
				
			||||||
        {{/if}}
 | 
					        {{/if}}
 | 
				
			||||||
    {{/if}}
 | 
					    {{/if}}
 | 
				
			||||||
 | 
				
			|||||||
@ -37,7 +37,7 @@ setup(
 | 
				
			|||||||
    description="{{appName}}",
 | 
					    description="{{appName}}",
 | 
				
			||||||
    author="{{#if infoName}}{{infoName}}{{/if}}{{#unless infoName}}OpenAPI Generator community{{/unless}}",
 | 
					    author="{{#if infoName}}{{infoName}}{{/if}}{{#unless infoName}}OpenAPI Generator community{{/unless}}",
 | 
				
			||||||
    author_email="{{#if infoEmail}}{{infoEmail}}{{/if}}{{#unless infoEmail}}team@openapitools.org{{/unless}}",
 | 
					    author_email="{{#if infoEmail}}{{infoEmail}}{{/if}}{{#unless infoEmail}}team@openapitools.org{{/unless}}",
 | 
				
			||||||
    url="{{packageUrl}}",
 | 
					    url="{{#if packageUrl}}{{packageUrl}}{{/if}}",
 | 
				
			||||||
    keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
 | 
					    keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
 | 
				
			||||||
    python_requires="{{{generatorLanguageVersion}}}",
 | 
					    python_requires="{{{generatorLanguageVersion}}}",
 | 
				
			||||||
    install_requires=REQUIRES,
 | 
					    install_requires=REQUIRES,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user