18059 Commits

Author SHA1 Message Date
Akhil Nair
a6bcef5b16
[PYTHON] Setting default value for Required variables (#10809)
* [req_vars_changes]

* Added new schema to generate samples to test the issue mentioned in the PR.

* Changed the variable name from setRequiredVars to initRequiredVars

* Added initRequiredVars as a generator additional property

* Regenerating the samples after rebasing the code with master branch

* Changed the description of additional property
2022-03-30 08:52:00 -07:00
Jean-Alexis Aufauvre
bb12861479
Add Mastercard to the company list (#12003)
* Add Mastercard to the company list

* Moved Mastercard to the right position
2022-03-30 18:41:39 +08:00
William Cheng
8eb818c098 skip php 8.1.4 installation by using cache 2022-03-30 18:38:24 +08:00
devhl-labs
40d3331e78
[csharp-netcore] Inject json options (#11862)
* refactor nrt annotation

* enable nrt by default in .net6.0+

* use shorter nrt annotation

* build samples

* removed debugging lines

* fixed model and operatoin constructors

* reverted a commented line for comparison

* upgraded to System.Text.Json

* build samples

* build samples

* deleted samples to remove old files

* bug fixes

* bug fixes

* added cumpulsory property to codegen

* build samples

* fixed bug

* fixed bug

* fixes

* removed bugged code that wasnt needed

* build samples

* restored sorting and default values for required params

* fixed bugs in comparison

* fixed sort comparators

* recreate tests

* build samples...again...

* removed debugging line breaks

* simplified constructor signature

* inject json options

* build samples...again...

* build samples
2022-03-30 16:59:05 +08:00
bgong-mdsol
6a3a385f8c
convert header parameter to string (#11991) 2022-03-30 16:44:43 +08:00
Oleh Kurpiak
c71bc25aa2
[Java][Spring] use tag description from specification (#12000) 2022-03-30 16:43:28 +08:00
William Cheng
5eacc0d09f undo changes to CI/circle_parallel.sh 2022-03-29 14:00:05 +08:00
Yuriy Belenko
b3079f0848
Switch expected and actual params in PHPUnit tests (#11992) 2022-03-29 13:45:16 +08:00
William Cheng
e268f46d76
Test PHP client in Travis CI (#11996)
* test php in circleci node 2

* restore image

* install php 8.1.4

* install plugin

* install libonig-dev

* install libzip-dev

* test php in travis

* rehash
2022-03-29 13:43:38 +08:00
Yuriy Belenko
9ce3d2bc3e
Fix form serialization typo from #11225 (#11990) 2022-03-29 13:06:04 +08:00
William Cheng
69c69df5f2
[CircleCI] update image (#11929)
* use supported images from circleCI

* skip scala-httpclient test

* new way to install r

* skip r test

* test go only
2022-03-29 10:58:00 +08:00
Mikko Maunu
8493a4ed42
fix #11342 Use https://search.maven.org/ for Maven Central links (#11988) 2022-03-29 10:24:22 +08:00
Andriy Dmytruk
4cac09324e
[Micronaut] [Server] Add support for security roles with extension (#11995)
* Minor refactor for Micronaut generators

* Add support for security roles in micronaut server generator

* Micronaut Server Generator refactor the x-roles String variable
2022-03-29 10:20:25 +08:00
mkusaka
21c399f2b8
[typescript-fetch] Add stringEnums option (#11976)
* [typescript-fetch] add stringEnums option

* [typescript-fetch] add docs & samples

* [typescript-fetch] update samples

* [typescript-fetch] support 3.4 or lower version

* [typescript-fetch] update samples
2022-03-28 10:51:33 +02:00
William Cheng
115e363064 add links to blog post, youtube video 2022-03-28 13:30:21 +08:00
Yuriy Belenko
956ad2aecc
[php] Fix JSON object deserialization (#8481)
* Fix JSON object deserialization

* Revert "Fix JSON object deserialization"

This reverts commit 42a4637e53020d8d3e921f72bc66de9d4ccd8151.

* Add JSON body decoding before deserialize call

* Add two more json_decode calls

Co-authored-by: Thomas Hansen <thomas@thomasphansen.dk>
2022-03-28 11:09:37 +08:00
dependabot[bot]
081619eebe
Bump minimist from 1.2.0 to 1.2.6 in /website (#11971)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-27 23:00:36 +08:00
William Cheng
d86b4849b0
update parser to 2.0.31 (#11981) 2022-03-27 22:40:01 +08:00
William Cheng
6c1b68da91
[Java][okhttp-gson] better support for additional properties (#11964)
* add support for additiional properties in okhttp-gson java client

* deserialize with additional properties

* better handling of non-primitive type

* use entry set instead

* support disallowAdditionalPropertiesIfNotPresent

* remove additional properties in serialization
2022-03-27 16:56:25 +08:00
K Zhang
efefbaf7d8
[GoClient] Fixed StringIndexOutOfBoundsException when multiple properties has the same required $ref oneOf objects (#11973)
* Fixed StringIndexOutOfBoundsException when the object has multiple required fields has $ref to the same oneOf object

* fix bad depth

Co-authored-by: Kanda <kanda@synctera.com>
2022-03-27 15:12:59 +08:00
Hui Yu
0a9429f1a8
[C][Client] Free list or map memory when json parsing fails (#11866)
* [C][Client] Free list or map memory when json parsing fails

* [C][Client] Free list or map memory when json parsing fails (part 2)

* Note for unsupported data type
2022-03-27 14:58:45 +08:00
mkusaka
36453bcf88
fix docs example command option (#11978) 2022-03-27 14:43:38 +08:00
William Cheng
411f512fa0 remove PR checklist 4th item before the 6.0.0 release 2022-03-27 14:38:47 +08:00
Oleh Kurpiak
8103ccdfa7
[Java][Spring] default value for list parameter (#11961) 2022-03-26 10:30:55 +08:00
cachescrubber
50bf764268
Spring Boot Dependency Upgrade (#11960)
* Dependency management: Upgrade Managed Versions

* spring-boot: add optional classifier to spring-boot maven plugin configuration

* Upgrade to spring-boot 2.5.10

* Generate Samples

* Upgrade to Spring Boot 2.5.11 / 2.6.5

* Generate Samples
2022-03-26 10:23:25 +08:00
y-tomida
5fa08b9bc1
[Typescript-node] fix handling of --model-name-prefix|suffix options, second attempt (#11966)
* remove prefix and suffix from model before generate import path

* add testcases

* optimize import

* fix testcases
2022-03-25 07:34:11 +01:00
Esteban Gehring
db53fdffb2
Revert "[Typescript-node] fix handling of --model-name-prefix|suffix options (#11956)" (#11963)
This reverts commit 7cc995ab10ca607fa113650e311e50bd84d893fc.
2022-03-24 18:30:21 +01:00
y-tomida
7cc995ab10
[Typescript-node] fix handling of --model-name-prefix|suffix options (#11956)
* remove prefix and suffix from model before generate import path

* add testcases

* optimize import
2022-03-24 18:05:24 +01:00
Oleh Kurpiak
85df431ebf
Replace maps with models to reduce casting (#11913) 2022-03-25 00:48:41 +08:00
Martin Delille
eea5260208
Add documentation for scoop installation (#11948) 2022-03-25 00:45:33 +08:00
William Cheng
7370c4d3f8 update java samples 2022-03-25 00:42:07 +08:00
Daniel Qian
5581cbf03a
fix markdown table format (#11955)
origin:

Name | Value
-----|------
foo  | bar

after:

| Name | Value |
|------|-------|
|  foo |  bar  |
2022-03-25 00:34:51 +08:00
Cameron Koegel
2c4daeae0b
[Ruby] Added Support for Binary Media Data Return (#11254)
* update template files

* fixed binary data return

* update samples

* apply change to file download logic and regenerate samples
2022-03-23 21:19:31 +08:00
Yuriy Belenko
7b59e602ed
[php-slim4] Add lazy CORS implementation (#11941)
* Add lazy CORS implementation

While Slim4 doc applies CORS headers via middleware but their code team
member recommends to use custom response emitter.

Ref: https://github.com/slimphp/Slim/issues/2999#issuecomment-1066839414

* Refresh samples
2022-03-23 16:46:23 +08:00
Matthew Fernandez
61245fc52b
[Python] abbreviate dictionary membership testing idiom (#11905)
This is a more brief and efficient way of accomplishing the same thing.
2022-03-23 01:28:02 +08:00
dependabot[bot]
8580e9fcf8
Bump actions/cache from 2.1.7 to 3 (#11934)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 01:23:07 +08:00
Yuriy Belenko
4f9950bb2e
Update recommended .htaccess (#11939)
Used in current official Slim skeleton.
Ref: 037cfa2b68/public/.htaccess
2022-03-23 01:16:18 +08:00
Basil
196b9f266f
[php] use http_build_query for deepObject support (#11225)
* Update ObjectSerializer::toQueryValue method

It looks a bit ugly right now, but at least all tests has been passed.

* Add tests of query serialization

I used fixtures from OpenAPISpec main doc. Some prop combinations are not
officially documented yet, for instance behavior for nested objects and
arrays.

* Add test fixture from @nadar

* Add tests of Guzzle query build failure

* Add query build wrapper static method

Co-authored-by: Yuriy Belenko <yura-bely@mail.ru>
2022-03-22 12:56:15 +03:00
Justin Black
36f0dd026c
Only allow v3 input specs into python-experimental (#11931)
* Only allow v3 input specs into python-experimantal

* docs regenerated
2022-03-21 23:47:47 -07:00
Martin Winandy
7a78e350cc
Remove obsolete imports (#11899) 2022-03-21 18:19:31 +00:00
Oleh Kurpiak
2455c84943
[Java][Spring] Fix Array response (#11909) 2022-03-21 23:54:21 +08:00
Oren Samuel
5e32f0c366
[java][resttemplate] using uriBuilderFactory to encode all template values (#11922)
* issue 11921 - encode all template values

* add test for url and query param encoding
2022-03-21 23:42:56 +08:00
Ismael Barrera García
ba76ec9551
Potencial NullPointerException fixes (#11923)
* Update pom.xml

* Create build.yml

* Eliminación de posibles NullPointerException

* Delete build.yml

* Update pom.xml
2022-03-21 23:32:17 +08:00
Rafael González Castillero
e159919ba5
List/Map emptiness checking and stream variation (#11920)
I have changed the way to check for empty maps and lists, instead of checking if the size is greater than 0, It is more understandable and faster using !x.isEmpty() method. Also, instead of using stream().filter().findFirst().isPresent(), it is recomendable using its equivalent stream().anyMatch() which as well makes it easier to understand and efficient.
2022-03-21 23:30:43 +08:00
Stefan Nöbauer
0a48976ccb
[BUG] KOTLIN URI gerneration for URIs with default value misses the package info and uses wrong quotes. (#11493)
fixed generation of URI with default value
2022-03-21 14:57:19 +00:00
Akihito Nakano
5ee2de95ce
Remove ackintosh from core team and technical committee (#11928) 2022-03-21 16:09:37 +08:00
Oleh Kurpiak
8acc5023a8
[C#/.NET] remove duplicate CLI option (#11925) 2022-03-21 12:50:19 +08:00
William Cheng
f4700487f8
fix the exception in python flask option handling (#11916) 2022-03-21 11:07:46 +08:00
William Cheng
caa0ba0d6d
only support jdk8+ (#11917) 2022-03-21 11:07:31 +08:00
Jyhess
9ab664b1d5
Remove myself from Python community (#11919)
I'm no more developing on this technology.
2022-03-21 11:05:06 +08:00