William Cheng
22d21afceb
Fix boolean example value in ruby client generator ( #2431 )
...
* fix boolean example value in ruby
* update samples
2019-03-17 18:06:02 +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
William Cheng
7235e6d962
update petstore samples
2019-02-27 13:07:42 +08:00
Dec12 | Fujigon
aa339d6046
[core] add test cases for referenced enum case ( #2237 )
...
* add test case
* regenerate samples
2019-02-27 11:14:21 +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
alex-korobko
42544b8234
Issue 1766 Modified mustache files for Go to support nullable in the … ( #1869 )
...
* Issue 1766 Modified mustache files for Go to support nullable in the spec v3.0+; Updated model files running .sh scripts for Go.
* Add "nullable" to fake yaml
* Add sample script for OAS3
* Fix output folder (openapi3)
* Run bin/openapi3/go-petstore.sh
* Update samples
* Update jaxrs-jersey
* Update python and php samples
* Add bin/openapi3/go-gin-petstore-server.sh
* Run bin/openapi3/go-gin-petstore-server.sh
* Update bin/openapi3/go-petstore-server.sh to generate "nullable" samples
* Run bin/openapi3/go-petstore-server.sh
* Fix duplicated `import`
2019-02-15 11:08:52 +09:00
William Cheng
2eb99f602a
Add Bearer authentication support to Python client ( #1999 )
...
* add bearer auth support to python
* add bearer auth support to python
* update python oas2 petstore samples
* update samples
* add bearer format
* update php symfony samle
2019-01-30 22:16:53 +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
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 20a2bbc6fc .
2018-11-26 22:01:53 +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