wing328
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +08:00
Benjamin Douglas
9058099e5b
Add alias type definitions for Java
...
When a spec defines a Model at the top level that is a non-aggretate type (such
as string, number or boolean), it essentially represents an alias for the simple
type. For example, the following spec snippet creates an alias of the boolean
type that for all intents and purposes acts just like a regular boolean.
definitions:
JustABoolean:
type: boolean
This can be modeled in some languages through built-in mechanisms, such as
typedefs in C++. Java, however, just not have a clean way of representing this.
This change introduces an internal mechanism for representing aliases. It
maintains a map in DefaultCodegen that tracks these types of definitions, and
wherever it sees the "JustABoolean" type in the spec, it generates code that
uses the built-in "Boolean" instead.
This functionality currenlty only applies to Java, but could be extended to
other languages later.
The change adds a few examples of this to the fake endpoint spec for testing,
which means all of the samples change as well.
2017-04-17 12:58:31 -07:00
tbe
d59ac2ae65
[Perl] remove singleton ( #5353 )
...
- removed Singleton from ApiClient
fixes #5336
2017-04-10 22:52:32 +08:00
wing328
cf8a9a0de0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-03 14:54:50 +08:00
Paŭlo Ebermann
ce41a343d8
Updating all samples (except feign) ( #5281 )
2017-04-02 17:01:15 +08:00
wing328
ad4de91d92
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-30 09:57:07 +08:00
Paŭlo Ebermann
db71d97370
Updating samples after #5232 . ( #5243 )
...
* Updating samples after #5232 .
* Fix tests after #5232 .
* Fix Javascript client tests.
* JaxRS server: set serverPort only when not given from outside.
* Update JaxRS sample creator scripts to fix serverPort.
* Preliminary test fix for JaxRS server generators.
* Updating samples for JaxRS with Jersey1/2.
* Updating JaxRS samples again.
2017-03-30 01:28:53 +08:00
Paŭlo Ebermann
3a48ba8bfd
Update all the samples.
...
(except clojure + scalatra, because those are broken, will fixed with later master merge.)
2017-03-13 19:50:10 +01:00
wing328
4d19fb6b2f
hide generation timestamp for perl ( #4614 )
2017-01-21 19:12:51 +08:00
wing328
90512e6326
Remove Apache license from API client generators ( #4197 )
...
* remove php apache license
* remove apache license from C#
* remove apache license in objc code
* remove license from swift 3 code
* remove apache license from perl code
* remove license from scala code
* remove license from ts, go, android, cpp, scala
* remove license from java api client
* restore clojure petstore files
* remove license from travis file
* clean up apache-related terms in php, ruby, python mustache tempaltes
* remove license from JS API cilent
2016-11-16 21:44:49 +08:00
Ville Skyttä
2fbec6d9eb
Spelling fixes
2016-08-28 17:05:34 +03:00
wing328
72d0cd7eb4
update petl sample
2016-08-28 15:57:50 +08:00
wing328
02864ed31a
better code injectino handling for perl client
2016-06-28 16:37:33 +08:00
wing328
7de95c52c1
add apache 2.0 license to perl api client
2016-06-10 22:43:56 +08:00
wing328
aa04bbb92e
update pet store test case for perl after switching spec
2016-04-14 16:19:39 +08:00
wing328
16a20f6194
update perl indention
2016-04-12 14:51:18 +08:00
wing328
1c14fc7291
fix perl indention
2016-04-11 20:34:06 +08:00
wing328
44a4219e3e
fix swift mapping with int and number
2016-04-11 19:37:56 +08:00
wing328
20f1e97df3
fix typo in readme
2016-03-30 20:58:18 +08:00
wing328
b1cde11382
update readme with better app description
2016-03-19 17:46:28 +08:00
wing328
6e16883146
update perl documentation
2016-03-19 16:38:06 +08:00
wing328
db4218a06f
rpelace api with api_instance
2016-03-17 15:44:07 +08:00
wing328
035b27ad83
add getting start section for perl
2016-03-17 15:07:57 +08:00
wing328
2067e993bb
add default value to docstring in perl
2016-03-17 14:27:20 +08:00
wing328
47bb5689d9
better hanlding of model name starting with number
2016-03-17 11:49:06 +08:00
wing328
c101c1204e
add php documentation
2016-03-16 16:14:04 +08:00
wing328
7b31dabe77
fix perl, ruby auth doc in readme
2016-03-16 14:58:19 +08:00
wing328
7f6069f255
add auth sample code to perl, add links to readme, etc
2016-03-13 22:43:46 +08:00
wing328
637bdd2f50
add git_push and gitignore to most client generators
2016-03-12 17:35:25 +08:00
wing328
2c5be10589
add git push script to perl
2016-03-11 16:25:45 +08:00
wing328
3bebbada98
fix command line, update git_push.sh
2016-03-11 14:50:03 +08:00
wing328
4d023e9b92
add release support
2016-03-10 23:11:08 +08:00
wing328
7dff26912a
fix link to file, add .gitignore
2016-03-09 16:21:51 +08:00
wing328
df61aa1a14
add auth setting to perl doc
2016-03-08 20:07:46 +08:00
wing328
9c7316d77a
fix return type in perl doc
2016-03-08 16:55:17 +08:00
wing328
4ec8003ab5
add isPrimitiveType,baseType to parameter
2016-03-08 16:24:16 +08:00
wing328
1b652dab5e
fix MD in perl doc
2016-03-08 16:24:16 +08:00
wing328
855f46fed0
add api and model documentation
2016-03-08 16:24:16 +08:00
wing328
e5ed295a78
add example to codegen parameter
2016-03-08 16:24:16 +08:00
wing328
7d642b28b9
add doc for api method
2016-03-08 16:24:16 +08:00
wing328
e0b16151f4
better model name for perl
2016-03-04 14:39:28 +08:00
wing328
7e63226ed4
update wording for test file, minor tweats to petstore test
2016-03-03 20:19:37 +08:00
wing328
5db16325d4
update perl model to support prefix and suffix
2016-02-27 21:47:07 +08:00
wing328
2ed02ee187
better handling of reserved keyword in perl
2016-02-24 21:57:29 +08:00
wing328
3d9a331666
automaticallay generate test cases for Perl
2016-02-11 08:24:51 +08:00
wing328
bfc83b330f
fix indent, update perl & python sample
2016-01-17 19:32:50 +08:00
wing328
bfb8cdce2e
fix another replaceall in perl codegen
2016-01-15 16:03:35 +08:00
wing328
cbbb48a4e4
fix file.separator in replaceall (perl)
2016-01-15 15:47:40 +08:00
David Bartle
99842f646f
more flexible perl module naming
...
- No more presuming 'WWW::' is at the beginning
(default is now "WWW::SwaggerClient" vs "SwaggerClient" in order
to accomodate)
- Test that module names Like::This write to the filesystem and in
the mustache templates properly
2016-01-04 20:38:07 -08:00
Ron
9a54371ca9
Swagger Spec -> OpenAPI Spec
2015-12-30 14:52:15 -08:00