Jérémie Bresson
dc81574f2b
Update version to 4.0.2-SNAPSHOT ( #3047 )
...
* Update version to 4.0.2-SNAPSHOT
* Update samples
* Change AppVeyor script (test of gradle sample)
* Fix release version bump script (gradle plugin, sample poms)
* Include sonatype snapshots in maven examples which reference 4.0.2-SNAPSHOT
2019-06-01 21:32:44 -04:00
William Cheng
94fc0474b9
update version 5.0.0-snapshot and samples
2019-05-15 01:54:29 +08:00
William Cheng
24187b8186
update petstore samples
2019-05-15 00:10:03 +08:00
William Cheng
cbe39ba881
Set version to 4.0.1-SNAPSHOT ( #2882 )
2019-05-14 10:28:32 +02:00
William Cheng
dc0c24b955
Minor wording change ( #2875 )
...
* better wording for version of openapi doc
* update petstore samples
2019-05-13 15:59:59 +08:00
Matthieu Berthomé
ee43cc1520
handle composed schemas in InlineModelResolver ( #2112 )
...
* handle composed schemas in InlineModelResolver
* fix unit test -> TestUtils.parseSpec
* update samples
* fix samples
* update samples
* update samples
* add new files
2019-05-08 10:19:15 +08:00
ota42y
044961f481
Pass opts argument to api client in ruby-client ( #2754 )
...
* Pass opts argument to api client in ruby-client
We want to change the option when debugging, changing timeout to specific api, etc...
So we want to merge and pass options to api client.
* fix ruby-client
* fix openapi ruby-client
* fix typo
* fix template
2019-04-28 18:44:24 +09:00
Akira Tanimura
033ab8a6f5
[Ruby] Use Integer instead of Fixnum in Ruby client ( #2475 ) ( #2481 )
...
* use Integer instead of Fixnum in Ruby client (#2475 )
* update samples (#2475 )
2019-03-23 18:48:10 +08:00
Akihito Nakano
77545df80d
Add RuboCop to Gemfile ( #2464 )
...
* Add Rubocop
* Update samples
./bin/openapi3/ruby-client-petstore.sh
./bin/ruby-client-petstore.sh
2019-03-21 22:00:08 +08:00
Justin Black
b67318ef21
Adds spec additionalProperties + nullable examples ( #2405 )
...
* Adds v2 spec additionalproperties examples, adds v3 spec nulllable model example, updates samples
* Remaining samples updates
* Adds csharp generator update to handle models with multilevel parent types, which works for the AdditionalPropertiesObject model, samples updated
2019-03-20 15:31:28 +08:00
Akira Tanimura
40253a5b82
[Ruby] Fix type mapping for Ruby ( #2385 ) ( #2386 )
...
* maps 'boolean' to 'Boolean' in Ruby (#2385 )
* update Ruby client samples (#2385 )
2019-03-17 11:07:00 +08:00
ota42y
fcfe687f19
Outputs dataType to YARD tag ( #2329 )
...
* output dataType to YARD tag
YARD supports parameter type tag.
https://www.rubydoc.info/gems/yard/file/docs/Tags.md#param
We can use `dataType` as parameter type.
So it's very useful to output `dataType`.
* update samples
2019-03-13 00:17:49 +08:00
William Cheng
9e2a9e1515
[Ruby] various improvements ( #2226 )
...
* add to_s in api error class
* rename variable to align with code sample
* fix initalize, better validation
* update petstore samples
* add code sample for model
* add auto-generated travis file
* improve error message
* add travis file
* uncomment to_s
2019-02-27 03:38:20 +08:00
Akira Tanimura
8d6278bd4c
[Ruby] Fix regualr expression in error message ( #2069 ) ( #2139 )
...
* Fix usage of regular expression literals in Ruby client (#2069 )
* update samples of Ruby client (#2069 )
2019-02-18 21:18:55 +08:00
Akira Tanimura
33a8939bd5
[Ruby] Fix enum expansion in Ruby client ( #2081 ) ( #2104 )
...
* use double-quote string for enum value (#2081 )
* use enumVars in templates for Ruby client (#2081 )
* delete unnecessary line in enum model of Ruby client (#2081 )
* update samples of Ruby client (#2081 )
2019-02-12 00:32:36 +08:00
Akira Tanimura
7dcffff20b
[Ruby] Fix Ruby client to prevent Rubocop's rule violations ( #2100 ) ( #2102 )
...
* [Ruby] Delete empty lines and trailing newline in template to prevent Rubocop's rule violation (#2100 )
* [Ruby] update samples of Ruby client (#2100 )
2019-02-10 09:29:34 +09:00
autopp
28768244d6
[Ruby] Use double-quote string to enable string interpolation ( #2067 ) ( #2068 )
2019-02-06 14:59:54 +08:00
William Cheng
9029103c94
fix index check, add test cases ( #1993 )
2019-01-27 21:18:20 +08:00
Justin Black
9ec594eec5
[Spec] adds XmlItem model and route for xml testing ( #1883 )
...
* Adds xmlitem model and route, rest-assured Api suffix fix, updates pytest and pytest-cov versions
* Adds python client sample files
* Adds samples update
* Adds rest-assured sample client update
* Adds sample updates in ensure-up-to-date
* Changes rest-assured files back to master version, removes fix for issue #13
* Updates samples
2019-01-26 17:26:38 +08:00
William Cheng
b87a507a13
update samples
2019-01-09 15:57:31 +08:00
Justin Black
539ec23298
[python-client] Add model default values ( #1776 )
...
* Adds two models to the v2.0 spec, uses examples as defaults in python client
* Adds array default and type_holder_default and type_holder_example tests
* Re-generated python security client with ./bin/security/python-petstore.sh
* Changes comment text, rebased master
* Updates client + server samples
* Adds missing samples updates
* Changes python client to look for true or false with booleans in toDefaultValue
* Changes boolean casting to use Boolean.valueOf
* Adds deserialization fix for python tests
* Changes Mock to namedtuple in python deserialization tests
* Actually remove unittest.mock
2019-01-09 11:18:35 +08:00
William Cheng
d35f4b08d9
Fix various typos in the templates (Ruby, C#) ( #1803 )
...
* Fix typos
* update petstore samples
2019-01-05 09:39:10 +08:00
William Cheng
0dee995ebb
Fix discriminator name not following variable naming convention ( #1742 )
...
* fix discrimintator name not following variable naming convention
* fix test
* update samples
* use discriminator name directly in php
* single quote array index
2018-12-24 10:17:43 +08:00
Jérémie Bresson
a7dfc650b6
Swagger parser update: 2.0.8-OpenAPITools.org-1 ( #1721 )
...
* Update Swagger-Parser Version
* Update samples
* surpress javadoc warning
* fix TS tests
* Set version to 2.0.8-OpenAPITools.org-1
2018-12-22 18:12:08 +08:00
meganemura
82fcde1d91
Improve model class of ruby-client ( #1670 )
...
* Add Model.build_from_hash
* Use Model.build_from_hash instead of Model.new.build_from_hash
* Update sample for ruby-client
* Update sample for openapi3 ruby-client
2018-12-15 16:24:03 +08:00
William Cheng
8c599ebf12
Add support for multiple inheritance ( #1664 )
...
* add all parent names
* clean up supportsInheritance
* fix npe
* fix allVars, fix test cases
* add more tests, remove comments
* update docker m2 cache dir, add more tests, fix mandatory
* update samples
* regenerate js spec files
* add logic to detect self reference
* add isSelfReference flag to codegen property
* add ruby tests for cat model
* remove debugging info
* fix JS allvars not have x-js-doctype
* update samples
* update js samples
2018-12-15 00:24:36 +08:00
William Cheng
774013c7e1
Better OpenAPI spec v3 support: allOf, anyOf, oneOf ( #1360 )
...
* add oneOf support to Ruby
* add anyOf support to ruby client
* add discriminator support to ruby client
* fix typo
* update samples, fix NPE
* better format in ruby generator
* fix test cases, disable mapping test
* fix update script, update samples
* add test, fix mapping
* update exit code
* reenabled discriminator test
* remove duplicated properties
* add test for duplicated properties
* update samples, add new spec
* fix ruby test cases
* fix hasMore after removing duplicates
* refactor method, comment out haskell client test
* fix hasMore and update samples
* fix parent detection
* fix discriminator check
* [haskell-http-client] need to use {{vars}}{{required}} instead of {{requiredVars}}
* remove deprecated methods in default codegen (#1031 )
* regenerate samples
* remove commented code
2018-12-07 00:30:20 +08:00
William Cheng
b226f52d13
Merge remote-tracking branch 'origin' into 4.0.x
2018-11-30 10:16:16 +08:00
meganemura
ebf67e683c
Fix regexp in ruby-client ( #1521 )
...
* Fix regexp in ruby-client
* Remove tests for unknown regexp patterns
2018-11-28 16:40:58 +08:00
William Cheng
46a4ffe64c
Skip model generation if it's a top-level map or array ( #1296 )
...
* update samples
* remove string boolean map spec
* add logic to skip array alias being generated as model
* fix alias to array
* remove unused ruby files
* remove unused ruby (oas3) files
* unalias response schema
* fix NPE when no model defined
* fix ruby openapi3 script
* update samples
* add global openapi, schemas for unaliasing
* minor code cleanup/refactoring using globalSchemas
* Revert "minor code cleanup/refactoring using globalSchemas"
This reverts commit 20a2bbc6fc4267a0e0768dcf5f15d4194ce9647b.
2018-11-26 22:01:53 +08:00
William Cheng
7db12aa4af
Merge remote-tracking branch 'origin' into 4.0.x
2018-11-24 17:48:17 +08:00
meganemura
b9949e1a8e
Generate a ruby-client sample for OpenAPI 2.0 ( #1482 )
...
* Move output directory for bin/openapi3/ruby-client-petstore.sh
$ git mv sample/client/petstore/ruby sample/openapi3/client/petstore/ruby-client
* $ bin/ruby-client-petstore.sh
* Run bin/ruby-client-petstore.sh in bin/utils/ensure-up-to-date
2018-11-19 17:02:19 +08:00
William Cheng
2bcf5b2263
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-15 17:49:44 +08:00
William Cheng
a87a544bf5
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-15 17:11:01 +08:00
William Cheng
8d9542207a
Prepare 3.3.4 snapshot ( #1450 )
...
* change version to 3.3.4-snapshot
* updat readme
* update samples
2018-11-15 16:21:15 +08:00
meganemura
9db62f459a
Fix return_type parameter examples in ruby-client ( #1399 )
...
* Fix return_type parameter examples
* $ bin/openapi3/ruby-client-petstore.sh
2018-11-12 14:26:05 +08:00
William Cheng
c7349c7f88
Add top level x-group-parameters support ( #1405 )
...
* add top level x-group-parameters support
* update petstore samples
2018-11-12 14:25:32 +08:00
William Cheng
e6c97a1bc1
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-08 18:18:12 +08:00
William Cheng
a186efed35
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-08 18:17:29 +08:00
Guy Gershoni
0e2e1bf715
Added tests and fix for issue #1392 . Fix regex generated in Ruby client. ( #1393 )
...
* Added tests and fix for issue #1392 . Param validation with regex not recognizing \d correctly in Ruby client.
* Added generated files to pass ./bin/utils/ensure-up-to-date which is run by circleci
2018-11-07 12:08:23 +08:00
William Cheng
02e85cc417
Prepare v3.3.3-SNAPSHOT ( #1355 )
...
* prepare 3.3.3-snapshot
* update petstore samples
2018-11-01 10:42:26 +08:00
William Cheng
aced89ff8b
Add group parameter support to PHP client ( #1337 )
...
* add group parameter support to php template
* more update for group parameter
* fix call to protect function
* fix missing $
* update based on feedback
* create fake endpoint to test group parameters
* sync fake petstore spec v2, v3
* fix php doc for group parameters
* update petstore samples
* update fake petstore spec v2
* update petstore samples
* fix spec and update samples
2018-10-29 15:42:32 +08:00
William Cheng
ceffdde2c0
update samples
2018-10-26 23:27:06 +08:00
William Cheng
71ecee02e9
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-10-26 23:13:28 +08:00
William Cheng
ef98971746
update samples
2018-10-26 21:43:38 +08:00
William Cheng
3482a0a993
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-10-26 21:04:25 +08:00
William Cheng
4a47acce19
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-10-26 18:41:58 +08:00
William Cheng
9422dea149
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-10-26 18:40:37 +08:00
William Cheng
76aedca6b2
Update test spec to use "localhost" instead ( #1300 )
...
* update test spec to use localhost intead
* add new files
2018-10-24 13:56:39 +08:00
William Cheng
3d7a019524
update samples and reenable ensure-up-to-date ( #1304 )
2018-10-24 13:56:24 +08:00