forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
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
merge upstream #1
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
* Fixes additionalProperties values for models, updates docs, adds tag test of it, fixes frit and gmfruit tests * Moves this.setDisallowAdditionalPropertiesIfNotPresent higher * Makes setting additional_properties_model_instances contingent on the presence of addprosp in schema, updates sample spec composed schemas to remove addprops False form two * Fixes oneOf anyOf allOf instantiation logic * Removes Address from Cat definition * Adds required vars for apple and banana, removes required vars from composed schema init sig * Updates composed schema vars to be set on self and all composed instances * Removes get_unused_args, get_var_name_to_model_instances, and get_additional_properties_model_instances * Fixes fruit + deserilization tests, creates ComposedSchemaWithPropsAndNoAddProps * Fixes FruitReq tests * Fixes GmFruit tests * Fixes discard_unknown_keys tests * Samples updated * Removes additionalproperties False in Child * Samples updated * Improves handling of v2 and v3 specs for isFreeFormObject, v2 sample spec updated with link to bug * Adds cli option disallowAdditionalPropertiesIfNotPresent to python * Adds getAdditionalProperties method so the value for addProps will be correct * Reverts file * Reverts file * Updates python doc * Reverted anytype_3 definition * Updates test_deserialize_lizard * Updates test_deserialize_dict_str_dog * Updates testDog * Updates testChild * Adds v2 python_composition sample * Adds needed files for python testing * Adds existing tests into the new python sample * Fixes test_dog * Removes addProps false form Dog * Fixes testChild * Updates how additionalProperties are set * Fixes empty_map type * Type generation fixed for v2 and v3 specs * Refactors getTypeString, updates artifactids in pom.xml files * Adds new python sample to CI testing I think * Fixes artifactId collision, regenrates docs
* use warning instead of throwing exceptions * comment out tests
* Add homepage option to pubspec.yaml package validation fails when trying to publish to pub.dev See: https://dart.dev/tools/pub/pubspec Blocking bigpanther/trober#108 cc: @kuhnroyal * Add missing fields * Update templates and generate samples Co-authored-by: Harsimran Singh Maan <maan.harry@gmail.com>
Recursive validate non primitive objects
* [dart][dart-dio] Add built_value date support w/o timemachine * Test improvements * Fix lists of dates not working
* multi arch build * fix buildx * use openjdk * fix bash install * remove armv7 * remove arm64 * use jre 11 * add v8 * skip bash install * add back tests * remove v8 * minor change * fix tag and push * fix tag * skip pull request for dockerhub push
Motivation: In Gradle 7.0 apply @input and @internal on property is forbidden. Before Gradle 7.0 applying both on the same property is confusing. According to the documentation: * @input: Attached to a task property to indicate that the property specifies some input value for the task. * @internal: Attached to a task property to indicate that the property is not to be taken into account for up-to-date checking
* Don't include read-only properties in Python examples. When using a schema with read-only fields as API inputs, Python generates examples for those: this excludes them. * Fix tests
#9143) * fix kotlin enum serialization * fix kotlin serialization compiler warning * change samples
* Fix #8027 - import the auto generated supporting JSON class only when generateSupportingFiles is true * Fix #8027 - import the auto generated supporting JSON class only when generateSupportingFiles is true * Fix #8027 - import the auto generated supporting JSON class only when generateSupportingFiles is true * Revert "Fix #8027 - import the auto generated supporting JSON class only when generateSupportingFiles is true" This reverts commit 56e2b1f * Revert "Fix #8027 - import the auto generated supporting JSON class only when generateSupportingFiles is true" This reverts commit 335c304 * Fix #8027 - import the auto generated supporting JSON class only when generateSupportingFiles is true * Fix #8027 - import the auto generated supporting JSON class only when discriminator is needed * Fix #8027 - import the auto generated supporting JSON class only when discriminator is needed * Fix #8027 - import the auto generated supporting JSON class only when discriminator is needed * [Java] [Native] Add response body to exception message * [Java] [Native] Use default base URI if baseUri param is null * [Java] [Native] Use default base URI if baseUri param is null
While inner enum classes from dataClass.mustache work fine, standalone enum classes lack `@JsonProperty` annotations so that Jackson uses names instead of values.
* [Java] [JavaJaxRS] Respect readOnly/writeOnly attribute markers Generate jackson JsonProperty like following: - `readOnly` is present in Spec: `@JsonProperty(value = "[name]", access = JsonProperty.Access.READ_ONLY)` - `writeOnly` is present in Spec: `@JsonProperty(value = "[name]", access = JsonProperty.Access.WRITE_ONLY)` Edge case: both are present -> Spec is invalid and generator cancels anyway with: > org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI). > | Error count: 1, Warning count: 1 > Errors: > -attribute components.schemas.Example. writeOnly and readOnly are both present * update samples Co-authored-by: Michael Kroll <9883575+mickroll@users.noreply.github.com>
* Refactor on constructors Updated samples Fixed a bug of previous commit Refactor on constructors * Fixed indentation in source code * Updated samples * Marked constructors with obsolete * Updated obsolete constructors messages * Updated samples
* feat(adapter): add BigDecimal kotlin support this allows the kotlin client generator to support BigDecimal values Fixes #7196 * update samples Co-authored-by: William Cheng <wing328hk@gmail.com>
* resolve merge conflicts * use + in type mapping, add tests * add new test spec
* [swift5][client] fix binary respose * [swift5][client] fix binary respose
…i.mustache template in the java resttemplate library (#9568) - rerun generate-samples.sh and export_docs_generators.sh
* 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 <wing328hk@gmail.com>
* minor improvements to wsdl-schema gen * better code format * update readme
* [python-fastapi] Added new generator See https://fastapi.tiangolo.com/ for more details about FastAPI Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com> * [python-fastapi] Added samples Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [swift5] Add useClasses cliOption * Update swift docs
* minor python-fastapi improvements * update doc * fix refreshUrl
And update to Kotlin 1.5.0 and kotlinx.serialization 1.2.1. Fix nested enum annotation '@serializable' instead of '@KSerializable' when 'kotlinx_serialization' is used. Fix missing JsonMediaType in ApiClient.kt (#9242). Add 'kotlinx_serialization' serialization library to documentation. Use explicity type in RequestConfig to keep type information for JSON serialization. Resolves #9242
* [swift5][client] update dependencies * [swift5][client] update sample projects * [swift5][client] update dependencies in Carthage
* [kotlin][client] update dependencies * [kotlin][client] update sample projects * [kotlin][client] fix update dependencies
* [swift5] Rename the API class to {{projectName}} Instead of {{projectName}}API. This removes some unnecessary naming complexity. * [swift5] Define models and Configuration classes under namespace When swiftUseApiNamespace is set, API classes get defined under the projectName namespace. This does the same for models and the Configuration class. Plus adding a deprecation warning when using the un-namespaced variants. * [swift5] Use CodingKeys in model decoder Fixes: 0f5e7d1 ("Swift5 models improvements (#9205)") * [swift5] Add swiftUseApiNamespace to urlsessionLibrary config * Update samples * Try to reduce model changes Co-authored-by: Bruno Coelho <4brunu@gmail.com>
* [kotlin][client] standardize adapter type names * [kotlin][client] remove unused class * [kotlin][client] fix IDE warning * [kotlin][client] improve import layout * [kotlin][client] update sample projects
* Add nullable annotation support to AspNetCoreServer * Adjust naming for compatability with PR #9235 by @dehl-labs
…9572) * fix python generation when custom files and templates are specified * add test for processUserDefinedTemplates
devhl-labs
pushed a commit
that referenced
this pull request
May 27, 2024
…xios (#1…" (OpenAPITools#18452) This reverts commit 8152052.
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.
merging upstream into my fork