Skip to content

Commit df20ced

Browse files
committed
Merge branch 'feat-gdscript' of https://github.com/Goutte/openapi-generator into Goutte-feat-gdscript3
2 parents 86a18bf + 89f6ab5 commit df20ced

File tree

180 files changed

+25058
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+25058
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ Here is a list of template creators:
998998
* Groovy: @victorgit
999999
* Go: @wing328 [:heart:](https://www.patreon.com/wing328)
10001000
* Go (rewritten in 2.3.0): @antihax
1001+
* Godot (GDScript): @Goutte [:heart:](https://liberapay.com/Goutte)
10011002
* Haskell (http-client): @jonschoning
10021003
* Java (Feign): @davidkiss
10031004
* Java (Retrofit): @0legg

bin/configs/gdscript-petstore.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Run this configuration to update the sample project used in integration testing:
2+
# bin/generate-samples.sh bin/configs/gdscript-petstore.yaml
3+
4+
generatorName: gdscript
5+
6+
# We output straight into an addon directory. (any addon name will work)
7+
# The addon need not be enabled in Project Settings to be used, for now,
8+
# but that may change, so as best practice you should enable it anyway.
9+
outputDir: samples/client/petstore/gdscript/addons/oas.petstore.client
10+
11+
# We have two test servers available.
12+
# See https://github.com/OpenAPITools/openapi-generator/wiki/Integration-Tests
13+
14+
# A: Newer, recommended echo server OAS, that we're failing for now:
15+
# Exception: Could not process model 'Bird'. Please make sure that your schema is correct!
16+
# Caused by: java.lang.RuntimeException: reserved word color not allowed
17+
# Perhaps try this again later, using another config file like gdscript-echo.yaml
18+
# > Later: this has been solved, we should now be able to use echo as well
19+
#inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
20+
21+
# B: Older (legacy, deprecated) petstore server OAS
22+
inputSpec: modules/openapi-generator/src/test/resources/3_0/gdscript/petstore.yaml
23+
24+
templateDir: modules/openapi-generator/src/main/resources/gdscript
25+
26+
additionalProperties:
27+
# Timestamping the generated sample project would only add noise to git
28+
hideGenerationTimestamp: "true"
29+
# Since we're polluting the global namespace with class_name (it's really convenient),
30+
# we can use these affixes to namespace the generated classes.
31+
# Best make sure the words you use here are not part of the domain of Godot.
32+
apiNamePrefix: Demo
33+
modelNamePrefix: Demo
34+
modelNameSuffix: Model
35+
coreNamePrefix: Demo

0 commit comments

Comments
 (0)