Skip to content

Commit edce567

Browse files
committed
docs(gdscript): explain the new ApiResponse
Also moving core templates to their own subdir, for clarity. /spend 10m
1 parent 31868ca commit edce567

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ public void processOpts() {
250250
super.processOpts();
251251

252252
processAdditionalProperties();
253-
supportingFiles.add(new SupportingFile("ApiBee.handlebars", "core", toCoreFilename("ApiBee") + ".gd"));
254-
supportingFiles.add(new SupportingFile("ApiError.handlebars", "core", toCoreFilename("ApiError") + ".gd"));
255-
supportingFiles.add(new SupportingFile("ApiConfig.handlebars", "core", toCoreFilename("ApiConfig") + ".gd"));
253+
supportingFiles.add(new SupportingFile("core/ApiBee.handlebars", "core", toCoreFilename("ApiBee") + ".gd"));
254+
supportingFiles.add(new SupportingFile("core/ApiError.handlebars", "core", toCoreFilename("ApiError") + ".gd"));
255+
supportingFiles.add(new SupportingFile("core/ApiConfig.handlebars", "core", toCoreFilename("ApiConfig") + ".gd"));
256256
supportingFiles.add(new SupportingFile("core/ApiResponse.handlebars", "core", toCoreFilename("ApiResponse") + ".gd"));
257257
supportingFiles.add(new SupportingFile("README.handlebars", "", "README.md"));
258258

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
In here are the `handlebars` templates used to generate the GDScript client.
1+
In here are the `handlebars` templates used to generate the `GDScript` client.
22

33
All files without the `.handlebars` extension (including this very `README.md` file) are ignored.
44

@@ -28,3 +28,8 @@ Godot does not have an `Exception` (`try / catch`) mechanism, by design.
2828
2929
Therefore, whenever there's trouble in paradise, we pass around an `ApiError` object. (a `RefCounted`, don't worry about garbage collection)
3030

31+
32+
## AoiResponse
33+
34+
A wrapper for an Api response, used in callbacks.
35+
Holds the HTTP components of a Response, as well as the deserialized data (if any).

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

File renamed without changes.

modules/openapi-generator/src/main/resources/gdscript/ApiConfig.handlebars renamed to modules/openapi-generator/src/main/resources/gdscript/core/ApiConfig.handlebars

File renamed without changes.

modules/openapi-generator/src/main/resources/gdscript/ApiError.handlebars renamed to modules/openapi-generator/src/main/resources/gdscript/core/ApiError.handlebars

File renamed without changes.

0 commit comments

Comments
 (0)