William Cheng
e0b059bcde
update samples
2024-03-24 18:14:15 +08:00
William Cheng
6746be9a50
fix allOf handling in 3.1 spec
2024-03-24 18:07:01 +08:00
William Cheng
d88023f833
fix ref to request bodies in form content type ( #18216 )
2024-03-24 11:38:21 +08:00
Nick Cooper
8acf9b779d
Specify named param for field defaults in Python Pydantic V1 generator ( #18187 )
...
* Use named parameter
* Regenerate samples
2024-03-24 11:36:15 +08:00
ふぁ
9acd620bbb
[Python] Add test object serialization for multipart requests ( #18156 )
...
* [Python] add test object serialization for multipart requests #18140
* [python] update samples
* [python] update samples
2024-03-24 09:37:44 +08:00
William Cheng
e17777044e
Use systemPropertyVariables in pom.xml ( #18213 )
...
* use system property variables in pom.xml
* update
2024-03-23 21:45:29 +08:00
Maroš Varchola
f258ce2cf5
#18031 Fix: added middleware adding for authorization methods [php-slim4] ( #18103 )
...
* fix: added middleware adding for authorization methods, added unauthorized handler to authorization abstract, fixes #18031
* feat: updated generated sample for php-slim4
* fix: small fix for running error handlers and environment setting fix
* feat: removed unused dependency in abstract authenticator, php-slim4
2024-03-23 21:41:16 +08:00
ふぁ
5e9546451c
[Python] Add echo_api test object serialization for multipart requests ( #18176 )
...
* [python] echo add test object serialization for multipart requests
* [echo api] update samples
* [echo api] update samples
2024-03-23 21:40:10 +08:00
William Cheng
420e49f258
better type check for additoinal properties before casting ( #18212 )
2024-03-23 21:21:31 +08:00
William Cheng
4ca8f9c384
Update kotlin client dependencies to newer versions ( #18211 )
...
* update kotlin client dependencies to newer versoins
* update
2024-03-23 21:21:20 +08:00
Njeri Gachoka
aedf571811
Handle both types of additional properties when getting type declaration ( #18201 )
2024-03-23 17:42:22 +08:00
William Cheng
8288b6fb15
fix #18184 , check nullable in 3.1 spec ( #18189 )
2024-03-23 17:15:27 +08:00
William Cheng
a26c87e7a9
[Kotlin][jvm-retrofit2] fix missing import for models in query parameters ( #18143 )
...
* add new kotlin client samples
* update workflow
* update samples
* update
* add kotlin echo api client
* update
* update
* fix model import
2024-03-23 15:38:49 +08:00
Thom
2916be0fb5
fix[kotlin]: only use data class when it has constructor vars ( #18202 )
...
Co-authored-by: Thom van Kalkeren <thom.vankalkeren@ns.nl>
2024-03-23 15:38:03 +08:00
devhl-labs
716a82f8bb
minor spacing change ( #18210 )
2024-03-23 13:01:58 +08:00
William Cheng
84b3cd9962
allow customer version to be overwritten in additional properties ( #18170 )
2024-03-22 15:22:24 +08:00
dependabot[bot]
19898646a8
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website ( #18200 )
...
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware ) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases )
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4 )
---
updated-dependencies:
- dependency-name: webpack-dev-middleware
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-22 15:17:16 +08:00
Matteo Baccan
7565e365f8
Update pom.mustache ( #18195 )
...
* Update pom.mustache
* Updated pom.xml of samples
2024-03-22 15:05:32 +08:00
shirin175
1bfe800b9f
typescript-fetch: Move parenthesis to correct place ( #18075 )
...
A misplaced parenthesis let to a syntax error when generating the code for a nullable set in the FromJSONTyped function. By moving the parenthesis to the correct place the syntax error was resolved.
2024-03-21 18:45:50 +08:00
Flemming Nørnberg Larsen
a4508f6817
#18058 Fix the Java generator to generate valid @RequestMappings where the produce
field takes list of string parameters instead of a single comma-separated string ( #18092 )
...
* #18058 Fix AbstractJavaCodegen.getAccepts() so it returns a String array instead of a comma-separated string, and fixed api.mustache so the @RequestMapping annotation generated produces for x-accepts as a parameter list instead of a (single) string.
* #18058 Updated test case to accept a string array instead of a comma-separated list.
* #18058 Reverted changes on imported compared to the main branch.
* #18058 getAccepts() is now hybrid, and can return both a single String or a String[].
* #18058 Rolled back the hybrid getAccepts(), so it only returns a String array.
* #18058 Updated mustache files to cope with vendorExtensions.x-accepts being a string array instead of a comma-separated string.
* #18058 Generated new sample files with by running `./bin/generate-samples.sh ./bin/configs/*.yaml`
* #18058 Optimization of getAccepts()
* #18058 Regenerated scripts that got broken after resolving conflicts on GitHub
* #18058 Fixed introduced issue with api.mustache causing a redundant accept with @HttpExchange with the PetApi.java, StoreApi.java, and UserApi.java.
2024-03-21 17:53:18 +08:00
Sondre Eikanger Kvalø
c7e9bd2f29
[Kotlin][Server] Skip new post processing routine for kotlin server jaxrs ( #18180 )
...
* Skip post processing when generating JAXRS spec with Kotlin
This feature was previously added to work with the javalin5 library
* Add sample that proves what we expect after fixing this
* Update sample
* Added new samples to samples workflow
* Revert from jdk17 pipeline
2024-03-21 15:55:28 +08:00
ふぁ
e39b99051c
[python] add test Missing the important statement for Datetime in Python binding generation ( #18175 )
...
* [python] add test on datetime response import
* [python] update sample
* [python] update sample
2024-03-21 15:40:33 +08:00
William Cheng
894848e550
update links to blog posts ( #18174 )
...
* update links to blog posts
* update doc
2024-03-21 15:36:52 +08:00
Maroš Varchola
9c26ad4745
fix: when instantiation type is not defined for language, return type itself for parent ( #18164 )
2024-03-21 08:06:11 +01:00
Jonas Emmert
bcd0bc5de8
[R][Client] fix brackets for httr2 file_params ( #18142 )
...
* fix brackets for httr2 file_params
* added additional braces to baseName of httr2 file_params
2024-03-21 11:43:50 +08:00
Daniel Wischolek
bf2a251dd6
scala-sttp4: fix for missing EnumNameSerializer for inner enum definitions ( #18145 ) ( #18160 )
2024-03-21 11:43:15 +08:00
William Cheng
7aeb952565
update samples
2024-03-21 11:42:51 +08:00
Zishun (Zack) WEI
43ca5fcac9
Fix issue 18088: Missing the important statement for Datetime in Python binding generation ( #18173 )
...
* fix issue 18088
* update samples
2024-03-21 11:39:19 +08:00
William Cheng
0b94817f58
skip check for possible model type in abstract C# ( #18171 )
2024-03-21 11:38:40 +08:00
Matteo Baccan
fe9ba01bf8
Upgrade github action ( #18181 )
2024-03-21 11:31:05 +08:00
Jonas Emmert
2600eb92dc
[R][Client] allow to initialize enum classes without parameters ( #18183 )
...
* allow empty initialization of enum classes
* regenerate samples
2024-03-21 11:21:41 +08:00
Sondre Eikanger Kvalø
ed8b7ec7f6
Should parse boolean value for useJavaEE as this is done elsewhere ( #18182 )
...
For consistency across generators we should allow specifying the value of the useJavaEE in the same way as for instance in the jaxrs-spec (Java)
2024-03-21 11:21:12 +08:00
Giovanni Cimolin da Silva
6a1791c8c3
fix: Don't spread strings, instead "||" them together ( #18185 )
2024-03-20 18:30:09 +01:00
Artur Zdolinski
c15e267e22
Fix problem in sanitize_for_serialization for Python (pydantic type SecretStr ) BUG#16086 (2nd pull) ( #18023 )
...
* fix-for-bug-16086
* add to_dict alternative
* fix assertEqual
* remove extra blank line + test_model Argument SecretStr set
* update samples / remove extra blank line
* restore sanitize test for serialization with different data types
* remove empty line in api_client.mustache
* remove 2nd empty line in api_client.mustache
2024-03-20 19:14:43 +08:00
Axident
e2df0d6154
#18095 | Prevent generating "pattern" and "size" to special formats of string type ( #18135 )
2024-03-20 14:07:29 +08:00
William Cheng
971c3a6059
Insert missing quote in clientPropertiesConfiguration.mustache for the Spring generator ( #18172 )
...
* #18090 Insert missing quote: `{{{tokenUrl}}}"` -> `"{{{tokenUrl}}}"`
* #18058 Added test unit
* #18058 Stop unit test from generating unnecessary APIs
* fix test
---------
Co-authored-by: Flemming Nørnberg Larsen <f.larsen@elsevier.com>
2024-03-20 14:06:16 +08:00
William Cheng
09af44eca3
[java] update jakarta.validation-api to 3.0.2 ( #18124 )
...
* fix: jersey3 library
fix issue that library failed in case pattern matching was used in
the api.
* add tests, update version
* update
* fix tag
* fix, update samples
* update build
* more update
* update workflow
* test useJakarta
---------
Co-authored-by: holomekc <30546982+holomekc@users.noreply.github.com>
2024-03-20 12:55:19 +08:00
condorcorde
de081e4edf
Fix proxy type ( #18166 )
...
* Update configuration.mustache
Fix check of proxy type
* Changing sample source files
2024-03-20 12:53:58 +08:00
William Cheng
1108ce5808
update samples for cpp-ue4 petstore
2024-03-20 11:33:43 +08:00
Samuel Kahn
783119b687
[cpp-ue4] Handled nullable by setting the required tag, effectively making nullables optionals (even if they may be required in the spec). This is because there is no such concept as a value being nullable in C++, and this generator deals with values, not pointers. ( #18168 )
...
Co-authored-by: Samuel Kahn <samuel@darewise.com>
2024-03-20 11:26:54 +08:00
Giovanni Cimolin da Silva
93b76dde37
fix: Fix schema generation for oneOf
when using TS-FETCH client ( #18154 )
...
* fix: Fix schema generation for `oneOf` when using TS-FETCH client
This fixes the following errors:
* Spread types may only be created from object types (on `FromJSONTyped` functions).
* Module '"./BlankEnum"' has no exported member 'instanceOfBlankEnum' (enum templaces don't export function used by other API client files).
* chore: Regenerate samples
2024-03-19 11:48:21 +01:00
William Cheng
191dc1a6ba
Override escape reserved word in abstract rust ( #17440 )
...
* override escape reserved word in abstract rust
* add tests for ref, improve verion lambda
* add files
2024-03-19 18:33:29 +08:00
Poolmann
b7ea139f77
[Python] Fix object serialization for multipart requests ( #18140 )
...
* Fix multipart object serialization
* Update samples
2024-03-19 18:31:08 +08:00
Beppe Catanese
e58f19c735
[POSTMAN] Process request with array of string ( #18159 )
...
* Process JSON array
* Update test file
* Regenerate samples
* Add CI test
2024-03-19 18:29:48 +08:00
adrianhelvikspond
815205250a
Fix: Incorrect serialisation of maps and sets in typescript-axios ( #17790 )
2024-03-19 08:21:39 +01:00
Jonas Emmert
5f49a04190
allow api response to be NULL and regenerate samples ( #18141 )
2024-03-19 10:03:17 +08:00
William Cheng
ddb5ab4078
Add name in various cases in property, parameter names ( #18139 )
...
* create nameInPascalCase
* add back name in camel case
* update abstract cpp codegen
* update erlang templates, update samples
* update tests
* add param names in various cases
* clean up
* fix
2024-03-19 09:27:02 +08:00
William Cheng
3155a70c3f
[Refactor] create a static function to build map of codegen model ( #18138 )
...
* refactor to build map of codegen model
* update
2024-03-19 09:15:33 +08:00
Ross Bender
b59957a095
Java API invocation flexibility ( #18078 )
...
* add direct invocation methods for java (httpclient)
* add direct invocation methods for java (resttemplate)
* handle methods only if endpoints exist for api client
* preserve previous newline to minimize changes
* update httpclient/resttemplate samples
* add common methods in base class
* regenerate samples with base class
2024-03-18 21:51:32 +08:00
devhl-labs
da1187fc8d
[csharp] Fixes incorrect property name ( #18136 )
...
* moved camel case lambda
* renamed camel case lambda
* reverted unintended change
* fixed wrong property names
* restored accidental file deletion
* build samples
2024-03-18 13:02:26 +08:00