Add a new cli command to output version information#3892
Add a new cli command to output version information#3892MiguelGL wants to merge 5976 commits intoswagger-api:masterfrom MiguelGL:version-cli-command
Conversation
* better enum support for typescript angular2 * fix enum property for TS * fix non-array enum datatype for TS * update build name for TS fetch petstore client * restore TS fetch enum naming * [TS fetch]add test cases, fix enum integer naming
* Amending Path annotation
Changed the Path annotation value from "/" to "/{{baseName}}"
* jaxrs-cxf-petstore-server.sh script was not referencing cxf module directory. Included generated files following script run. Have amended Path annotation value to {{contextPath}} and removed public access modifier from template as this is redundant for Java interface definition.
[aspnet] Honor casing of properties from definition
…degen into kartenkarsten-patch-1
[Java] minor indentation fix for java enum models
…ams-for-auth Fix unknown parameter on api_client's update_params_for_auth method.
[Java][Spring] Add enum test cases and fix formParam's enum value
* show path * install go
* prefix go local var with localVar * remove pom from go, minor fix to headerParams
Right now, any generated code where the http basic authentication is required is broken, as it tries to access nonexistent field in the generated `Configuration` struct. The alternative is to fix `configuration.mustache` to replace the `UserName` field with `Username` field.
…ization Go: Replace `.Username` with `.UserName` in generated API methods.
* add more tests for go, fix numeric form/header parameters * update go sample
Update our fork
Removed CLI option declarations in JavaJAXRSSpecServerCodegen that also appear in AbstractJavaJAXRSServerCodegen.
…com/JackWink/swagger-codegen into JackWink-feature/jack/update-swift-alamofire
…ger-codegen into arikon-feature/js-fix-types
[Go] fix trailing comma in go api client
* add schema title, description to HTML output * Include title, description in petstore sample (and HTML output)
* Show correct default value on CLI option description Fixes #3861 * Changes after ./bin/jaxrs-petstore-server.sh
[Swfit] fix path parameter with baseName mustache tag
* fix jaxrs line break * fix java gradle bat line break * fix scala gradle line break * fix undertow crt line break * fix spring line break * fix undertow line break in pom * rollback undertwo petstore to use petstore.yaml
[Swift] Use thread safe manager dictionary
* feature(php-cs-fixer) add php-cs-fixer support * feature(php-cs-fixer) tweak Mustache templates to fit PSR2 * feature(php-cs-fixer) bin/php-petstore.sh output
…l-request-template Mention security script in pull request template
…3887) * fix duplicated description in spring model * fix duplicated description in jaxrs models * fix resteasy dependency
* feature(phpunit) fix PHPUnit invocation, add basic phpunit.xml.dist * fix(phpunit) add proper paths relative to phpunit.xml.dist
I am using maven resource filtering capabilities so that an existing version.properties resource file gets filtered upon build and populated with the project version tag. This resource is then read at runtime as required.
|
Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/swagger-api/swagger-codegen/graphs/contributors. Let me know if you need help fixing it. |
# Conflicts: # .gitignore # modules/swagger-codegen-cli/pom.xml # modules/swagger-codegen-cli/src/main/java/io/swagger/codegen/SwaggerCodegen.java # modules/swagger-codegen-cli/src/main/java/io/swagger/codegen/cmd/Meta.java # modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticDocCodegen.java # modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtml2Generator.java # modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtmlGenerator.java # samples/html/index.html
# Conflicts: # modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticDocCodegen.java # modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtml2Generator.java # modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtmlGenerator.java # samples/html/index.html
|
I (thik I) fixed the account linking issue as per the instructions in the link (thanks!). I can see this has sort of introduced a lot of noise, so just let me know if this still applies or maybe it's worth to reproduce the changes in another fork or something. Thanks. |
|
@MiguelGL If it's not taking you too much time, please submit a new one as the rebase seems to have add commits not related to this change. |
|
Sure, i Will. El jue., 29 sept. 2016 10:41, wing328 notifications@github.com escribió:
|
|
I am closing this PR in favour of a new fresh one. |
… (#3899) * Properly git-ignore all nbactions.xml files. * Add a command line action to print the program version (#3892). I am using maven resource filtering capabilities so that an existing version.properties resource file gets filtered upon build and populated with the project version tag. This resource is then read at runtime as required. * Using a different version tag when unreadable.
* upstream/master: (79 commits) add undertow Add a new cli command to output version information (2nd attempt) swagger-api#3892 (swagger-api#3899) fix python flask controller without tag (default_controller) [aspnet5] Fix basePath application to operations (swagger-api#3911) Bugfix/issue 3723 (swagger-api#3726) Cgardens nested object regex (swagger-api#3879) [Cpprest] Fixing issue swagger-api#3773 (swagger-api#3876) escape callback parameter for java(okhttp) and python fix warning in html generator [PHP] fix PHPUnit invocation, add basic phpunit.xml.dist (swagger-api#3864) [Java] Remove duplicated model description in Spring, JAX-RS models (swagger-api#3887) [PHP] Better PSR2 compatibility (swagger-api#3863) Mention security script in pull request template [Swift] Use thread safe manager dictionary Replace ^M with new line (\r) in mustache template (swagger-api#3865) [swfit] fix url param with base name [JaxRS]Show correct default value on CLI option description (swagger-api#3862) add title, description to HTML output (swagger-api#3860) fix trailing comma in go api client fix typescript-fetch base path by removing ending slash ...
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0branch for breaking (non-backward compatible) changes.Description of the PR
This is as per discussed in #3007. I am using maven resources filtering support to generate a resource file with the ${project.version} stamped on it.
Please note when running (from example from an IDE) from a non-maven env. this will lead to the
version be the literal
${project.version}string.