Skip to content

Commit 516e1ab

Browse files
committed
refacto(gdscript): use "base" instead of "bee"
/spend 1h
1 parent b3a1bed commit 516e1ab

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GdscriptClientCodegen.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ public class GdscriptClientCodegen extends DefaultCodegen implements CodegenConf
3232
@SuppressWarnings("FieldCanBeLocal")
3333
private final Logger LOGGER = LoggerFactory.getLogger(GdscriptClientCodegen.class);
3434

35-
// Perhaps an IDE issue but it can't find the module
36-
//protected String coreNamePrefix = org.openapitools.codegen.options.GdscriptClientCodegenOptionsProvider.CORE_NAME_PREFIX_VALUE;
37-
protected String coreNamePrefix = "";
38-
protected String coreNameSuffix = "";
35+
protected String coreNamePrefix = CORE_NAME_PREFIX_VALUE;
36+
protected String coreNameSuffix = CORE_NAME_SUFFIX_VALUE;
3937

4038
protected String anticollisionPrefix = ANTICOLLISION_PREFIX_VALUE;
4139
protected String anticollisionSuffix = ANTICOLLISION_SUFFIX_VALUE;

modules/openapi-generator/src/main/resources/gdscript/README.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Class | Method | HTTP request | Description
114114
- **Flow**: {{{flow}}}
115115
- **Authorization URL**: {{{authorizationUrl}}}
116116
- **Scopes**: {{#unless scopes}}N/A{{/unless}}
117-
{{#each scopes}} - **{{{scope}}}**: {{{description}}}
117+
{{#each scopes}} - **{{{scope}}}**: {{#if description}}{{{description}}}{{/if}}
118118
{{/each}}
119119
{{/if}}
120120

modules/openapi-generator/src/main/resources/gdscript/core/ApiBee.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extends {{>partials/api_bee_parent_class}}
1+
extends {{>partials/api_base_parent_class}}
22
class_name {{>partials/api_base_class_name}}
33

44
{{>partials/disclaimer_autogenerated}}

modules/openapi-generator/src/main/resources/gdscript/partials/api_bee_class_name.handlebars renamed to modules/openapi-generator/src/main/resources/gdscript/partials/api_base_class_name.handlebars

File renamed without changes.

modules/openapi-generator/src/main/resources/gdscript/partials/api_bee_parent_class.handlebars renamed to modules/openapi-generator/src/main/resources/gdscript/partials/api_base_parent_class.handlebars

File renamed without changes.

samples/client/petstore/gdscript/addons/oas.petstore.client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ Class | Method | HTTP request | Description
131131
- **Flow**: implicit
132132
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
133133
- **Scopes**:
134-
- **write:pets**: modify pets in your account
135-
- **read:pets**: read your pets
134+
- **write:pets**: modify pets in your account
135+
- **read:pets**: read your pets
136136

137137
Authentication schemes defined for the API:
138138
## api_key

0 commit comments

Comments
 (0)