Erik Erbar
748de83d29
[FIX][typescript-axios] Fix missing imports when using allOf composition ( #13810 )
...
* Update typescript-axios with-separate-models-and-api-inheritance sample
* Add all imports during typescript-axios model generation
* Regenerate samples
* Update modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
2022-10-24 17:33:08 +02:00
Justin Black
ac3bb6830a
[python] Fixes endpoint overload type hint + required property not in properties ( #13790 )
...
* Adds endpoint overload type hint fix to template
* Samples regenerated
* Adds fix for required property not in properties
* Regenerates samples
2022-10-21 18:50:30 -07:00
Jason Finch
0d56ebc702
[csharp-netcore] Enum parameter serialization to use EnumMember value when provided. ( #11448 )
...
* Add modification to petstore yaml to support testing enum string resolve. Move csharp-netcore-net50 to point to new yaml schema.
* [csharp-netcore] - For enum's with an EnumMember Attribute use this value instead of enum.ToString().
-Regenerate csharp samples to accomodate change.
* fix: rebase on master. Update samples.
* task (Samples): update csharp-netcore samples. (via generate-samples.sh)
2022-10-19 23:31:18 +08:00
Christopher Thonfeld-Guckes
a3fbb82853
fix issue https://github.com/OpenAPITools/openapi-generator/issues/12738 ( #13495 )
...
Co-authored-by: Christopher Thonfeld-Guckes <ctg@triarc-labs.com>
2022-10-19 23:08:25 +08:00
William Cheng
042e250efa
Separate Java Helidon functional tests ( #13763 )
...
* separate helidon functional tests
* trigger build
2022-10-19 21:20:35 +08:00
devhl-labs
0c1384b950
[csharp] Fixed data type for maps of maps ( #13701 )
...
* fixed data type for maps of maps
* added models to samples
* moved code to avoid a bug in the property generation
2022-10-19 17:13:11 +08:00
Chao Yang
b2e8a15d9f
[Crystal] Allow double colons in model name ( #13736 )
2022-10-19 10:55:59 +08:00
William Cheng
02d99eaf12
add tests for go oenof datetime ( #13713 )
2022-10-17 17:37:02 +08:00
Jacob Halsey
c1c9cb2192
[rust] Fix generation for optional and nullable fields (double option pattern) ( #13177 )
...
* Fix generation for optional and nullable fields (double option pattern)
* Only import serde_with if necessary
2022-10-17 15:44:18 +08:00
William Cheng
fae9a798a0
Better handling of date, datetime in R client ( #13706 )
...
* better handling of date, datetime in R client
* use string instead of as.Date
2022-10-17 00:41:37 +08:00
William Cheng
c81c131c46
Merge remote-tracking branch 'origin/master' into 6.3.x
2022-10-16 17:47:47 +08:00
William Cheng
e02ebd822a
Merge pull request #13513 from tjquinno/helidon-generation
...
Add server and client generators for Helidon
2022-10-16 16:30:52 +08:00
William Cheng
cafdf64ca5
Fix ClassCastException when uuid has default value ( #13698 )
...
* fix cast error for uuid default
* fix java uuid default value
2022-10-16 09:08:17 +08:00
William Cheng
8548a63d96
[Crystal] add require "big"
for decimal ( #13696 )
...
* add require big, add tests
* add new files
2022-10-15 22:43:40 +08:00
Tim Quinn
048f78e0c6
Change generated MP server return type from Response
to the document-indicated type ( #72 )
...
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-13 11:39:59 -05:00
Tim Quinn
700f01dbf8
Update copyrights; incorporate intervening change to samples-jdk17.yaml ( #71 )
...
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-11 13:32:09 -05:00
tim.quinn@oracle.com
638c5201c4
Add config files for samples, update services declarations, add test resources and code, add Helidon client and server sample profiles to pom
...
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-11 13:30:56 -05:00
Justin Black
ef8e55ca21
[python] client bug fixes + type hint improvements ( #13665 )
...
* Adds python client, template, and spec updates for query param content type json
* Samples regenerated
* Finishes adding test cases for query param json content type
* Uses newest templates
* Templates replaced, spec replaces, sample replaced
* Samples updated
2022-10-10 20:13:31 -07:00
Beppe Catanese
48928d8efe
[Go] Generate test files ( #13560 )
...
* Process api_test.mustache
* Create api_test.mustache
* Add test and helper method
* Commit all (re)generated files
* Commit all (re)generated files
* Fix indentation
2022-10-07 23:15:09 +08:00
DeaneOC
0060dfd195
[Java][Spring] Fix #13365 Adjusted pojo.mustache to handle required fields when beanValidation false ( #13580 )
...
* Adjusted pojo.mustache to handle required fields
* Updated tests and config to cover more scenarios
* Removing unused imports
* Resolved conflicts
2022-10-07 23:05:51 +08:00
Jonas Reichert
6f3c0a8b5b
[swift5] fix generation of multiple security definitions ( #13617 )
...
* uses correct variable to check for security definitions
* update samples
2022-10-07 16:01:35 +01:00
Minira Samadova
2f8b7a054f
[typescript-axios] / #12828 : Add ESM support to typescript-axios client ( #13586 )
...
* add ESM support to typescript-axios client
* add module path to the package json template
* module must be commonjs
* generate samples
2022-10-07 10:14:56 +02:00
William Cheng
94bc2ed19c
add tests for #13606 ( #13618 )
2022-10-07 09:53:55 +08:00
Dennis Melzer
0a69f11526
Remove wrong request mapping for feign clients ( #13546 )
...
* Remove request mapping
* Fix bug for feign clients
* Fix test
* Fix test files
* Rebuild
* Revert change
2022-10-07 01:36:43 +08:00
DeaneOC
10a1e7c2d5
Fix #13385 spring json nullable array ( #13537 )
...
* Fixing to use equalsNullable when nullable set in config for SpringCodeGen
* Adding additional test case file
* removed print statement from SpringCodeGen
* Updated model object
* Corrected indentation and removed import
* Fixed broken test
* Updating sample
2022-10-07 01:07:48 +08:00
bgong-mdsol
4ae11f8a0f
add Imports for oneOf & anyOf schemas ( #13553 )
2022-10-07 01:01:58 +08:00
Jacob Halsey
32936ad71b
[rust] [rust-server] More abstract functions including integer fitting ( #13503 )
...
* [rust] [rust-server] Abstract Rust Integer fitting
* Add docstrings
2022-10-07 00:40:24 +08:00
Justin Black
57f5cc4000
[python] fixes bugs ( #13581 )
...
* Adds bug fixes
* Samples and docs regenerated
* Samples regenerated
2022-10-03 11:15:16 -07:00
William Cheng
c939894711
[R] add URL validation ( #13570 )
...
* add url validation in r client
* update samples
2022-10-02 23:57:33 +08:00
William Cheng
9cc23dd09d
[JavaScript] add oneOf support ( #13561 )
...
* JS add oneOf support
* add validate json method
* add oneOf support to JS client
* update samples
* add todo in anyof
* switch to composed.oneOf
* update oneOf to support primitive types
* update messages
* minor fix, add more tests
* update samples
* fix npe in from model
* fix syntax error in length check
* update samples
2022-10-02 13:34:50 +08:00
Jonas Reichert
22086e4f3c
[swift5] support both date and date-time formats ( #13520 )
...
* add withoutTime formatter
* add DateWithoutTime
wip
* fix CI
# Conflicts:
# samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/DateWithoutTime.swift
* implement flag and adjust tests
* generate samples and docs
* docs
* update samples
* remove samples of legacy python generator
* Revert "remove samples of legacy python generator"
This reverts commit 28da78f99dcaa6cf761367b0a2d2c3fddf4803ec.
* review remarks
* generate samples
* fix
* review remarks
* remove samples
* generate swift 5 samples
* generate csharp examples
* docs
* Revert "generate csharp examples"
This reverts commit d1deb17dbcd04b9b00d9ad4a08ce55bedd960de8.
* Revert "generate swift 5 samples"
This reverts commit 968e859bfe3ce631f174d10f10983ed2f5c09486.
* Revert "remove samples"
This reverts commit a43d21529ba6a9e615671729d970ec7ef9662402.
* manually remove FILES
* regenerate files
* reviewers remarks
* delete all date without times
* update config of alamofireLib to use new attribute and generate samples again
* docs
2022-09-26 17:39:35 +01:00
Justin Black
7e73645303
Switches python-experimental in as the primary python client ( #13501 )
...
* Changes python to python-prior
* python -> python-prior, python-experimental->python
* Renames sample spec directories
* Samples regnerated
* Regenerates docs
* Fixes test
* Samples regenerated
* Updates renerators list
* Fixes made to python paths in pom.xml
* Fixes node4 sh file paths
2022-09-24 16:19:38 +08:00
Mostafa Aghajani
9d621342e0
[Kotlin] Fix wrong default value is generated for non-integer numbers ( #13507 )
...
* ISSUE-13506 fix number value for default values when they are number
* ISSUE-13506 test and sample update
2022-09-23 15:02:49 +01:00
Justin Black
d25cdbb2ce
[python-experimental] removes enum cls factory ( #13491 )
...
* Movs enum info, changes cls factory to base class + updates samples
* Fixed docs for enums, they show the allowed bool and None values now
2022-09-22 11:08:09 -07:00
William Cheng
09d3b8f866
fix optional body parameter in r ( #13483 )
2022-09-21 11:56:31 +08:00
Justin Black
903f2e2e2e
[python-experimental] improves documentation ( #13477 )
...
* Improves docs generation
* Adds inline composed schemas
* Adds missing from property
* Adds notes info
* Fixes spacing
* Updates notes, generates container properties
* Adds anchors to property schema docs
* Adds format info to docs
* Adds items schema documentation
* Adds doc for additionalProperties
* Adds anchors for response types
* Fixes anchors in endpoint
* Fixes api doc link to model doc
* Removes returnType from api docs because it is unused
* Fixes float and double tests
2022-09-20 14:53:58 -07:00
Jacob Halsey
e6dd608897
Rust: Issue #13453 - Empty enum variant names ( #13454 )
2022-09-20 22:52:13 +08:00
Alexey Makhrov
f773ac7bfe
[typescript-angular] Support body for DELETE requests ( #13457 )
...
* [typescript-angular] Update api template to use HttpClient#request instead of its http-method-specific wrappers
* update expected output for integration tests
* regenerate samples
2022-09-19 08:46:22 +02:00
Luka Dschaak
c4a3866e75
[PHP-Symfony] Encurage Symfony 5 bundle directory structure best practices ( #13014 )
...
* use .yaml instead of .yml
This is recommended by Symfony standards
* save Bundle files also to src path
* add test for generate ping
* add package imports
* fix expected file names
* why is Api/ApiServer.php missing
* output filenames
* use getAbsolutePath for debug purpose
* do not use punctuation as current directory
* refactor: remove todos
* use also .yaml in test to fix it
* add test for setting a different source directory
* use correct const for setting source dir property in tests
* import the AbstractPhpCodegen in test class
* put also Resources to source path
* save docs not to Resources
* update samples and improve src path in autoload.php and composer.json
* update moved samples
2022-09-18 15:16:27 +08:00
Justin Black
43375b9392
Upgrades swagger parser to 2.1.1, allows ingestion of 3.1.0 specs ( #13133 )
...
* Upgrades swagger-parser
* Removes additional property and halting of spec processing
* Updates tests
* Docs updated
2022-09-17 08:33:47 -07:00
William Cheng
517816d72b
[R] Add array support to path parameters ( #13450 )
...
* add array support to path parameters (r client)
* update samples
2022-09-17 22:35:00 +08:00
William Cheng
943d8bfb8f
Add set support to model properties in R client ( #13443 )
...
* add set support to model properties in r client
* update samples
2022-09-16 23:09:23 +08:00
William Cheng
26ebde4a19
support set in r client parameters ( #13430 )
2022-09-16 13:38:35 +08:00
Oleh Kurpiak
0c6a951615
[Spring] Bean validation for headers ( #13414 )
2022-09-14 23:07:08 +08:00
Justin Black
c59759f20a
Adds IJsonSchemaValidationProperties format getter and setter +uses the format info ( #13360 )
...
* Adds format getter and setter
* Updates codegenProperty
* Updates codegenModel
* Updates codegenParameter + Response
* Sets format and removes unused import code in python-experimental
* Samples regenerated
* Samples regenerated
* Adds AnyTypeAndFormat
* Separates format bases out from their str or number bases
* Docs updated
* Updates python-exp, stops setting isDate and uses format instead
* Removes python-experimental isDate usages
* Fixes password usages
* Turns off isDateTime in python-experimental java layer
* Sample regnerated without isDateTime
* Removes isUuid
* Turns off isDecimal, decimal_payload broken
* Removes isDecimal
* Removes isByteArray
* Removes isBinary python-exp usages
* Removes isFloat isDouble setting from python-experimental
* Removes isDouble isFloat usages in sample
* Stops setting isShort and isLong in python-exp java layer
* Removes isShort isLong usages from python-exp and generates sample
* Adds decimal as integer input
* Adds missing bool type
* Adds validations to format mixins, adds test_uuid
* Adds test_date
* Adds test_date_time
* Adds test_number
* Adds test_int32
* Adds test_int64
* Adds test_double
* Adds test_float
* Samples updated
* Fixes javadoc
2022-09-11 09:17:16 -07:00
William Cheng
f98753aa8b
[R] support explode (true/false) in query array parameters ( #13364 )
...
* fix query parameters (explode or not) in r client
* add tests
2022-09-07 12:21:13 +08:00
Justin Black
c4d56afcae
[python-experimental] adds test verifying inheriting from multiple AnyType classes ( #13358 )
...
* Adds test_additional_properties_validator
* Updates test
* Reverts file
2022-09-05 17:18:51 -07:00
Justin Black
cb8d9d5bfe
[python-experimental] adds new json content type ( #13356 )
...
* Adds json detection for application/json-patch+json
* Adds jsonPatch route and schemas
* Adds test_json_patch
* Unit test sample updated
* Reverts version files
2022-09-05 09:37:01 -07:00
William Cheng
6c9421684a
escape % in description in r model @field ( #13353 )
2022-09-05 11:37:24 +08:00
William Cheng
c81c103572
[R] Remove obsolete importMapping code, add tests ( #13345 )
...
* remove import obsolete code, add tests
* remove man fodler
* update .gitignore
2022-09-05 00:21:52 +08:00