Commit Graph

12132 Commits

Author SHA1 Message Date
Richard Whitehouse
a4be2c0bb4 Remove -XX:MaxPermSize (#2712)
This was removed in JDK 8 and produces a warning
2019-04-23 11:34:01 +08:00
William Cheng
ff556609c7
Remove setting generateAliasAsModel in rust server generator (#2714)
* remove setting generateAliasAsModel in rust server

* update rust server samples

* update doc
2019-04-23 03:03:15 +08:00
William Cheng
c4563009c7 update rust server samples 2019-04-22 22:27:55 +08:00
William Cheng
8408e0235b Revert "update rust samples"
This reverts commit f83d09fc01.
2019-04-22 22:26:33 +08:00
William Cheng
f83d09fc01 update rust samples 2019-04-22 21:57:31 +08:00
William Cheng
fab980cf79 update samples 2019-04-22 13:57:59 +08:00
Richard Whitehouse
f14bac8d7d [Rust Server] Improve XML support (#2504)
- Restore XML namespace support

- Remove non snake case rust warning for xml wrap_in methods

- Add XML rust-server tests

- Fix wrapping XML arrays when a property of another object

- Run all tests, not just those for OpenAPI 2.0

- Force wrapping for rust-server
2019-04-22 12:05:40 +08:00
Sebastien Arod
8344102341 Improve CONTRIBUTING.md (#2699)
* Improve CONTRIBUTING.md

Indicate that bin/openapi3 scripts should be executed too.

Try to clarify how to run tests:
* use in sample a client for which tests exist
* explain where to run the command and how to find the artifactId

* Update contributing.md by running copy-to-website
2019-04-22 11:53:56 +08:00
Akihito Nakano
22f7cec552 [PHP][Lumen] Rename template folder (#2707)
* Rename template folder: lumen -> php-lumen

* Update a folder name for "-t"

* Rename script name: lumen-... -> php-lumen...

* Update templateDir

* Update samples

- ./bin/php-lumen-petstore-server.sh
- ./bin/openapi3/php-lumen-petstore-server.sh

* Update samples

./bin/php-lumen-petstore-server.sh
2019-04-22 11:26:19 +08:00
Amit Joshi
1e4f4ab9f2 [aspnetcore] Support async tasks and some code cleanups (#2629)
* Add first cutasync support and small cleanups

* Add apiPackage, modePacke to use for namespaces, for library don't generate wwwroot and dont make model class partial and default to no swashbuckle,  , workarodun empty string cliOption

* Update docs

* Don't add async for library

* Fix generated program for async and task

* Default models names space should be <package>.Models

* Remove commented out code

* Remove unnecessary code, fix a comparison and add an else fo an if statment.

* Update docs
2019-04-20 00:32:04 +08:00
SalDiAngelus
89eb603c17 [C++][Pistache] Fixed #2643 (#2653)
* Fixed #2643

Refactored to/from json functions to use universal object serialization method.

* Code review found incorrect indenting and I forgot to remove unused mustache files.

* Removed helpers class because it is not needed anymore.

* Removed helpers package from docs.

* Reverted helper class removal.
2019-04-19 14:00:12 +02:00
William Cheng
cce35d75a4
update petstore samples (#2697) 2019-04-19 15:23:57 +08:00
Hugo Barrigas
d6306d8fee [JAVA][Webclient]fix select body for url encoded media type. (#2686)
* fix select body for url encoded media type.

* run bin.
2019-04-19 14:46:28 +08:00
ota42y
c797073858 Add RubyKaigi 2019 presentation (#2693)
* Add RubyKaigi 2019 presentation

I talked "How to use OpenAPI3 for API developer" in RubyKaigi 2019
These are the topics of OpenAPI Generator

* Add the conference name
2019-04-19 13:49:41 +09:00
Vincent Devos
8c66d78967 [Typescript] Change npm package name in samples (#2688)
* [Typescript] Change npm package name in samples

swagger to openapitools

* fix indentation in typescript rxjs package
2019-04-18 18:58:41 +08:00
Thibault Duperron
14215ba554 Fix json polymorphism jaxRS (#2602)
* Fix json polymorphism jaxRS

Fix #2576

* Samples
2019-04-18 16:01:46 +08:00
tanmen
ff0d4eb8d7 Add nullable array support in spring (#2660)
* Add nullable support in spring

* fix forgot unescape defaultValue

* Fix syntax error
2019-04-18 11:05:18 +08:00
Lukas S
e17890d526 [typescript-fetch] Double ampersand in query string with empty nested object (#2679)
* [typescript-fetch] Filter empty parts from querystring before joining with '&'

* [typescript-fetch] Update samples
2019-04-18 11:04:35 +08:00
William Cheng
6a11a107d1 disable scala-akka tests 2019-04-17 15:19:14 +08:00
Joël Vimenet
d518407471 Add scala-akka tests (#2650) 2019-04-17 15:18:03 +08:00
William Cheng
5ff5ea58c8
add TS-RXJS client to Travis CI (#2683) 2019-04-17 13:19:11 +08:00
Vincent Devos
8291132141 [TypeScript Angular] update ngpackagr (#2677) 2019-04-17 12:36:33 +08:00
Bernd
719bea8303 [typescript-rxjs] fix samples and invalid package.json (#2674)
* fix(typescript-rxjs): invalid package.json, align typescript version with rxjs

* feat(typescript-rxjs): regenereate samples
2019-04-17 12:18:13 +08:00
Vincent Devos
572494ce44 [TypeScript] fix single quote in enums not escaped (#2665)
* [TypeScript] fix single quote in enums not escaped

* [TypeScript] remove useless override in some CodeGen TypeScript class generator
2019-04-17 11:00:03 +08:00
Paul Mundt
c08c45de05 dart2 linter updates for prefer_equal_for_default_values, prefer_is_empty (#2654)
* Use isNotEmpty instead of length in dart2 validity checks

In dart2 the preferred method of checking whether an object is empty or
not is to use the .isNotEmpty property. An aspect that is now warned
about by the linter.

While not an issue in this particular case - testing length can also
have negative performance implications for Iterable collections, which
are not required to know or provide their length deterministically.

* Prefer equals for default values in dart2

The dart2 linter complains about m({a: 1}) style assignments, preferring
m({a = 1}) instead. Update the api_client generation to follow this.

* Regenerate dart2 samples for mustache template changes
2019-04-17 10:57:06 +08:00
Philipp Paris
e75c8eebc5 fix #2663 equals/hashCode methods in POJOs ignore parent variables (#2664)
[jaxrs-spec] equals/hashCode methods in POJOs ignore parent variables
2019-04-17 10:51:26 +08:00
Tim Bedard
3d92ea0eda [Bug] [Python] Fix #2092 python docs example quoting (#2669)
* replaced setParameterExampleValue method

* removed old method

* fixed bool, test fix for objects

* continued fix

* double override

* regenerated petstore client

* regenerated oas3 sample

* updated asyncio and tornado generated clients for CI
2019-04-17 10:49:50 +08:00
William Cheng
4b84821506
Add auto-generated doc to Swift4 generator (#2666)
* add auto-generated doc to swift4 generators

* fix rxswift sample code

* fix object initialize

* fix boolean value

* fix link to object

* fix void

* fix url initialize

* update all swift samples

* fix indentation
2019-04-16 16:55:26 +08:00
Ingvi Rafn
84f3fc0bb5 Fix closing tag for attribute in aspnetcore gen - fixes #2275 (#2607)
* Fix closing tag for attribute in aspnetcore gen

"]" character at col 209

* remove newline
2019-04-15 17:50:46 +08:00
William Cheng
da9ba4cd7d
Use ObjC reserved words only when objcCompatible is enabled (#2632)
* avoid whilelisting objc reseved words

* fix swift4 test

* add new files

* update swift4 tests
2019-04-15 15:35:19 +08:00
Adi Gerber
3ca7e6342f ServiceLoader now uses correct class loader every time (#2658) 2019-04-15 08:42:40 +02:00
Hemant Zope
3be4902444 [C] C generator refactored (#2463)
* New modified model header and body mustache for c client generator

* remove uncrustify from cmake as it is used during code generation, also remove valgrind as it is not used

* add function to encode and decode binary data

* update model mustache

* update api body and header mustache for handling all types of parameters

* update model mustache with variable names and address few more issues to generate working codes

* updated api body and header mustaches with support for various new parameters and fix some issues as per new changes in code flow structure

* update apiClient header and body mustache as per new modifications for handling binary data and few more stuff

* updated samples generated by new modified mustache

* update handling of file and binary data type to binary_t

* update samples with recent commit on master regarding c-generator

* update cmakelist which was ignored by .openapi-generator-ignore, cleanup external folder

* update CMakeList mustache to show how to use compiled libary to compile source files

* update samples with new cmake

* Add comments explaining what each command is doing inshort

* remove freeing of base path as it is not memory allocated

* update samples to free apiclient object when the requirement is over

* add missing cJSON delete to fix memory not freed bugs

* use uncrustify to beautify manual written test code
2019-04-15 11:27:34 +08:00
William Cheng
d9bb676038
fix default package in go server (#2662) 2019-04-15 10:41:46 +08:00
Yuriy Belenko
c88b0a10b7 [Slim] Fix AbstractAuthenticator constructor TypeError (#2641)
* Fix AbstractAuthenticator  constructor TypeError

* Refresh samples

* Remove container argument reassign

* Refresh samples
2019-04-14 00:03:12 +08:00
Shane Farrell
687b5aabf3 Fix issue 1340 - StaticHtmlGenerator to allow snake_case property names (#2612)
* Updated StaticHtmlGenerator to it overrides the toVarName(String name) method in DefaultCodegen and prevents underscores from being converted to the word Underscore

* adding model propery with a snake_case name

* Reverting change to base petstore.yaml file

* Trying to trigger another CI build

* Trying to trigger another CI build

* Removing trailing space
2019-04-13 00:38:35 +08:00
William Cheng
5fbb812d65
Test Gradle plugin in Appveyor CI (#2651)
* update travis to test gradle plugin

* update gradle version

* show gradle version

* test gradle plugin in circleci

* test appveyor in gradle

* use direct link

* revert other ci config
2019-04-13 00:36:52 +08:00
William Cheng
3b9c9ce44a
Add Camptocamp to company list (#2652)
Add Camptocamp to company list
2019-04-12 18:49:50 +08:00
sunn
7af94fa1e8 Use percent encoding for path parameters (#2649) 2019-04-12 11:26:48 +08:00
William Cheng
85d05981ec
Unescape HTML characters in JS docstring (#2636)
* unescape html characters in JS docstring

* better codee format
2019-04-11 23:30:00 +08:00
Vincent Devos
c941b87067 [ONLINE] Minor links fix (#2644)
- usage : fix link to generator-specified parameters
- usage : fix next page link not found
2019-04-11 23:29:18 +08:00
William Cheng
b426bab85e
better handling of undefined inner property in array (#2635) 2019-04-11 19:06:48 +08:00
Akihito Nakano
b797662eaf
Fix regexp error on php-slim (#2604)
* Add tests to reproduce the issue

* Use simple replacement instead of regexp

* Add tests to reproduce the issue (apiPackage)

* Use simple replacement instead of regexp (apiPackage)

* Replace a slash with File.separator (addressing the issue on windows)

* Tweak (windows)

* Tweak (windows)

* Use StringUtils#remove***() instead of regexp
2019-04-11 08:01:24 +09:00
Tim
3036d8fd20 [TypeScript-Fetch] Generate oneOf schemas as type unions (#2617)
* Generate oneOf schemas as type unions for typescript-fetch

* Adjust oneOf imports to only include refs of oneOf
2019-04-11 00:58:07 +08:00
William Cheng
d63f4bc16a
Add Namsor as the sponsor (#2639)
Add Namsor as the sponsor
2019-04-11 00:33:09 +08:00
William Cheng
97dbb76d16
fix classname in website (#2638) 2019-04-10 22:36:56 +08:00
Jérémie Bresson
90c57c6829 Code review fixes (#2633)
* Fix “The field JavascriptFlowtypedClientCodegen.SNAPSHOT_SUFFIX_FORMAT is hiding a field from type AbstractTypeScriptClientCodegen”

* Fix “The field JavaCXFExtServerCodegen.CodegenVariable.vendorExtensions is hiding a field from type

DefaultCodegen”

* Fix “Javadoc: Invalid URL reference. Double quote the
 reference or use the href syntax”
2019-04-10 21:40:13 +08:00
William Cheng
173d16d114
Move Ruby module/gem to codegen constant (#2621)
* move module/gem to codegen constant

* remove extra line
2019-04-10 21:36:53 +08:00
William Cheng
9455fe7bec
Add sponsor section to the website (#2634)
* add sponsor section

* add sponsor title
2019-04-10 21:30:59 +08:00
Paul Brabban
b5ae21b090 [Spring] Spotbugs static class and default encoding (#2609)
* add static modifier - mvn verify passes

* specify charset, mvn verify works, compiles and clean on spotbugs in my project

* update samples as per contribution guide; mvn integration-test passes

* commit rest of samples

* fix missing newline at EOF

* lots of new newlines

* needed to run mvn clean beforehand...
2019-04-10 18:03:35 +08:00
William Cheng
81f970e946
Add @Zomzog (2019/04) to Java, Kotlin tech comm (#2630)
Add @Zomzog (2019/04) to Java, Kotlin tech comm
2019-04-09 17:23:46 +08:00