William Cheng
bd329c13fb
update website ( #7655 )
2020-10-12 15:21:34 +08:00
Justin Black
8fd9991ec2
Adds isDateTime to CodegenModel ( #7657 )
...
This reverts commit 2ec96f7f9057ea67f7362d7d23d39a00e430410a.
2020-10-12 00:08:08 -07:00
Justin Black
2ec96f7f90
Revert "Adds isDateTime to CodegenModel"
...
This reverts commit 0a51c81f2e3e2ced000269868cbcf16a1f132d2b.
2020-10-11 21:14:35 -07:00
Justin Black
0a51c81f2e
Adds isDateTime to CodegenModel
2020-10-11 21:12:16 -07:00
William Cheng
874b4a6472
[Ruby] fix DateTime default value ( #7648 )
...
* fix ruby default datetime value
* update samples for testing
* use datetime parse
* use Date.parse
* revert changes to spec
2020-10-12 11:49:03 +08:00
Justin Black
ee2a7352a1
Adds isDate to CodegenModel, adds test, adds isDate getter and setter to IJsonSchemaValidationProperties ( #7652 )
2020-10-11 11:06:47 -07:00
William Cheng
b208a311db
[C#][netcore] Rename HTTPSigningConfiguration.cs to HttpSigningConfiguration.cs ( #7630 )
...
* rename HTTPSigningConfiguration.cs to HttpSigningConfiguration.cs
* update samples
* minor change
2020-10-11 12:25:38 +08:00
William Cheng
b0fa00b860
Fix typos in templating.md ( #7646 )
2020-10-11 11:12:35 +08:00
agilob
25d10bb6cc
[dart] Move dart-dio to sit with other dart configs ( #7593 )
...
* Move dart-dio to other dart configs
* Run ./bin/generate-samples.sh
2020-10-10 18:22:52 +08:00
William Cheng
4acc8eab45
[C#][netcore] Add discriminator support to oneOf lookup ( #7626 )
...
* add discriminator support to oneOf lookup
* fix type check, removed unused code
* fix type check
* add options
* setLegacyDiscriminatorBehavior
* fix typo
* replace break with return
* use packageName
2020-10-10 18:20:30 +08:00
William Cheng
931c4e361f
update samples
2020-10-10 17:10:32 +08:00
Michael Ramstein
242f648379
[Elixir] Fixes Typespec for multiple return definitions ( #7604 )
...
* Respects multiple responses during typespec generation
* Generate Samples
2020-10-10 11:18:04 +08:00
Vlastimil Šenfeld
53fb864c66
fix comment typo ( #7605 )
2020-10-10 11:12:55 +08:00
Noor Dawod
2984497731
Upgrade Dart2 template to advertised best-practices, plenty of additions too. ( #7585 )
...
* Updated Dart2 template.
* Generated Petstore client code for Dart2.
* Use double-quotes instead of single-quotes, to be consistent with output of Dart generator.
* Updated Petstore samples.
* Wrap few more places with triple curly parentheses.
* Generated Petstore files.
* Revert to using single quotes, fix Java generator too.
* Generated Petstore files.
* Lower case the content type value.
* Only lower-case content type when checking its value.
* Generated files from running "./bin/utils/ensure-up-to-date".
* Remove outdated comments for Dart1.
* Regenerate Petstore samples for Dart.
* Added a new option "pubLibrary".
* Added support for (de)serializing a DateTime into an epoch value.
* Make client variable a getter/setter, adjust docs.
* Fixed a small error in class template.
* Fix Dart documentation in API classes.
* Simplify test in HTTP Basic auth, remove unused lint rule.
2020-10-10 11:08:58 +08:00
Ghufran Zahidi
c6ab073a29
Fixed the empty string issue when server returns null ( #7633 )
2020-10-10 10:15:58 +08:00
Phillip Verheyden
214d81553f
Fix typos in Javascript test clients ( #7642 )
...
Looks like this did not get propagated to these other JS clients from the original at 90859575ebfea800dde93a498e1439011963d6cf
2020-10-10 10:15:14 +08:00
Phillip Verheyden
86fd8b1aa4
Add AnyType mapping of Object to Javascript codegen ( #7643 )
...
Resolves problems related to '....Module not found: Error: Can't resolve './AnyType' in...' errors when attempting to use generated Javascript code
2020-10-10 10:09:23 +08:00
Maksym Melnychok
8416fff568
[python-experimental] implement in
operator for model classes ( #7637 )
...
* implement operator for model classes
* refresh samples
2020-10-09 10:38:15 -07:00
Michael Ramstein
690be29f4b
[Elixir] Fixes optional body mapping ( #7606 )
...
* Fixes optional body issue
* Generate Samples
2020-10-09 17:21:35 +08:00
William Cheng
fe31b9e2ce
java jersey2: remove trailing whitespaces ( #7632 )
2020-10-09 17:11:23 +08:00
Lukáš Vasek
157c01d031
Fix scopes generation for multiple oauth flows ( #7615 )
...
* Fixed generation of oauth2 scopes for multiple oauth2 flows
* Fixed locale in string format
Co-authored-by: Jim Schubert <james.schubert@gmail.com>
2020-10-08 23:15:58 -04:00
William Cheng
44f713fc34
update tests with newer syntax ( #7624 )
2020-10-09 10:36:39 +08:00
Justin Black
d5002f4beb
Adds missing items property to Java classes which store Schema info ( #7621 )
...
* Adds items getter and setter in IJsonSchemaValidationProperties
* Adds isModel interface
* Reverts file
* Fixes issue_7613.yaml schema for /array_with_validations_in_items/{items} response body
* Adds isModel to CodegenModel hash and print and comparison
* Updates CodegenResponse hash and comparison and print
2020-10-08 08:45:20 -07:00
William Cheng
3d36d491df
replace tab with spaces ( #7625 )
2020-10-08 23:00:36 +08:00
William Cheng
001533fa63
fix warnings in HTTPSigningConfiguration ( #7628 )
2020-10-08 22:58:59 +08:00
William Cheng
a1c8e248e7
[C#][netcore] Add oneOf support to C# .NET Core client ( #7607 )
...
* add oneOf support to c# netcore
* add oneof support to c# netcore client
* update samples
* remove unused file
* add oneof support to response in api client
* add oneof support to serialize
* update samples
* fix actual instance, add more tests
* fix oneof handling in api client
* update tests
2020-10-08 15:46:36 +08:00
Rocky Warren
8d0053fa9f
[typescript-axios]: Only call JSON.stringify
on JSON request bodies ( #7580 )
...
* [typescript-axios]: Only serialize JSON request bodies
* Remove Regex and instead add a method in Configuration class
* Update samples
2020-10-08 08:15:42 +02:00
Justin Black
bbf9c30c7a
Runs ensure up to date ( #7622 )
2020-10-07 19:21:06 -07:00
Justin Black
1c3d6e5e6f
Revert "Adds ensure-up-to-date changes'"
...
This reverts commit 5fce12321e408b97d6f43b05a0edd3967a1ef4c0.
2020-10-07 19:09:38 -07:00
Justin Black
5fce12321e
Adds ensure-up-to-date changes'
2020-10-07 19:03:39 -07:00
William Cheng
d8ba49b267
default OverrideSpecifiedNames to false ( #7583 )
2020-10-07 15:54:00 +08:00
Dalibor Karlović
b1da09625d
[PHP] Small tweaks for php generator, PHPStan level 1 ( #7528 )
...
* Small tweaks for php generator, PHPStan level 1
Co-authored-by: Yuriy Belenko <yura-bely@mail.ru>
2020-10-07 09:21:24 +03:00
Tomohiro Suwa
08a1bdcb57
[Ruby] Feature/ruby client build from hash nullable array ( #7609 )
...
* Ruby Client: nullable build_from_hash for array type
* Genearte samples with 8217ecaeb
2020-10-07 02:14:56 +09:00
Hippolyte HENRY
cad0161f7e
[ruby] fix default value for referenced schemas and enums ( #7611 )
...
* [ruby] fix default value for referenced schemas and enums
* generate samples
2020-10-07 01:27:41 +09:00
Guillaume GILL
9236d5699d
Expose batch subcommand ( #7608 )
...
Co-authored-by: Guillaume GILL <g.gill@oceasoft.com>
2020-10-05 20:11:30 -04:00
Matthew Dowdell
8c11c8f582
[Rust Server] Fix server example on non-Linux ( #7399 )
...
* [Rust Server] Fix server example on non-Linux
The server example is broken because it tries to import `use openssl::ssl::SslAcceptorBuilder;` unconditionally when it won't be present on MacOS, Windows or iOS and then conditionally provides `create` causing compile errors on the aforementioned platforms.
To fix, we simply move the condition from the function to the import and all is happy again :)
* Update Samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-10-05 21:54:50 +01:00
agilob
ae95c2b19b
Generate docs on 4 threads ( #7586 )
2020-10-05 23:31:51 +08:00
Jim Schubert
c0553ddc37
[bug][kotlin] Better escaping of var names ( #7598 )
2020-10-05 21:03:01 +08:00
henryh-force
e9c6d65f2d
Updated keywords to be aligned with website https://developer.salesfo … ( #7522 )
...
* Updated keywords to be aligned with website https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_reserved_words.htm
* [samples] Regenerate
Co-authored-by: Jim Schubert <james.schubert@gmail.com>
2020-10-05 21:00:23 +08:00
William Cheng
8c17a01bda
add anytype support to c# generators ( #7599 )
2020-10-05 20:58:51 +08:00
agilob
0e1d131076
Remove redundant browserClient ( #7595 )
2020-10-05 13:39:38 +08:00
agilob
61b543f03d
[Dart] Removal of deprecated Dart generators and generated code ( #7568 )
...
* Remove old dart generated code
* Remove uses of SUPPORT_DART2
* Remove dart1 only flag BROWSER_CLIENT
* Remove supportDart2 and browserClient from docs
* Revert removal of credits of dart(1)
* Update getHelp in dartcodegen
2020-10-04 16:21:08 +08:00
William Cheng
4bde3a12d1
[C#][netcore] Add IsRequired
to the model properties ( #7590 )
...
* add IsRequired to c# model properties
* add deserialization tests for pet
* revise test
2020-10-04 16:19:30 +08:00
Kuzma
4e5ecf271a
[Python] correct return types if multiple responses are defined ( #7427 )
...
* update python mustache templates
* bug fix
* rm response_type
* generated samples
* resolve conflict
* samples
* set None if a type is empty
* regenerated samples
2020-10-03 08:37:08 -07:00
Sanjin Celeski
48762b5d4e
Add TribalScale to the user list ( #7579 )
...
Co-authored-by: Sanjin Celeski <celeski.sanjin@gmail.com>
2020-10-02 15:49:29 -04:00
William Cheng
3560cd252b
Add link to a blog post on generating Angular client ( #7578 )
...
Add link to a blog post on generating Angular client
2020-10-02 20:10:50 +08:00
William Cheng
a287c51b97
update default faraday versions ( #7538 )
2020-10-02 18:46:49 +08:00
Alexander Smaga
bb4e0c0058
[php][bug] Fix offsetGet in model generic to return offset rather than bool|null ( #7571 )
2020-10-01 22:15:05 -04:00
Jim Schubert
6ade544904
[ci] Clarify wording in ensure script output ( #7512 )
2020-10-01 22:06:35 -04:00
Jim Schubert
150e24dc55
[maven] environmentVariables -> globalProperties ( #7559 )
2020-10-01 21:33:17 -04:00