1712 Commits

Author SHA1 Message Date
Beppe Catanese
2aa75802dc
[POSTMAN] Mark request header as disabled (#16028)
* Disable headers without a value

* Update samples
2023-07-08 01:06:32 +08:00
Beppe Catanese
30d6a2ff80
[POSTMAN] Use parameter default value (#16027)
* Refactor to use defaultValue

* Test parameter with defaultValue

* Update samples
2023-07-08 01:05:53 +08:00
Beppe Catanese
315fbff680
[BUG] Change default value for header parameter (#15990)
* Override toDefaultValue method

* Regenerate sample
2023-07-07 10:58:24 +08:00
William Cheng
ba5c5f478e
remove openapi parameter from method (#16017) 2023-07-07 08:32:38 +08:00
William Cheng
965eb2a02f
Add logic to avoid stackoverflow (#16008)
* add logic to avoid stackoverflow

* add test file
2023-07-06 11:45:31 +08:00
bernie-schelberg-mywave
a42f90b0e8
Fix #12412 Use enum type for discriminator (#13846)
* Fix #12412 Use enum type for discriminator

* Rename variable

* Fix required property in test resource

* Add example of enum mapping to samples

* Generate samples

* Generate samples after merging master

* Regenerate samples

* Fix raw use of parameterized class

* Add test showing serialization and deserialization of classes with enum discriminator

* Remove old generated files

* Generate samples

* Generate samples
2023-07-04 23:25:39 +08:00
devhl-labs
00fcaa15c0
[csharp][generichost] Add Option struct to enable better validation (#15977)
* add Option struct to enable better validation

* use kebab case
2023-07-03 14:40:24 +08:00
Michael Glanznig
e2f5997592
fix dry-run output and add tests, fixes #15730 (#15754) 2023-07-02 23:37:21 +08:00
Beppe Catanese
3224e86377
[Postman Collections] Keep original header name (#15907)
* Define baseName for Postman headers

* Use header original name

* Commit regenerated files
2023-07-02 23:36:23 +08:00
Dennis Melzer
50d8e7820b
Fix cli options use tags and api name suffix (#15936)
* Fix cli options use tags and api name suffix

* Add sample code generator for api suffix and tags

* Fix FILES

* trigger build

* Add sample to github workflow
2023-07-02 23:18:17 +08:00
Vladimir Svoboda
71528f69e8
Add support for Angular 16 (#15925)
* Add support for Angular 16

* Fix dependencies specifications

* Fix minimum angular supported version in readme

* Update integration tests

Even if they are currently not run.

* Update sample due to rebase
2023-07-01 13:13:58 +02:00
Jules Bertholet
cdac1366d4
[Rust] Don't unnecessarily process enum names (#15710) 2023-06-30 14:25:04 +08:00
William Cheng
63b2c79565
Fix NPE in StringUtils.camelize (#15957)
* fix NPE in StringUtils.camelize

* add comment

* add test file
2023-06-30 13:19:11 +08:00
William Cheng
8add9119df
Add containerTypeMapped (#15881)
* add containerTypeMapped

* update samples

* update java inflector sample
2023-06-30 09:38:39 +08:00
karzang
e9d98666a1
[Java][Client] Fix #12556 Support primitives and arrays in oneOf (#13897)
* [Java][Client] Fix #12556 Support primitives and arrays in oneOf

* Regenerate petstore samples

* Regenerate petstore test samples

* Treat 'BigDecimal' as primtive datatype

* Fix integration tests
2023-06-29 16:46:55 +08:00
Corné
b2280e23f7
[Kotlin][Spring]ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-c… (#15898)
* ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-cloud

* ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-cloud

* Undo formatting code

* Undo formatting code

* Undo formatting code

* ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-cloud

* Undo formatting code

* Undo formatting code

* Cleanup

---------

Co-authored-by: c.t.vanbarneveld <corne.van.barneveld@rws.nl>
2023-06-29 16:25:18 +08:00
Per-Olov Jernberg
8fe4d780ed
Use substring instead of substr (#15937) 2023-06-29 14:41:42 +08:00
GregDThomas
5d6b769b5b
Fix issue #907 by ensuring the parameters is properly "exploded" (#14825) 2023-06-23 20:11:39 +08:00
Anton Davydov
9f3d9a5e8f
[swift] New 'swift-combine' client generator for swift (#15823)
* swift-alt-gen init

* swift-alt-gen in progress

* swift-alt added runtime

* swift-alt added transport

* swift-alt added example

* swift-alt v0.1.0

* swift-alt implemented form encoded body

* swift-alt fixed array of enums to string

* swift-alt v0.2.0

* swift-alt v0.3.0

* swift-alt v0.4.0

* swift-alt v0.5.0

* swift-alt v0.6.0

* swift-alt v0.7.0

* swift-alt v0.8.0

* swift-alt v0.9.0

* swift-alt v0.12.0

* swift-alt v0.13.0

* swift-alt v0.14.0

* swift-alt v0.15.0

* swift-alt v0.16.0

* swift-alt v0.17.0

* swift-alt v0.18.0

* swift-alt v0.19.0 Support for raw value in header

* swift-alt v0.20.0

* swift-alt v0.21.0

* swift-alt v0.22.0

* swift-combine v0.23.0

* swift-combine PR rules adoption

* swift-combine: updated transport

* Updated bitrise.yml file

* Fixed bitrise pipeline for swift-combine

* Fixed code review comment
2023-06-22 09:25:32 +08:00
pyckle
33aa5b07f3
[Java][bugfix] hashcode/equals behave incorrectly when inheritance is used in Generated Pojos (#15745)
* Fix Java equals and hashCode methods to work with inheritence (#5756)

* Regenerate code samples with improved hashCode/equals

---------

Co-authored-by: Andrew Pikler <andrew.pikler@earnix.com>
2023-06-21 16:33:01 +08:00
martin-mfg
7e89e1ea81
fix import mapping for return types (#14525) (#15719)
* importContainerType = true

* add unit test

* disable MyImportTest

* build all samples, add import exceptions

* simplify code

* delete myImportTest

* generate docs

* extend comment

* remove inline comment
2023-06-21 15:55:29 +08:00
William Cheng
14fc61a293
[java] fix default value - empty list [] (#15862)
* fix empty default value in java okhttp-gson

* add files
2023-06-20 11:27:56 +08:00
Erik Wegner
389270334a
Rust validation handling (#15288)
* Prevent JavaScript regex delimiter

* Validation

* validator dependency

* validation with range

* Switch to garde crate for validation

* Update uuid crate

* Examples

* All rust-server samples

* Added rule handling

* Exchange garde for validator crate (rust)

* Version update in samples

---------

Co-authored-by: Erik Wegner <erik.wegner@regiocom.com>
2023-06-16 15:25:27 +08:00
Yohei Kitamura
0a651e1b0a
fix: NullPointerException in DefaultCodegen.mergeProperties when processing models (#15859)
* fix: NullPointerException in DefaultCodegen.mergeProperties when processing models

* Add test
2023-06-16 14:39:54 +08:00
Camille TJHOA
504744a390
[typescript-fetch] fix snakecase discriminator (#15838)
* [typescript-fetch] fix snakecase discriminator (#7080)

* [typescript-fetch] add snakecase discriminator test case
2023-06-16 07:26:30 +02:00
Beppe Catanese
6cb3414611
Fetch request inline (single) example (bis) (#15857)
* Add (single) example

* Fetch single example when available

* Add test
2023-06-16 09:26:03 +08:00
William Cheng
8c1f4b1a62
Add containerType to codegen parameter (#15830)
* add containerType to codegen parameter

* add test for map container type
2023-06-15 11:51:39 +08:00
William Cheng
b42234eb3c
[python] Fix map of array in property (#15844)
* fix map of array in property (python)

* update samples
2023-06-15 11:50:56 +08:00
JanLubenow
175876a105
[BUG][JAVA] Handling default values leads to wrong defaults or not compilable code fixed (#15836)
* (fix): default values for array types will be handled a bit more appropriate

* (fix): remove commented out block
2023-06-14 11:18:11 +08:00
devhl-labs
6a1626c8e7
[abstract-csharp] Make data types overridable (#15814)
* added new vendor extenion

* moved code to methods to enable overriding

* fixed tests

* renamed method to setTypeMapping

* removed commented code

* moved code to make diff easier to understand

* removed commented code
2023-06-14 10:47:46 +08:00
Oleh Kurpiak
3b832c9fd4
[Java][Client] remove model annotations from AbstractOpenApiSchema (#15808) (fix #15684) 2023-06-13 18:40:36 +03:00
JanLubenow
96b3488a07
[BUG] [Java-Spring] Required-Fields-Constructor has wrong super call when using multiple inheritance layers (#15827)
* (fix): required-fields constructor uses super-call-parameters in the order of the parent required-field constructor

* (fix): required-fields constructor uses super-call-parameters in the order of the parent required-field constructor - add issue number

* (fix): required-fields constructor uses super-call-parameters in the order of the parent required-field constructor - fix file reference
2023-06-13 21:13:31 +08:00
devhl-labs
9b305318b4
[abstract-csharp] Begin removing netcore references (#15805)
* find and replace CSharpNetCoreClientCodegen

* find and replace CsharpNetcoreFunctionsServerCodegen

* find and replace CSharpNetCoreReducedClientCodegen

* find and replace AspNetCoreServerCodegen

* renamed generators

* find and replace CSharpNetCoreClientCodegenTest

* find and replace CSharpNetCoreClientDeepObjectTest

* find and replace CsharpNetcoreFunctionsServerCodegenTest

* git mv files

* find and replace CsharpFunctionsServerCodegenTest

* find and replace CsharpModelEnumTest

* git mv CsharpModelEnumTest.java
2023-06-11 17:06:12 +08:00
William Cheng
6788f43af0
Better handling of Inline schema (#15682)
* skip allOf inline subschema created as $ref

* add option for fallback

* add back atleastonemodel

* add log

* update java, kotlin, js samples

* update tests

* fix native client test

* fix java client errors by regenerating test files

* clean up python

* clean up powershell

* clean up php

* clean up ruby

* update erlang, elixir

* update dart samples

* update ts samples

* update r, go samples

* update perl

* update swift

* add back files

* add back files

* remove outdated test files

* fix test
2023-06-11 15:35:58 +08:00
Beppe Catanese
f240ed4e4e
[Go] Serialize readonly fields (#15765)
* Do not skip readOnly fields in ToMap()

* Regenerate sample

* Add test

* Correct test
2023-06-10 19:23:52 +08:00
Heiko Studt
586626498d
[Python] default values escaping more appropriate (#15695)
Fixes #15541
2023-06-10 15:26:20 +08:00
James Wynn
d27fa00cf5
fix: #1466 additionalProperties works now in spring generator (#11572) (fix #1466)
* fix: #1466 additionalProperties works now in spring generator

* chore: chore: #1466 solved rebase conflicts

* 1466; updated samples

* [Spring] update additionalProperties MR

* [Spring] additionalProperties unit test

---------

Co-authored-by: Your Name <benfonty@gmail.com>
Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
2023-06-08 16:38:53 +03:00
martin-mfg
b7f2b723aa
[JAVA] fix toUrlQueryString for BigDecimal (#15764)
* add MyImportTest.java

* fix original issue

* fix same issue for native library

* remove MyImportTest

* add test configs

* generate samples (again?)

* generate samples again

* generate samples again, undo pom.xml mistake [amended to retrigger circliCi]
2023-06-08 09:34:06 +08:00
Tiffany Marrel
79c2e87890
[Java] fix security features listed in documentation (#15756) 2023-06-06 15:12:22 +08:00
karzang
bc7bdca87f
support nullable check for OAS 3.1 (#15698) 2023-06-05 19:34:51 +08:00
William Cheng
fbb0d6d935
add a test case for python-fastapi query parameter default value (#15744) 2023-06-04 13:37:12 +08:00
William Cheng
421bcd1787
Decommission csharp client generator (#15708)
* remove csharp client generator

* update samples/docs
2023-06-02 20:42:29 +08:00
stephanpelikan
3943e97e14
Introduce option 'importFileExtension' to typescript-fetch (#15439) (#15440) 2023-06-01 08:49:07 +02:00
Ross Bender
1561c33966
[JAVA] Generate client files with multiple enum oneOf types (#12687)
* handle multiple enum types for oneof

* add updates from generate-samples.sh

* add test coverage for oneof enum generation

* update doc and var names for clarity
2023-05-31 17:28:47 +08:00
gonzalad
8a0f374a45
spring: fix spring pageable used without any config (#15113) (fix #13052)
* spring: fix spring pageable used without any config

Spring Pageable is imported whenever we have an API with
a Pageable Json schema, even if x-spring-paginated is not
set.

This commit imports Spring Pageable only if
x-spring-paginated is set to true.

* spring: add unit test for pageable fix

* spring: fix spring pageable feedback from review

remove unrelated example

---------

Co-authored-by: gonzalad <gonzalad@users.noreply.github.com>
2023-05-30 08:42:33 +03:00
Stephan Strate
8e2fa826e5
[kotlin-server] cleanup KotlinServerCodegen configuration (#15653) 2023-05-29 15:58:08 +08:00
William Cheng
e4bf068a88
Update swagger parser to 2.1.14 (#15644)
* update swagger parser to 2.1.14

* minor fix, update tests
2023-05-27 22:55:56 +08:00
samypr100
fe6e4e459f
[java] support required nullable properties on java okhttp-gson generator (#15462)
* Support required nullable properties on java okhttp-gson generator

* regen client after merge

* covering cases
* nullable - true ; required - true
* nullable - false ; required - true
* nullable - true ; required - false
* nullable - false ; required - false
2023-05-26 16:02:48 +03:00
Beppe Catanese
1f4cbb8f00
Add multiple parameter examples to CodegenParameter (#15647)
* Add examples to CodegenParameter

* Set CodegenParameter examples

* Add examples to CodegenParameter

* Set CodegenParameter examples

* Regeneration samples
2023-05-26 09:20:22 +08:00
gonzalad
d52e3fbfda
spring: fix multiline tag description (#15112) (fix #12474)
* spring: fix multiline tag description

@Tag description should merge multiple lines into single line
and trim the newline char at the end

The fix was done in a similar way to what is done for operation description.

* spring: multiline tag description add unit test

---------

Co-authored-by: gonzalad <gonzalad@users.noreply.github.com>
Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
2023-05-25 11:01:12 +03:00