forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Merge openapi master #4
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
Merged
Merged
Conversation
This file contains hidden or 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
* Update Dart technical committee with new members * add agilob * remove ircecho
* Generate java code with "static final" instead "final static" * Regenerate code with "static final"
* [dart] Always use the correct enum data type * use raw strings for enum string values * [dart-dio] Use raw strings for built_value enums `@BuiltValueEnumConst` does some wierd string handling in the generated code `r'\$'` becomes `'$'`. This is different compared to the wireName in `@BuiltValueField`
* only use `FormData.fromMap()` for multipart content, `FormData` does not work with `x-www-form-urlencoded` * use a basic map for `x-www-form-urlencoded` content * fix formatting
If the delegate is optional, put it as optional in constructor
* Use array for generated annotation fix #7799 * Add generation for kotlin spring delegate pattern * Sample restart tests
…d "Resource (#8178) * Initial push for fix #1680 * fix yaml * update samples Co-authored-by: JBurgess <[email protected]>
* correctly generate enums from `mostInnerItems` * use `datatypeWithEnum` which should always be he correct type * dart generators prefix inner enums with the classname of the containing class, ensure datatypeWithEnum always matches
* always add trailing commas in arrays and break each line * make variables final * improve API formatting (mainly leading spaces) * remove empty lines and whitespaces * fix formatting of datatype and description and docs * consistently use single quotation marks (dart already does this)
* simplify template expression
* fix: use config basePath instead of the class context basePath * chore: build samples
* [ruby] Improve ruby client examples * samples * quote fixes * Keep enum value * better string type handling * fix failing tests * add space after comment * update samples * use Time Co-authored-by: William Cheng <[email protected]>
* don't rely on implicit dynamics * this is a requirement for NNBD * add space between return type and some method names
* Include description directly in python docstrings mustache escaping the description make them render weirdly, including sometimes unsupported characters in python. * More parameters
* Use system CA by default and remove certifi See #6506 * Use system CA by default in asyncio client * Update README_onlypackage.mustache * Result of ./bin/generate-samples.sh * Add ssl_ca_cert argument for Configuration * Result of ./bin/generate-samples.sh * Remove certifi, use system CA by default
* test map with protobuf * fix protobuf map * use unescaped value * use string * undo changes to spec
* Make header params with dynamic types
Otherwise this will generate code which is not compile-able. Like this:
```dart
Future<Response<List<StockItemProjectionDirect>>>getAllStockItems(Store storeId,{ int xXChunkNumber,int xXChunkSize,StockItemRequestFilterDto stockItemRequestFilterDto,CancelToken cancelToken, Map<String, String> headers, ProgressCallback onSendProgress, ProgressCallback onReceiveProgress,}) async {
String _path = "/api/store/{storeId}/stock".replaceAll("{" r'storeId' "}", storeId.toString());
Map<String, dynamic> queryParams = {};
Map<String, String> headerParams = Map.from(headers ?? {});
dynamic bodyData;
headerParams[r'XX-Chunk-Number'] = xXChunkNumber;
headerParams[r'XX-Chunk-Size'] = xXChunkSize;
```
See how the func recieves int argument which then assignes into a string... last 2 lines
* FIX: Dynamic header and sync with upstream
* DART-DIO new samples
Co-authored-by: William Cheng <[email protected]>
* [dart][dart-dio] Prevent name clashes with existing dart types Can not use dart import aliases for now as this is not supported by built_value. This means we need to add potentially clashing names/classes to an `additionalReservedWords` exclusion list. Starting with a basic list of some http/io classes. Correctly use `importMapping` and `defaultIncludes` this time around. Improve reserved word checking. This now successfully generates `ModelList`, `ModelFile` and `ModelClient` models which previously were not generated at all or were wrong types. * Address review comment * Update generator docs
…8191) * fixes some compile errors due to header params not being of type `String` * add optional `extra` and `validateStatus` parameters from dio
* rxgen version update * rgxgen version 1.2 * update rgxgen version to 1.3 * remove start end slash in patterns * Remove debug logs
…#8137) * error to GenericOpenAPIError * reformatted files * reformat files * spaces to tabs * update petstore examples * remove extra brackets * update sample generation * update go test cases * update openapi3 go tests * edit test samples * update documentation
* [Core] Inline Model Resolution of Enums Enums need to be named types, so handle them as part of inline model resolution * [Rust Server] Handle models starting with a number correctly * [Rust Server] Additional trace * [Rust Server] Add support for oneOf/anyOf * [Rust Server] Update supported features * [Rust Server] General template tidy up * [Rust Server] Implement IntoHeaderValue for wrapped data types * [Rust Server] Convert from string correctly * [Rust Server] Test for anyOf/oneOf * Update samples * Update docs
* [Kotlin-Spring] Fix properties default value * Fix kotlin enum default * Update go sample
* remove trailing slash * update sample app * added tests * bug fix * Adds test in DefaultGeneratorTest * Reverts python files * Does not modify a value of / * Stops skipping / use case * update samples Co-authored-by: Justin Black <[email protected]> Co-authored-by: William Cheng <[email protected]>
* [swift] remove old swift sample * [swift] update bitrise.yml * [swift] update unit tests
* removed depricated functions * using preprocessor variable. Updated samples * added version check for random functions * added another version check to Json functions * Update modules/openapi-generator/src/main/resources/cpp-qt5-client/HttpFileElement.cpp.mustache Co-authored-by: Martin Delille <[email protected]> * Update modules/openapi-generator/src/main/resources/cpp-qt5-client/HttpFileElement.cpp.mustache Co-authored-by: Martin Delille <[email protected]> * Update modules/openapi-generator/src/main/resources/cpp-qt5-client/HttpRequest.cpp.mustache Co-authored-by: Martin Delille <[email protected]> * Update modules/openapi-generator/src/main/resources/cpp-qt5-client/HttpRequest.cpp.mustache Co-authored-by: Martin Delille <[email protected]> * Update modules/openapi-generator/src/main/resources/cpp-qt5-client/HttpRequest.cpp.mustache Co-authored-by: Martin Delille <[email protected]> * Update modules/openapi-generator/src/main/resources/cpp-qt5-client/HttpRequest.h.mustache Co-authored-by: Martin Delille <[email protected]> * Apply suggestions from code review Changed version check to Qt 5.15 to remove the warning of the deprecated functions when compiling with Qt 5.15 Co-authored-by: Martin Delille <[email protected]> Co-authored-by: Martin Delille <[email protected]>
* Add .t in spec generation of object types * update samples * Adds workaround for free-form maps with propper typespec * Adds missing typsspec definition for structs * update doc Co-authored-by: William Cheng <[email protected]> Co-authored-by: Michael Ramstein <[email protected]>
Collection related refactorings: - replaces for/foreach loops to use Collections.addAll() where possible, - replaces for/foreach loops to use Collection.addAll() where possible, - replaces for/foreach loops to use Collection.removeAll() where possible. AddAllRatherThanLoopCleanUp from AutoRefactor applied by erefactor. For AutoRefactor see https://github.com/JnRouvignac/AutoRefactor .
* Update cpp-qt5-client.md Added missing security feature support in the documentation * added missing security features in doc
All enum instances are `const` so `equals/hashCode` is not needed. Removing this allows to `switch/case` on enum instances.
* implement useAbstractionForFiles for webclient library * update doc Co-authored-by: William Cheng <[email protected]>
* [swift 5] fix objc integration * [swift 5] fix combine integration
* add User-Agent header in Javascript generator * add User-Agent header in Javascript-apollo generator * update samples
* Ensures empty body is always present for post/put/patch * Generate samples
* [typescript-axios] reduce file size * [typescript-axios] regenerate-samples
* #3336 add nestjs generator * #3336 add nestjs generator * #3336 add nestjs generator * #3336 add nestjs generator * remove extra files from building * Revert "remove extra files from building" This reverts commit 7f80f96. * fix merge * fix tests * Add missing test client options provider for nestjs * cleanup PRS * fix compilation error * remove groovy bin files; * fix tests * add samples * update doc * update samples Co-authored-by: Victor Frank <[email protected]>
* move swift config files under ./bin/config * update bitrise config
* Remove weak self to fix too early deallocations * Update samples * Remove podfile lock * Run pod install on samples/client/test/swift5/default/TestClientApp/ * Revert "Run pod install on samples/client/test/swift5/default/TestClientApp/" This reverts commit 5ad327c.
Signed-off-by: Francesco Guardiani <[email protected]>
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
./bin/generate-samples.shto update all Petstore samples related to your fix. 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