Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for feature/new-uplink-generator branch #3

Draft
wants to merge 2,570 commits into
base: feature/new-uplink-generator
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2570 commits
Select commit Hold shift + click to select a range
07227d4
add support for union of strictfloat and strictint (#15124)
wing328 Apr 6, 2023
ba2c42e
add override to java native pojo (#15125)
wing328 Apr 6, 2023
bd7bc9a
[python-nextgen] Add bytearray, none_type as primitive type (#15130)
wing328 Apr 7, 2023
bda2e4a
fix NPE in simplifyOneOfAnyOf (#15142)
wing328 Apr 7, 2023
e8e62cc
simplify enum of string & string to enum of string (#15149)
wing328 Apr 7, 2023
b2be167
fix link, add links to posts (#15153)
wing328 Apr 7, 2023
f40433d
qt ctest (#14968)
MartinDelille Apr 7, 2023
a5bc7f1
[typescript] Make TypeScriptClientCodegen extend AbstractTypeScriptCl…
lwj5 Apr 9, 2023
b57d35b
bumped package versions
devhl-labs Apr 9, 2023
4a83c91
fix(python-nextgen): Use spec format for authors in pyproject (#15170)
ditsuke Apr 10, 2023
a4f5a74
fix(python-nextgen): dependency incompatiblity (#15167)
ditsuke Apr 10, 2023
5e3bb7e
[Ruby] fix RSpec documentation URL (#15164)
tksmasaki Apr 10, 2023
1e2f16e
[csharp-netcore] Explicitly implement IValidatableObject (#15160)
devhl-labs Apr 10, 2023
5d490d7
Add Flipkart as a company using OpenAPI Generator (#15175)
amrith92 Apr 10, 2023
e9e0f50
Update customization.md (#15172)
martin-mfg Apr 10, 2023
a17bb59
Added useSwashBuckle condition (#15157)
leonluc-dev Apr 10, 2023
2b796d5
[Go] Format error message only when Kind is Struct (#15154)
gcatanese Apr 11, 2023
8ce990d
[go-server] Add ability to handle parameters of `number` type (#15079)
lwj5 Apr 11, 2023
81cafdc
[go] Fix: reservedWordsMappings not checked for reserved word (#15083)
lwj5 Apr 11, 2023
792c49a
[go-server] Change Routes type from `[]Route` to `map[string]Route` (…
lwj5 Apr 11, 2023
f8cb5fd
Add tests for aspnetcore 6.0 useSwashBuckle option (#15176)
wing328 Apr 11, 2023
448cbfd
[python-nextgen] Limit allowed pydantic version range (#15189)
robertschweizer Apr 12, 2023
ff48f80
udpate vertx to newer version 3.5.2 (#15197)
wing328 Apr 12, 2023
0b41ee1
Issue #15095: Improve gradle task documentation (#15193)
GoGoris Apr 12, 2023
0fff964
Add blog Mustache templates with OpenAPI generator (#15198)
gcatanese Apr 12, 2023
e852cec
add lwj5 to go tech comm (#15199)
wing328 Apr 12, 2023
0444118
[go-server] Update dependencies and use generics (#15087)
lwj5 Apr 12, 2023
c0322b1
Improve Go Github workflow (#15200)
wing328 Apr 12, 2023
935146d
Merge remote-tracking branch 'origin/master' into 7.0.x
wing328 Apr 12, 2023
8a426b2
allow to specify the useOneOfInterfaces option for java (#15042)
robbertvanwaveren Apr 12, 2023
1163b9c
[go-server] Fix: name declared and not used (#15201)
lwj5 Apr 13, 2023
60e6d2d
fix Jsonb issue for Helidon SE Client generator (#15146)
aserkes Apr 13, 2023
241d649
Fix list of type not including correct import (#15171)
Qluxzz Apr 13, 2023
53d9d30
For microprofile java - use {{rootJavaEEPackage}} instead of {{javaxP…
barnabycourt Apr 13, 2023
b247ad7
[java] Add public static version field (#15108)
snago Apr 13, 2023
90b78fe
Jersey2/3 - Probe content type for multipart upload parts (#14965)
jdimeo Apr 14, 2023
6a67551
Issue 3175 - using @objcMembers to expose all props and funcs to ObjC…
tsanidas Apr 14, 2023
5832731
[java] Update undertow to newer version (#15222)
wing328 Apr 15, 2023
c5a8faf
remove deprecated warning (#15223)
wing328 Apr 15, 2023
9ad695d
better npe in processUseAllOfRefAsParent (openapi normalizer) (#15224)
wing328 Apr 15, 2023
7a41231
minor bug fix to openapi normalizer (#15225)
wing328 Apr 15, 2023
cbf5598
Fix generated code when a list is actually a set. (#15027)
noordawod Apr 16, 2023
03359ae
[pub] Add repository and publish_to as configurable option in pubspec…
IchordeDionysos Apr 16, 2023
738beb4
[java][jersey] Fix UUID path parameters (#15114) (#15229)
snago Apr 16, 2023
70a6106
add null check in string with regular expression (#15233)
wing328 Apr 16, 2023
096aabd
Fix printing empty notes (#15238)
Qluxzz Apr 17, 2023
91815bf
[java] Fix anyof generics (#15210) (#15230)
snago Apr 17, 2023
58425f5
Add workflow for gradle enterprise (#15211)
wing328 Apr 18, 2023
1ac39c7
add Pinterest to the user list (#15247)
wing328 Apr 18, 2023
1881100
use png version of pinterest logo
wing328 Apr 18, 2023
f5b4490
[python-nextgen] Fix dict of dict of object in python-nextgen (#15239)
wing328 Apr 18, 2023
9b2917f
Fix issue 12341 (#15234)
rodrigoma3 Apr 18, 2023
e3fdac0
rename hasBearerMethods to hasHttpBearerMethods (#15259)
yateeshc Apr 19, 2023
0176957
[python-nextgen] better sample code (#15248)
wing328 Apr 19, 2023
fdf53ac
update mvn in workflow to use gradle enterprise (#15256)
wing328 Apr 19, 2023
90d7da0
fix travis badge in readme
wing328 Apr 20, 2023
564a86c
fix: set final query parameter value to enum value (#15133)
vidurb Apr 20, 2023
ede1c9c
update samples
borsch Apr 20, 2023
2c78ff7
Fix issue 15264 - Replace @Controller with @RestController when using…
rodrigoma3 Apr 20, 2023
e6c64d3
Fix multi collection format has duplicated prefix (#15260)
nullbus Apr 21, 2023
2679819
[Ruby] Client: fix base_url when no server_operation_index is defined…
Confusion Apr 21, 2023
33e0c67
Update beanValidationCore.mustache (#13631) (fix #3519)
matheustf Apr 21, 2023
b5745e6
[python-nextgen] Fix enum query parameter (#15278)
wing328 Apr 22, 2023
e51908f
[openapi-normalizer] Fix nullable boolean check in oneOf schema (#15276)
wing328 Apr 22, 2023
98c2794
[Kotlin-Spring] add Kotlin based Spring-cloud openfeign generator (#1…
gr4cza Apr 24, 2023
52417f0
use Field(...) for required properties in python-nextgen (#15290)
wing328 Apr 24, 2023
d6e19f8
fix minus sign in enum naming in python-nextgen (#15291)
wing328 Apr 24, 2023
de27749
[cpp-ue4] Fix byte array writing in JSON to be valid base64 string (#…
nullbus Apr 24, 2023
6f24ad3
[JAVA] OkHttp-GSON deprecated field only deprecates getter method (#1…
gcatanese Apr 26, 2023
b8ccd25
[python-nextgen] Various fixes reported by pylint (#15309)
wing328 Apr 26, 2023
b847140
[C++][Pistache] Generate API generalization interface (#15279)
CTerasa-ep Apr 26, 2023
e0f4296
add missing documentation for maven and gradle options (#15322)
martin-mfg Apr 27, 2023
e211e14
update extension to 1.17, update config (#15326)
wing328 Apr 27, 2023
da96058
[kotlin] cleanup documentation (#15307)
tiffmaelite Apr 27, 2023
1f23b01
[Spring] fix Paginated without params (#15315) (fix #15265)
borsch Apr 27, 2023
f4e0eb9
Update git-commit-id maven plugin to newer version (#15332)
wing328 Apr 28, 2023
f4c041e
fix to_json, to_dict in python nextgen (#15337)
wing328 Apr 28, 2023
2bd1a15
[python-nextgen] fix empty dict in body parameter (#15336)
wing328 Apr 28, 2023
64c3be9
fix URL to 6.6.0 snapshot version
wing328 Apr 28, 2023
e070697
[JAVA] Enumeration comparison in Java using equalsIgnoreCase when Str…
rodrigoma3 Apr 28, 2023
1f4d323
fix enum support in oneof/anyof in python-nextgen (#15340)
wing328 Apr 29, 2023
ab819b9
mark python-nextgen as stable (#15360)
wing328 Apr 29, 2023
5f8c4ec
[swift5] cleanup documentation (#15351)
tiffmaelite Apr 30, 2023
c7c5dd2
remove unused file
wing328 May 1, 2023
961980f
[python-nextgen] add support for StrictBytes (#15365)
wing328 May 1, 2023
42fa07d
[Elm] Add support for petstore spec (#15257)
Qluxzz May 2, 2023
fefbfd6
Drop default value when unnecessary. (#15368)
noordawod May 2, 2023
e356b77
[dart][dart-dio] Fix property deprecation and add parameter deprecati…
kuhnroyal May 2, 2023
f8d5c54
Add urls to ktor and Vert.x in README (#15369)
albina-astr May 2, 2023
6686fb8
Remove CXF imports and dependency (#15364)
zUniQueX May 2, 2023
502a8a8
Fix request parameter encode call (#15313)
mwohlert May 2, 2023
8a9afab
https://github.com/OpenAPITools/openapi-generator/issues/14599 (#15388)
vanwobe May 3, 2023
bec32ae
update samples
wing328 May 3, 2023
021d3a3
[python-nextgen] Add ApiResponse object (#15367)
wing328 May 3, 2023
92bcdea
Revert "Remove CXF imports and dependency (#15364)" (#15392)
wing328 May 3, 2023
61aadb3
[GO] Add go.mod in go-gin-server generator (#15339)
gcatanese May 3, 2023
45a3fe0
Add Xojo client generator (#15194)
Topheee May 3, 2023
4e8d41b
Fix circleci test failures (#15317)
wing328 May 3, 2023
0a4648f
fix(python-nextgen): Date query params typo (#15395)
robertschweizer May 3, 2023
0cbf118
add surefire rerun tests (#15390)
wing328 May 3, 2023
a834700
Support language N4JS (#15089)
mmews-n4 May 3, 2023
aea7cef
Revert "Support language N4JS (#15089)" (#15396)
wing328 May 3, 2023
db478c3
Support language N4JS (2nd) (#15397)
mmews-n4 May 3, 2023
a0b79d8
Minor improvement to the N4JS client generator (#15414)
wing328 May 4, 2023
bc6d308
add copyright, remove unused import (#15394)
wing328 May 4, 2023
854afc9
Update elm workflow to cover more tests (#15415)
wing328 May 4, 2023
6fa089a
Add @deprecated to methods in python-nextgen (#15380)
wing328 May 4, 2023
182240e
[csharp-netcore] Better regular expression (#15378)
wing328 May 4, 2023
76c05b2
Add property generateClientAsBean for config creation of ApiClient.ja…
jorgerod May 5, 2023
7259d81
[csharp-netcore] Better handling of oneOf/anyOf with duplicated data …
wing328 May 5, 2023
737cb36
add option, update doc (#15419)
wing328 May 5, 2023
56495d1
Python Allow clients to define TLS Server name when using (#15283)
tigrato May 5, 2023
cc620d8
fix incorrect mustache tag (#15424)
wing328 May 5, 2023
c6b31a3
removed extra line break (#15438)
devhl-labs May 8, 2023
72cb03b
[python-nextgen] fix typing for bytes with validations (#15437)
tomplus May 8, 2023
b4eb707
[python-nextgen] support constructor with position argument in oneOf/…
wing328 May 8, 2023
3d2ec72
[JAVA] Okhttp-gson: blank line between annotations and method signatu…
gcatanese May 8, 2023
5d602c6
Add Python 3.11 to github-workflow.mustache (#15442)
dcermak May 8, 2023
f82a311
update samples
wing328 May 8, 2023
3d722c1
[dart-dio] fix endpoints returning null (#15433)
ahmednfwela May 8, 2023
3685c0c
[dart] cleanup documentation (#15344)
tiffmaelite May 8, 2023
ff9b384
Fix repository url in pyproject.toml (#15444)
dcermak May 8, 2023
7bc10b0
[csharp-netcore][generichost] Move deserialization to method (#15454)
devhl-labs May 9, 2023
3cf646c
[csharp-netcore] fix back slash in regex (#15441)
wing328 May 9, 2023
fb059c2
[BUG][JAVA][restTemplate] ApiClient is not compatible with spring-web…
jorgerod May 9, 2023
ba8ca1e
[R] fix documentation of API authorization in README files (#15354)
tiffmaelite May 9, 2023
63913f2
[c] fix documentation of API authorization in README files (#15341)
tiffmaelite May 9, 2023
e32da0e
[apex] fix documentation of API authorization in README files (#15348)
tiffmaelite May 9, 2023
2b19d5f
[Ruby] fix documentation of API authorization in README files (#15353)
tiffmaelite May 9, 2023
be651e7
[powershell] cleanup documentation (#15355)
tiffmaelite May 9, 2023
55e9f66
[JavaScript] fix documentation of API authorization in README files (…
tiffmaelite May 9, 2023
adfb963
[objc] fix documentation of API authorization in README files (#15347)
tiffmaelite May 9, 2023
4deaad5
[Go] fix documentation of API authorization in README files (#15345)
tiffmaelite May 9, 2023
9cb14ae
[php] fix documentation of API authorization in README files (#15306)
tiffmaelite May 9, 2023
1443dd9
[perl] fix documentation of API authorization in README files (#15356)
tiffmaelite May 9, 2023
76fd2a2
[Scala] cleanup documentation (#15304)
tiffmaelite May 9, 2023
ef35e6d
[rust] fix documentation of API authorization in README files (#15352)
tiffmaelite May 9, 2023
da9ad4a
[kotlin][client] Small improvements (#15429)
WonderCsabo May 9, 2023
25aba72
[kotlin][client] Use Kotlin code style in parameter enum class names …
WonderCsabo May 9, 2023
c251202
[Python] cleanup documentation (#15301)
tiffmaelite May 9, 2023
4e27041
Add microprofile OpenApi annotations to JavaRxSpec (quarkus library).…
miguelborges99 May 9, 2023
b4d2c14
Update scala versions to 2.13.10 and 2.12.17 (#15459)
jatcwang May 9, 2023
ef5dc1c
[Julia] Cleanup README docs (#15295)
tiffmaelite May 10, 2023
f9937e7
[csharp C#] cleanup documentation (#15305)
tiffmaelite May 10, 2023
8a6c708
[Java] Cleanup documentation (#15300)
tiffmaelite May 10, 2023
0c3460f
Merge remote-tracking branch 'origin/master' into 7.0.x
wing328 May 10, 2023
9ace780
update samples
wing328 May 10, 2023
6e74725
Initial OIDC support (#15417)
jtama May 10, 2023
edc589a
update doc
wing328 May 10, 2023
bb8098a
add --quite to mvn cmd in travis.ci
wing328 May 10, 2023
1d2d56a
Merge remote-tracking branch 'origin/master' into 7.0.x
wing328 May 10, 2023
7f8b853
Prepare 6.6.0 release (#15466)
wing328 May 11, 2023
f8e15f1
Merge remote-tracking branch 'origin/7.0.x'
wing328 May 11, 2023
4384198
update README with v7.0.0
wing328 May 11, 2023
fc71f98
[typescript] Add missing types field to export declaration (#15403)
bodograumann May 11, 2023
977de5b
moved deserialization to template (#15474)
devhl-labs May 11, 2023
e152799
[JAVA] fix "text/plain" with charset specifications (#15399)
martin-mfg May 11, 2023
c84b949
Encode a `Set` in `toJson()` properly (#15435)
noordawod May 11, 2023
3371e88
Decommission python-legacy, python-prior client generators (#15475)
wing328 May 12, 2023
aeecd9c
Correct script in PULL_REQUEST_TEMPLATE.md (#15480)
gcatanese May 12, 2023
78bffff
[Go] Update API naming to follow Golang standard pkg (1 line change) …
lwj5 May 13, 2023
cc2dc65
fixed the order to match the constructor (#15500)
devhl-labs May 13, 2023
780d266
Decommission python client generator (#15486)
wing328 May 14, 2023
fd20632
[csharp] Changed enums to start from 0 (#15503)
devhl-labs May 14, 2023
f0519eb
Fix Go client tests (#15505)
wing328 May 14, 2023
b6b8883
use go-petstore.yaml in debugging test
wing328 May 14, 2023
66caaf9
[kotlin-spring] interfaceOnly=true flag skips spring-boot plugin repa…
zaenk May 15, 2023
54cb33c
[Spring] remove deprecated annotation from no-args constructor (#15512)
borsch May 15, 2023
dd6ccaa
import @Valid in Spring delegates (#15330) (fix #15213)
martin-mfg May 15, 2023
01ed597
rename python-nextgen to python (#15504)
wing328 May 16, 2023
d02679b
rename method to avoid code analysis error (#15508)
wing328 May 16, 2023
c5a1dbe
[openapi-normalizer] enable some rules by default (#15501)
wing328 May 16, 2023
cc1226c
[csharp-netcore] Zero based inner enum sample (#15506)
devhl-labs May 16, 2023
25620e7
removed extra line break (#15507)
devhl-labs May 16, 2023
8b64fa5
Update index.mustache (#15481)
jvmlet May 16, 2023
1c56b07
update c# samples
wing328 May 16, 2023
5ffa233
update asciidoc samples
wing328 May 16, 2023
6d56a19
add new file
wing328 May 16, 2023
fbf42de
Fix JsonNullable issue for Helidon generators (#15423)
aserkes May 16, 2023
edad90e
Bugfixes/12952 fix newtonsoft using (#15515)
JFCote May 16, 2023
1c6decb
minor enhancements to the aspnetcore server generator (#15518)
wing328 May 16, 2023
016507c
[javascript] fix use of isBasicBasic and isBasicBearer conditions (#1…
tiffmaelite May 16, 2023
48d257b
[C++][Pistache] Generate empty JSON object instead of a null value (#…
sjoubert May 16, 2023
3a172c3
[C++][Pistache] Add missing 'override' on virtual methods (#15469)
sjoubert May 16, 2023
87ea870
Update modelbase-header.mustache (#15453)
SuperGNUS May 16, 2023
0d1f562
update c++ samples
wing328 May 16, 2023
1210229
Merge branch 'version-bump' of https://github.com/devhl-labs/openapi-…
wing328 May 16, 2023
63ac3e1
[Spring] fix use of isBasic condition (#15530)
tiffmaelite May 16, 2023
842ca3d
Fix warning when building because of the missing documentation (#15543)
JFCote May 16, 2023
0067687
add HTTP signature to SecurityFeature (#15542)
tiffmaelite May 16, 2023
aa0d637
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
wing328 May 16, 2023
b35ffd3
add missing security schemes to new generator README template (#15536)
tiffmaelite May 16, 2023
9c968e8
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
wing328 May 16, 2023
ab4a05a
Postman Collection Generator (#15294)
gcatanese May 16, 2023
be9f1b6
fix#14119 property generateApis=false not working (#14126)
iWantUss May 16, 2023
6a742fe
update doc
wing328 May 16, 2023
d3f63ca
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
wing328 May 16, 2023
44ad6d5
[go-server] Support min/max/defaults for values (#15185)
rledisez May 16, 2023
04b34e7
update doc
wing328 May 16, 2023
d60b108
[Gradle] add `inputSpecRootDirectory` for generate task (#15548) (fix…
borsch May 17, 2023
c7d185d
[dart][dio] fix features of dart-dio generator (#15537)
tiffmaelite May 18, 2023
b7dc6ce
[Aspnetcore] Fix nullable warnings part 1 (#15555)
JFCote May 18, 2023
d8ed253
update C# samples
wing328 May 18, 2023
4a54379
added OrDefault method (#15551)
devhl-labs May 18, 2023
0818408
fix typo in go-server codegen (#15557)
dvitiuk-opensource May 18, 2023
bba9815
Add workflow to test builds and Gradle plugin on Windows (#15562)
wing328 May 18, 2023
54c8bf8
[go-server] Add tests for boolean query parameter (#15563)
wing328 May 18, 2023
1204662
undo changes to petstore.yaml
wing328 May 18, 2023
2250aae
[kotlin-server] fix bean validation site targets (#14997)
stephan-strate May 18, 2023
f5f382c
Improve build time (#15566)
wing328 May 19, 2023
f0d439f
[kotlin-spring] Fix inheritance compile error because of missing use-…
superbob May 19, 2023
7443c95
[lua] fix use of isBasic condition (#15529)
tiffmaelite May 20, 2023
2d8ec8b
[xojo] fix use of isBasic condition (#15526)
tiffmaelite May 20, 2023
b754688
[eiffel] fix use of isBasic condition (#15533)
tiffmaelite May 20, 2023
9d6f80a
[android] fix use of isBasic condition (#15528)
tiffmaelite May 20, 2023
b7a9373
[powershell] fix use of isBasic condition (#15525)
tiffmaelite May 20, 2023
7eeb7f6
[PHP] fix use of isBasic condition (#15520)
tiffmaelite May 20, 2023
e83640c
[perl] fix use of isBasic condition (#15524)
tiffmaelite May 20, 2023
3e10c5d
[bash] fix use of isBasic condition (#15521)
tiffmaelite May 20, 2023
89e4b24
[Ada] [Java] fix Codegen copies (#15513)
tiffmaelite May 20, 2023
e7039f4
[cpp C++] fix use of isBasic condition (#15535)
tiffmaelite May 20, 2023
08bb0f4
Fixed additional property omitGradleWrapper for kotlin generator (#15…
stefankoppier May 20, 2023
e758e4a
Improve Appveyor tests (#15585)
wing328 May 21, 2023
6142315
Revert "fix#14119 property generateApis=false not working (#14126)" (…
wing328 May 21, 2023
5018d3c
Update to JDK11 (#15553)
wing328 May 21, 2023
5e800d9
Update pom.xml with new plugin, setting (#15590)
wing328 May 21, 2023
7881482
[Ktor] Update generator to latest Ktor version #14061 (#14296)
rsinukov May 21, 2023
605cc7b
Set maven to 3.9 in Github workflow (#15592)
wing328 May 22, 2023
2af661d
used default cancellation token (#15594)
devhl-labs May 22, 2023
ad5cc82
remove fullJavaUtil (#15033)
martin-mfg May 22, 2023
216e2c4
[dart] fix use of isBasic condition (#15523)
tiffmaelite May 22, 2023
cbcf3d3
[Java] [Kotlin] (#14876) fix use of isBasic conditions - do not use H…
tiffmaelite May 22, 2023
273be46
Update Enforcer (maven plugin) rule (#15575)
wing328 May 22, 2023
5299935
[csharp-netcore] Removed .netcore 3.1 (#15605)
devhl-labs May 23, 2023
9358ab9
[kotlin] New 'jvm-spring-webclient' library (#15568)
stefankoppier May 23, 2023
833f649
[Kotlin] minor enhancements, remove KotlinServerDeprecatedGenerator (…
wing328 May 23, 2023
f5903bc
[swift5] fix use of isBasic condition (#15613)
tiffmaelite May 23, 2023
1a483b2
fix variable name (#15623)
changhc May 24, 2023
358397f
[rust] fix use of isBasic condition (#15532)
tiffmaelite May 24, 2023
5b5cb1f
[groovy] support enum generation in groovy client (#15619)
dyadyaJora May 24, 2023
48ef91a
[python] Add test for nullable property with pattern (#15625)
wing328 May 24, 2023
9890f07
[kotlin-server] add support for jakarta ee namespace (#15593)
stephan-strate May 24, 2023
0e8d997
[rust-client]: fix for collectionFormat=multi (#15626)
wing328 May 24, 2023
15604b3
fix go server string compare (#15589)
wing328 May 24, 2023
1557e07
Merge pull request #2 from didx-xyz/update-openapi-master
ff137 May 24, 2023
82f328d
modify 'object' and 'map' types to map to `Dict[str, Any]` instead of…
ff137 May 24, 2023
e383761
add Any to default includes
ff137 May 24, 2023
1f92f08
fix: don't initialise required fields to None
ff137 May 24, 2023
130d7b0
Merge branch 'master' into feature/new-uplink-generator2
ff137 May 24, 2023
dc7a34d
`bin/utils/ensure-up-to-date`
ff137 May 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The following generators are available:
* [php-dt (beta)](generators/php-dt.md)
* [powershell (beta)](generators/powershell.md)
* [python](generators/python.md)
* [python-uplink (experimental)](generators/python-uplink.md)
* [r](generators/r.md)
* [ruby](generators/ruby.md)
* [rust](generators/rust.md)
Expand Down
231 changes: 231 additions & 0 deletions docs/generators/python-uplink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
---
title: Documentation for the python-uplink Generator
---

## METADATA

| Property | Value | Notes |
| -------- | ----- | ----- |
| generator name | python-uplink | pass this to the generate command after -g |
| generator stability | EXPERIMENTAL | |
| generator type | CLIENT | |
| generator language | Python | |
| generator default templating engine | mustache | |
| helpTxt | Generates a python-uplink client. | |

## CONFIG OPTIONS
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.

| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C# have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|

## IMPORT MAPPING

| Type/Alias | Imports |
| ---------- | ------- |


## INSTANTIATION TYPES

| Type/Alias | Instantiated By |
| ---------- | --------------- |


## LANGUAGE PRIMITIVES

<ul class="column-ul">
<li>Dict</li>
<li>List</li>
<li>bool</li>
<li>bytes</li>
<li>date</li>
<li>datetime</li>
<li>dict</li>
<li>file</li>
<li>float</li>
<li>int</li>
<li>list</li>
<li>object</li>
<li>str</li>
</ul>

## RESERVED WORDS

<ul class="column-ul">
<li>all_params</li>
<li>and</li>
<li>as</li>
<li>assert</li>
<li>async</li>
<li>auth_settings</li>
<li>await</li>
<li>body_params</li>
<li>break</li>
<li>class</li>
<li>continue</li>
<li>def</li>
<li>del</li>
<li>elif</li>
<li>else</li>
<li>except</li>
<li>exec</li>
<li>false</li>
<li>finally</li>
<li>for</li>
<li>form_params</li>
<li>from</li>
<li>global</li>
<li>header_params</li>
<li>if</li>
<li>import</li>
<li>in</li>
<li>is</li>
<li>json</li>
<li>lambda</li>
<li>local_var_files</li>
<li>none</li>
<li>nonlocal</li>
<li>not</li>
<li>or</li>
<li>pass</li>
<li>path_params</li>
<li>print</li>
<li>property</li>
<li>query_params</li>
<li>raise</li>
<li>resource_path</li>
<li>return</li>
<li>schema</li>
<li>self</li>
<li>true</li>
<li>try</li>
<li>while</li>
<li>with</li>
<li>yield</li>
</ul>

## FEATURE SET


### Client Modification Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|BasePath|✗|ToolingExtension
|Authorizations|✗|ToolingExtension
|UserAgent|✗|ToolingExtension
|MockServer|✗|ToolingExtension

### Data Type Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|Custom|✗|OAS2,OAS3
|Int32|✓|OAS2,OAS3
|Int64|✓|OAS2,OAS3
|Float|✓|OAS2,OAS3
|Double|✓|OAS2,OAS3
|Decimal|✓|ToolingExtension
|String|✓|OAS2,OAS3
|Byte|✓|OAS2,OAS3
|Binary|✓|OAS2,OAS3
|Boolean|✓|OAS2,OAS3
|Date|✓|OAS2,OAS3
|DateTime|✓|OAS2,OAS3
|Password|✓|OAS2,OAS3
|File|✓|OAS2
|Uuid|✗|
|Array|✓|OAS2,OAS3
|Null|✗|OAS3
|AnyType|✗|OAS2,OAS3
|Object|✓|OAS2,OAS3
|Maps|✓|ToolingExtension
|CollectionFormat|✓|OAS2
|CollectionFormatMulti|✓|OAS2
|Enum|✓|OAS2,OAS3
|ArrayOfEnum|✓|ToolingExtension
|ArrayOfModel|✓|ToolingExtension
|ArrayOfCollectionOfPrimitives|✓|ToolingExtension
|ArrayOfCollectionOfModel|✓|ToolingExtension
|ArrayOfCollectionOfEnum|✓|ToolingExtension
|MapOfEnum|✓|ToolingExtension
|MapOfModel|✓|ToolingExtension
|MapOfCollectionOfPrimitives|✓|ToolingExtension
|MapOfCollectionOfModel|✓|ToolingExtension
|MapOfCollectionOfEnum|✓|ToolingExtension

### Documentation Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|Readme|✗|ToolingExtension
|Model|✗|ToolingExtension
|Api|✗|ToolingExtension

### Global Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|Host|✓|OAS2,OAS3
|BasePath|✓|OAS2,OAS3
|Info|✓|OAS2,OAS3
|Schemes|✗|OAS2,OAS3
|PartialSchemes|✓|OAS2,OAS3
|Consumes|✓|OAS2
|Produces|✓|OAS2
|ExternalDocumentation|✓|OAS2,OAS3
|Examples|✓|OAS2,OAS3
|XMLStructureDefinitions|✗|OAS2,OAS3
|MultiServer|✗|OAS3
|ParameterizedServer|✗|OAS3
|ParameterStyling|✗|OAS3
|Callbacks|✓|OAS3
|LinkObjects|✗|OAS3

### Parameter Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|Path|✓|OAS2,OAS3
|Query|✓|OAS2,OAS3
|Header|✓|OAS2,OAS3
|Body|✓|OAS2
|FormUnencoded|✓|OAS2
|FormMultipart|✓|OAS2
|Cookie|✓|OAS3

### Schema Support Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|Simple|✓|OAS2,OAS3
|Composite|✓|OAS2,OAS3
|Polymorphism|✓|OAS2,OAS3
|Union|✗|OAS3
|allOf|✗|OAS2,OAS3
|anyOf|✗|OAS3
|oneOf|✗|OAS3
|not|✗|OAS3

### Security Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|BasicAuth|✓|OAS2,OAS3
|ApiKey|✓|OAS2,OAS3
|OpenIDConnect|✓|OAS3
|BearerToken|✓|OAS3
|OAuth2_Implicit|✓|OAS2,OAS3
|OAuth2_Password|✓|OAS2,OAS3
|OAuth2_ClientCredentials|✓|OAS2,OAS3
|OAuth2_AuthorizationCode|✓|OAS2,OAS3
|SignatureAuth|✗|OAS3

### Wire Format Feature
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|JSON|✓|OAS2,OAS3
|XML|✗|OAS2,OAS3
|PROTOBUF|✗|ToolingExtension
|Custom|✗|OAS2,OAS3
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ public PythonUplinkClientCodegen() {
// at the moment
importMapping.clear();

typeMapping.put("object", "Dict");
typeMapping.put("object", "Dict[str, Any]");
typeMapping.put("AnyType", "Any");
typeMapping.put("file", "bytes");

// Data types of the above values which are automatically imported
defaultIncludes = Sets.newHashSet("Union");
defaultIncludes = Sets.newHashSet("Union", "Any");

modifyFeatureSet(features -> features.documentationFeatures(null)
.wireFormatFeatures(EnumSet.of(WireFormatFeature.JSON)));
Expand All @@ -71,7 +71,7 @@ public PythonUplinkClientCodegen() {
languageSpecificPrimitives.add("List");
languageSpecificPrimitives.add("Dict");
typeMapping.put("array", "List");
typeMapping.put("map", "Dict");
typeMapping.put("map", "Dict[str, Any]");

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class {{classname}}(BaseModel):
*,
{{#requiredVars}}
{{#vendorExtensions.x-has-custom-name}}
{{name}}: {{>model_field_type}} = None,
{{name}}: {{>model_field_type}},
{{/vendorExtensions.x-has-custom-name}}
{{^vendorExtensions.x-has-custom-name}}
{{name}}: {{>model_field_type}} = None,
{{name}}: {{>model_field_type}},
{{/vendorExtensions.x-has-custom-name}}
{{/requiredVars}}
{{#optionalVars}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ openapi_client/model/order.py
openapi_client/model/pet.py
openapi_client/model/tag.py
openapi_client/model/user.py
openapi_client/uplink_util.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0-SNAPSHOT
7.0.0-SNAPSHOT
18 changes: 9 additions & 9 deletions samples/client/petstore/python-uplink/openapi_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
)

__all__ = [
ApiResponse,
Category,
Order,
Pet,
Tag,
User,
PetApi,
StoreApi,
UserApi,
"ApiResponse",
"Category",
"Order",
"Pet",
"Tag",
"User",
"PetApi",
"StoreApi",
"UserApi",
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from openapi_client.api.user import UserApi

__all__ = [
PetApi,
StoreApi,
UserApi,
"PetApi",
"StoreApi",
"UserApi",
]
Loading