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
update with upstream master #27
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
…7860) * First iteration to support new mechanism that needs to have the handle of the result. * Most of the samples now build except "async". Also, everything is messed up.. need to understand the mustache way to handle this. * New version to support play 2.8 * Fix conflict * Fix error when multiple file in forms
* Fix a bug when asking to upload a MultipartFile as body. * Make finalizing MultipartFileRequest simpler. * Restrict creating a MultipartFileRequest when not part of a multipart-form. * Simplified the upload to use a StreamedRequest. * Wrap all requests with try-catch.
…7555) * added to_json_dict in python generated model * update to_dict * updated to_dict Co-authored-by: sunkaicheng <sunkaicheng@bigo.sg>
* skip readonly in serialization (c# netcore) * minor wording change
* Adds vars to all schema classes, adds partial test * Adds tests and addVarsRequiredVarsAdditionaProps * Adds CodegenProperty test * Adds requiredVars * Adds vars and requiredVars cloning for CodegenProperty
* Fixed the null serialization issue for dotnet47 * c# codeing style * Updated the sample for csharp netcore * corrected the typos
* Removes secondaryParam and hasMore * Fixes tests * Only uses bodyParam in groovy template
…compiles with `strict` flag (#7892) * Check configuration is defined * Update samples
* fix incorrect import * remove importMapping
* fix decimal mapping in scala generators * add mapping for decimal, number in scala generators * update doc * use scala.math.BigDecimal
* Fix a few issues with go examples generation This fixes a bunch of issues seen when generating go examples, namely - Numbers aren't casted to the right type - The time import is missing - Enums are treated as regular models * Rebuild more samples * Use examples properly * Handle multiple instances in the same doc * Fix wrong array closure * Handle model arrays * Fix file and enum namespace * Regenerate samples * Handle maps of complex types * Handle oneOf * Fix padding * Fix enum doc * Removes links to basic types in arrays * Remove links to basic types in maps * Fix enum links * Minor indent fix * Handle review comments
* [typescript-fetch] add sample * [typescript-fetch] add sample for nullable enums
…ent (#7921) * add test for ap in both child and parent * add cat test to net47
* #7935 typescript-angular: support angular 11 * regenerate angular 11 sample project * Update ngVersion to 11.0.0 in typescript-angular.md
* 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
* 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 <wing328hk@gmail.com>
* 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 <wing328hk@gmail.com>
* [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
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.
update with upstream master