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
Bring welshm
fork up to master
#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
These samples are the same as their OAS3 counterparts and don't give any additional benefits. This should speed up CI builds by a good amount.
* finally use released versions for http mocking
* Add hashable for struct * Remove x-swift-hashable * Run the shell script ./bin/generate-samples.sh
* [dart] Improve types & imports * don't use importMapping as it is intended for something different that is not possible in dart * introduce imports map for dart specific features * always import `dart:core` * get rid of additionalReservedWords * fix `--type-mappings` not working * use required type mappings in samples * no longer define additional reserved words as it is impossible to list all anyways, they can now be configured via type-mapping parameter * simplify dio imports * Don't use guava for map instantiation * Update docs
* fix: rename var * fix: run pr checklist scripts
* fix go comment typo insensitive * fix go comment typo response * update samples
* fix: rename var * fix: run pr checklist scripts * fix: correct response type var name for http client * chore: run build scripts * test: ci and correct name?
* add multiple frameworks support * test in appveyor * update samples
* fix by mapping outside of class * tests * regeneration and tests * server * INDENT * a * enable mapping * Revert "server" This reverts commit 6fc9712. * Samples regenerated Co-authored-by: Justin Black <[email protected]>
* Added int arrays parsing in parameters. Respect the 'required' property. * Replaced spaces with tabs * Generate samples with new spacing * Removed unused import * Merged with latest master
* 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 <[email protected]>
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 <[email protected]>
* 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
…ple (#9728) * update httpclient version, fix compilation issue in the sample * add new file
* sleep for 15 seconds after starting the server * fix sleep * set clone depth to 1
… be canceled or further manipulated. (#9693)
* moved switch to abstract * build samples * added nullable option to csproj * removed unused method * added switch back to aspnetcore * build samples
…iddleware to the postmiddleware (#9716) * pass init and url as returned by the premiddleware to the postmiddleware Current implementation will always pass the initial url and init object. However if a pre middleware changes returns an object whose `init` or `url` property refer to a different url string or object, any following post middleware wont have access to it. Effectively providing the post middleware with a completely different request information then what was actually used to make the fetch call. * update samples and docs
* [ci] Only run samples when they actually changed * in pull requests only run the samples that matter * if a sample is outdated it will still fail in the build pipeline * Test Kotlin sample changes * Revert Kotlin sample change
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6. - [Release notes](https://github.com/actions/cache/releases) - [Commits](actions/cache@v2.1.5...v2.1.6) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Add new configuration flags: REMOVE_OPERATION_ID_PREFIX_DELIMITER and REMOVE_OPERATION_ID_PREFIX_COUNT Add the corresponding fields in the DefaultCodegen Sanitize the operationId according to the new fields Add delimiter to list of nonNameElementPattern Add unit test
* generate docs for typescript * commit changed files
Thanks to Julian(jfastnacht) who started Slim3 generator and maintained it until Nov 27, 2017(latest PR). Since Slim4 codegen is based on deprecated Slim3 I greatly appreciate your commitment.
* [haskell][server]: Set "AnyType" to `Aeson.Value` `AnyType` would not be translated to the json value type. This fixes that. * [haskell][server] Fix haddock error in `API.hs` Haddock (the Haskell documentation generator) would choke on the misplaced docstring. The heading has to appear inside the list.
…ints (#9723) * map free-form objects to Dict[str, Any] * support Forward Type References Forward type references will be supported by default from Python 3.10 on only. Until then (and starting with Python 3.7), we can opt in by a __future__ import, cf. https://docs.python.org/3.9/whatsnew/3.7.html?highlight=forward#pep-563-postponed-evaluation-of-annotations * re-created pet-store sample * bump required Python version to 3.7 for generated FastAPI projects * make pydantic modell classes process forward type references
Add PATCH suppord.
Co-authored-by: Bernardo Pastorelli <[email protected]>
* fix compilation break with validate function * fix error handling in handleParsingException bug caused all errors to be regarded as an internal server error * generate samples
welshm
pushed a commit
that referenced
this pull request
May 30, 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.
Bring
welshm
fork up to master