William Cheng
91ac75ff05
Fix NPE in request body ( #17055 )
...
* fix null request body NPE
* fix typo
2023-11-14 10:41:21 +08:00
William Cheng
ec3c484ce9
Add enum name mapping to Java generators ( #17018 )
...
* add enum name mapping to java generators
* update doc
* update description
2023-11-13 10:53:50 +08:00
martin-mfg
2ca99bdf8e
use model class for request body with additionalProperties ( #16613 )
...
* try out simple fix
* add test case
* generate samples
2023-09-23 13:07:53 +08:00
William Cheng
b5867ebf2b
fix cast exception in array default value (java gen) ( #16434 )
2023-08-29 14:31:24 +08:00
William Cheng
5b2ceac93d
fix anyOf in handling primitive types in java client ( #16264 )
2023-08-06 13:48:13 +08:00
William Cheng
f0b100a9ad
Add a test for BigDecimal parameter in java client ( #16263 )
...
* add a test for BigDecimal parameter in java client
* update tests
2023-08-06 12:14:21 +08:00
William Cheng
0a02860b50
add parameter name mapping ( #16160 )
2023-07-24 15:54:40 +08:00
William Cheng
6983a3acf3
Add nameMapping option to Java client, server generators ( #16103 )
...
* add nameMapping to java codegen
* update doc
* update samples
* fix typo
* update toParamName
2023-07-17 11:37:49 +08:00
William Cheng
7258b3c171
Fix allOf with a single $ref ( #16096 )
...
* new test
* fix allOf with a single ref in inline model resolver
2023-07-14 19:54:58 +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
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
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
karzang
bc7bdca87f
support nullable check for OAS 3.1 ( #15698 )
2023-06-05 19:34:51 +08:00
Tiffany Marrel
cbcf3d36f6
[Java] [Kotlin] ( #14876 ) fix use of isBasic conditions - do not use HttpBearerAuth (or HttpBasicAuth) for other http auth methods (such as http signature auth or custom schemes) ( #15220 )
...
* remove http signature from test yaml when not supported
* do not use HttpBearerAuth for signature auth or other unsupported http auth method
ignore unsupported http auth method unless generated code would not compile (in which case, an exception is thrown)
* [Java] fix use of isBasic condition
* [kotlin] fix use of isBasic condition
2023-05-22 16:08:08 +08:00
Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos ( #13915 )
...
* Fix typos
* Remove repeated words
* Minor grammar fixes
2022-11-07 21:30:24 +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
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
b6ca40031a
fix issue when discriminator property is an enum string ( #13001 )
2022-07-24 17:55:08 +08:00
William Cheng
12cdacabbf
[Inline model resolver] better handling of inline responses and bug fixes ( #12353 )
...
* better handling of inline response schemas, bug fixes
* update samples
* add new files
* better code format
* remove unused ruby files
* fix java test
* remove unused js spec files
* remove inline_response_default_test.dart
* fix webclient tests
* fix spring tests
2022-05-13 10:17:59 +08:00
William Cheng
d135f1992e
Fix inline allOf in request body ( #12348 )
...
* fix inline allof in request body
* update samples
2022-05-12 12:51:36 +08:00
William Cheng
ad3b5f7045
[Inline model resolver] various improvements ( #12293 )
...
* better handling of requestbody in the inline resolver
* remove commented code
* better request body naming
* fix unique naming
* minor code format change
* removed additional underscore from names, fix test
* more fixes, update tests
* fix all tests
* undo changes to default codegen
* update samples
* update python tests
* add new files
* update samples
2022-05-10 17:13:57 +08:00
William Cheng
53eebc953f
New option to map inline schema names ( #12237 )
...
* add option to specify inline schema nam mapping
* update samples
* update samples
* add new option to plugins
* better code format
* better code format
* better log info
* better docstring
* add tests
2022-04-27 01:13:45 +08:00
William Cheng
8330e16d66
Better inline model resolver to handle inline schema in array item ( #12104 )
...
* better support of inline schema in array item
* update tests
* update samples
* regenerate samples
* fix allof naming, remove files
* add files
* update samples
* update readme
* fix tests
* update samples
* update samples
* add new files
* update test spec
* add back tests
* remove unused files
* comment out python test
* update js test using own spec
* remove files
* remove unused files
* remove files
* remove unused files
* better handling of allOf with a single type
* comment out go test
* remove test_all_of_with_single_ref_single_ref_type.py
* fix inline resolver, uncomment go test
2022-04-20 10:28:15 +08:00
William Cheng
5d8b80a5cd
[Java] rename x-contentType to x-content-type ( #11895 )
...
* rename x-contentType to x-content-type
* undo changes
2022-03-18 09:50:42 +08:00
William Cheng
df05e6f4bc
Update parser to 2.0.29 ( #11388 )
...
* update parser to 2.0.29
* better handling of null in dereferencing
* update parser to 2.0.30
* update core to newer version
* add new files
* rollback to previous stable version
* remove files
* Fixes for python-experimental NullableShape component
Co-authored-by: Justin Black <justin.a.black@gmail.com>
2022-02-21 18:37:52 +08:00
William Cheng
b6c445cdc3
update swagger core, jackson to newer version ( #11545 )
2022-02-08 13:31:20 +08:00
William Cheng
51800471fa
[java][Okhttp] replace okhttp-gson with okhttp-gson-nextgen ( #11538 )
...
* replace okhttp-gson with okhttp-gson-nextgen
* add new files
* update doc
* clean up pom
* update test
* restore error handling in doc
* add back changes
* uncomment tests
* update samples
2022-02-08 00:05:44 +08:00
Nathan Baulch
5d68bd6a03
Fix thousands of spelling typos ( #10272 )
2021-08-28 22:58:24 +08:00
Cody Mikol
f9d6c6fb21
CHORE[DEPENDENCIES]: bump swagger-parser => 2.0.22 ( #7597 )
...
this fixes a bug where the parser would return
null when missing parameters rather than reporting
some useful error.
Fixes N/A
2020-12-08 15:18:07 +08:00
Yuriy Belenko
6a08ec59c0
[core] Add type and format properties to model of inline response ( #6153 )
2020-08-03 18:37:37 -04:00
Januson
c49d8fda8e
[M][REQ][JAVA]: Add option to generate arrays with "uniqueItems" true as Sets rather than Lists ( #5466 )
...
* [REQ][JAVA]: Add option to generate arrays with "uniqueItems" true as Sets rather than Lists
- Update Java code generation to use sets instead of lists when uniqueItems is set to true
- Add import resolution for sets
- Add tests and fix broke tests
resolve #5254
* Update Javascript, Perl, Python and Ruby to preserve current functionality.
* Switch set implementation to LinkedHashSet
* Fix missing import for uniqueItems used on param.
* Fix missing import and return type for responses with uniqueItems
* Fix default values for array of enum
* Update generated samples
* fix merge issue
* Update generated samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-05-21 13:27:57 +08:00
Nicholas Muesch
7efa65164a
Add openapi.yaml file to Java clients ( #5765 )
...
* Add openapi.yaml file to Java client
* Move supporting template file to Java root
* Update petstore clients
2020-04-07 16:07:08 +08:00