forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regular merge code from upstream #28
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* [dart] Improve content-type handling * fixes OpenAPITools#9334 * superseeds OpenAPITools#9454 * use `prioritizedContentTypes` in the same way `JavaClientCodegen` does * move `application/json` to the front if it exists * don't do anything if it is multi-part or url-encoded as for this the first content-type already needs to match * log warning if an unsupported content-type is first after prioritizing * remove some unused code blocks from dio generators * Only use first prioritized content-type in dio generators * don't default to any content-type in dio-next, dio defaults itself to JSON
…nAPITools#9550) * [ci] Move openapi-generator build/docs/samples to github actions * Naming * Test failure on samples and docs * Revert code changes after successful docs/sample failure
* fix: prefer_is_not_empty linter suggestion * fix: annotate_overrides linter suggestion * chore: update samples
* initil tiny client generator * Helper string * WIP: added helper file with json helper functions * WIP: model implementation.. Working on JSON * Added codegen files for model and helper * WIP: toJson() * Added mapping configurations * Upadet string compare * Removed redundant namespaces * Added files for example * fixed syntax errors * fixed syntax errors * header generation * unittest example for pet class * Refactored mustache & fixed logical errors * WIP: unit test mustache format * Removed legacy file * mustache service * Declare service in Java file * Removed legacy file * removed legacy code * Documentation * Added folder structure + new supporting files * Added file to run all unittests * Refactored unit tests * typemappings and new paths * First service impl * Added esp32 and esp8266 env * Added default values * Added cli option to specify controller * added type decl method * Added stringify methods * service get requests * Fix helper header * post merge fix * fix long test * Tiny namespace * remove shared pointer * include petapi * stringify * return problems * Canged logic for response-body handling * Implemented last logic for reponse handeling * Implemented constructor logic * first tiny sample * update basepath to petstore v3 * standard main example * root certificate example * root folder * TODO cleanup * exclude features * supports delete again!👷 * remove todo ❌ * new main example ❣️ * new main example ❣️ * Make our feature set realistic * fix indentation * HTTP / HTTPS Connection * Root certificate sample * https vs http 👨🏻🔬 * fix lint in template * default value for controller in config * new readme 📜 * remove old comments * removed unused testfile * no default root certificate * new main * remove test * Update platformio.ini.mustache 🤷♂️ * Update platformio.ini.mustache remove native * added support info * Add namespace to Pet 🐅 * bourne compatibility fix * spelling error in python file * bourne python script 🐍 * Version bump * Add bourne script to readme * update main sample, from template * pre_compiling_bourne.py.mustache to samples folder 📃 * set header Content'type to json * map todo🗺️ * remove unused debug flag⚒️ * added support for ESP8266 ༼ つ ◕_◕ ༽つ * added new sample for ESP32 📀 * 🎯 * removed use of namespace std ❌ * removed use of "__" in variables * removed unused code in destructor * fixed type comparison * move default ctor to header * added zero initialized primitive variables * moved variable to TypeMappings * updated ifndefines * Extra comment for build error in standard example 🦸🏽 * afer cpp-ish cast from std::string to uint8* cast🏰 * excluded maps type * Documentation og generator Co-authored-by: kaareHH <[email protected]> Co-authored-by: mkakbas <[email protected]> Co-authored-by: mkakbas <[email protected]>
* [swift5] Add support for oneOfs * Generate a sample Swift project with oneOfs * Update Swift Samples
* rename generator, update samples * add doc * update readme
…9542) * [dart][dart-dio] Improve support for file uploads * add support for filenames in multipart requests by using `MultipartFile` from dio directly * add support for binary/file body data * fixes OpenAPITools#6671 * fixes OpenAPITools#9079 * Add and fix tests * Only use MultipartFile for body/multipart parameters * Fix test * Actually fix tests
* [swift5] Map file and binary to Data Fixes: OpenAPITools#9308 * Update docs
…ITools#9578) * [kotlin][client] fix Android crash on API level * [kotlin][client] update sample project * Try to fix CI * [kotlin][client] add flag to control android api level supported * [kotlin][client] update docs * [kotlin][client] update docs
* add Aalborg university * English logo
…PITools#9569) * [cpp-ue4] Added public methods to process enums in string form as it may be useful for the user code * [cpp-ue4] Fixed linker errors in some configurations
…implementers (OpenAPITools#9519) * Adds getter + setter methods for isShortInteger in IJsonSchemaValidationProperties * Adds isShortInteger to CodegenModel * Adds isShortInteger to CodegenProperty * Adds isShortInteger to CodegenParameter * Adds isShortInteger to CodegenResponse * Ensures that samples are up to date * Changes interface to isShort * Removes typescript file * Adds isShort to CodegenModel and CodegenProperty instances * Samples updated, shows too many changes across generators * Adds isUnboundedInteger and implements it in CodegenModel * Adds isUnboundedInteger to COdegenProperty * Adds isUnboundedInteger to CodegenParameter * Adds isUnboundedInteger to CodegenResponse * Regenerates samples and docs * Adds testBooleansSetForIntSchemas * Fixes integer tests
* [swift5][client] fix binary respose * [swift5][client] fix binary respose
…i.mustache template in the java resttemplate library (OpenAPITools#9568) - rerun generate-samples.sh and export_docs_generators.sh
…ITools#9598) * changed correct values * Updated virtualan version * updated the correct version * Updated with latest version * Update pom.xml * Updated with 2.5.0 * Updated with db 2.5.0 version
* remove deprecated author field from all pubspec templates * improve dart-dio-next readme/markdown documentation * add a lot of dart-doc to model and API classes
* use unmodified enum values in arrays * update enum values in body and api mustache
* [cpp-restsdk] Update json double/float parse. Fix cpp-restsdk double and float parse. double.NaN was parsed when server doesn't ensure the floating point value has decimal point in in. * Update docs & samples.
* init port * add outputDir * fill out current .md * update samples Co-authored-by: William Cheng <[email protected]>
* minor improvements to wsdl-schema gen * better code format * update readme
…ls#9451) * [Kotlin][Retrofit][OpenAPITools#9448] Replace OkHttpClient parameter with Call.Factory. * [Kotlin][Retrofit][OpenAPITools#9448] Update sample project.
You can now pass in fetch initOverrides per request. This change is mainly to add support for request cancellation (via AbortSignal).
* [TS] disable lint in index file We disable lint in typescript-fetch in this PR OpenAPITools#4110 But we doesn't disable index.ts files so we'll get error with [no-cycle](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-cycle.md) rule. - index.ts [import all classFiles](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-fetch/models.index.mustache#L4) to exporting - When model use another models (i.e. article model have user model as author), model import another model [using index.ts](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache#L10) So we need disable all generated file. * generate files Co-authored-by: Esteban Gehring <[email protected]>
… multi file uploads (OpenAPITools#9796)
Fixes a bug where code generation would sometimes treat arrays as objects and break serialization and code documentation.
* Include request body on DELETE call This change updates the generated `ApiClient` to include the request body on DELETE calls. [Per the RFC on page 2][1], DELETE calls are allowed to have a request body, even though the behavior may be undefined. I've not come across many APIs that use this behavior but there are a few, in particular the [Ory Kratos API][2] does so, not forwarding the body prevents such an API from being used. An API spec that does not define a request body should continue to function as expected. [1] https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.5 [2] https://www.ory.sh/kratos/docs/reference/api/#operation/submitSelfServiceLogoutFlowWithoutBrowser * Samples generated with dart2 template change
* Add RequiredError * Add IsZeroValue helper * Add AssertRequired method to all models * Add AssertRequired call for body param * Regenerate files * Add DisallowUnknownFields * Regenerate samples * Use hasRequired in model to remove unnecessary code * Revert disallowUnknownFields * Use isAdditionalPropertiesTrue for disallowing unknown fields * Updated samples * Fix indent * Add require checks for nested slices * Add new tests * Regenerate samples * Regenerate samples after merging
…s where collectionFormat is null (OpenAPITools#10105) * improve encodeCollectionQueryParameter to handle cases where collectionFormat is null * updated samples
…ols#9884) * added authentication switches to support files * build samples * build samples * added documentation
* Adds hasDiscriminatorWithNonEmptyMapping getter and setter * Removes venv * Adds hasDiscriminatorWithNonEmptyMapping to CodegenModel * Removes python-experimental folder * Adds hasDiscriminatorWithNonEmptyMapping to CodegenProperty * Adds hasDiscriminatorWithNonEmptyMapping to CodegenParameter * Adds hasDiscriminatorWithNonEmptyMapping to CodegenResponse * Sets hasDiscriminatorWithNonEmptyMapping in codegenModels * Samples updated * Adds getHasDiscriminatorWithNonEmptyMappin checks in existing discriminator tests
… (OpenAPITools#9857) * generate docs for typescript * commit changed files * Fix NullPointerException on ComposedSchema * Fix merge issues
…words (OpenAPITools#10091) * Rename queryParameters to localVarQueryParameters * Rename headers to localVarHeaders * Rename credential to localVarCredential * Rename httpHeaderAcceptSelected to localVarHttpHeaderAcceptSelected * Rename formParams to localVarFormParams * Rename useForm to localVarUseForm * Rename convertFormParamsToString to localVarConvertFormParamsToString * Step 3 * update doc Co-authored-by: Marius Møller <[email protected]> Co-authored-by: William Cheng <[email protected]>
…apis.ts` template file. (OpenAPITools#10121)
…tor into feature/refresh_master
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.
master
,5.1.x
,6.0.x