-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[core] Refactor templating management #6357
[core] Refactor templating management #6357
Commits on May 22, 2020
-
[core] Refactor templating management
This refactors template management to get logic out of DefaultGenerator and to provide a cleaner API to template search and read/compile. Deprecates MockDefaultGenerator, which is not a mock and causes in-memory retention of file contents. Maintainers should prefer executing a "dryRun" with new DefaultGenerator(true) or do true mock/spies if evaluating template intermediaries is truly necessary. Tests may read written files with lower overhead than the in-process retention of those bytes. This attempts to maintain some compatibility with existing templating adapter interfaces. Any breaking change here would be unintentional but minimal effort to retarget the new interface.
Configuration menu - View commit details
-
Copy full SHA for 636c4dd - Browse repository at this point
Copy the full SHA 636c4ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for d67d3d4 - Browse repository at this point
Copy the full SHA d67d3d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66f49b6 - Browse repository at this point
Copy the full SHA 66f49b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a745de - Browse repository at this point
Copy the full SHA 6a745deView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1b23d9 - Browse repository at this point
Copy the full SHA a1b23d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3ccf3c - Browse repository at this point
Copy the full SHA f3ccf3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c3c28e - Browse repository at this point
Copy the full SHA 4c3c28eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb804a4 - Browse repository at this point
Copy the full SHA bb804a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecb985e - Browse repository at this point
Copy the full SHA ecb985eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f970e7c - Browse repository at this point
Copy the full SHA f970e7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8062b77 - Browse repository at this point
Copy the full SHA 8062b77View commit details -
Fix wrong use of libraries templateDirector (java)
The samples scripts for Java incorrectly referenced the libraries directories directly rather than the upper-level Java directory. This was incorrect usage of template directories, because the generator expects to be given the "language" directory and perform a lookup for missing templates in the order: * user defined libraries directory * user defined language root * embedded libraries directory * embedded language root * _common directory This is incorrect in our samples scripts because a user or maintainer has the expectation that any template change to files at the Java/ root should also be honored on generation if the script specifies a custom template directory.
Configuration menu - View commit details
-
Copy full SHA for 048cc6e - Browse repository at this point
Copy the full SHA 048cc6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5307f3 - Browse repository at this point
Copy the full SHA d5307f3View commit details -
Merge branch 'master' into cleanup-template-management
* master: [samples] Regenerate python-experimental [core][general] Add metadata file tracking to aid in "Golden Tests" regeneration (OpenAPITools#6325) [python-experimental] Add support for pep 3134, attach cause of exception (OpenAPITools#6388) [Java-jersey2] Add new ApiClient constructor with auth objects (OpenAPITools#6393)
Configuration menu - View commit details
-
Copy full SHA for e267159 - Browse repository at this point
Copy the full SHA e267159View commit details
Commits on May 23, 2020
-
Fix handlebars extension usage, clean up Meta tasks
HandlebarseEngineAdapter previously didn't handle files without extensions in the same was as the MustacheEngineAdapter. This now allows for files without extension (or dotfiles) to lookup in the same location. Meta tasks are cleaned up to use template manager only, rather than attempting to create an "empty" generator to use the previous templating specific methods.
Configuration menu - View commit details
-
Copy full SHA for edaa592 - Browse repository at this point
Copy the full SHA edaa592View commit details -
Merge branch 'master' into cleanup-template-management
* master: update java jersey2 samples [Java] Fix mustache tag in pom template for HTTP signature (OpenAPITools#6404) [Python-experimental] Rename from_server variable to json_variable_naming (OpenAPITools#6390) Add a link to medium blog post (OpenAPITools#6403) Clean up debug in test (OpenAPITools#6398) readding bin/swift5-petstore-readonlyProperties.json remove ./bin/swift5-petstore-readonlyProperties.json
Configuration menu - View commit details
-
Copy full SHA for ccbcf6f - Browse repository at this point
Copy the full SHA ccbcf6fView commit details -
Merge branch 'master' into cleanup-template-management
* master: decomission nodejs server generator (OpenAPITools#6406) [Java] Generate valid code if no Authentication implementations present (OpenAPITools#5788)
Configuration menu - View commit details
-
Copy full SHA for ef4e835 - Browse repository at this point
Copy the full SHA ef4e835View commit details -
Merge branch 'master' into cleanup-template-management
* master: [java-jersey2] Conditionally include http signature mustache template (OpenAPITools#6413) [bug] Fix path provider bug on CI (OpenAPITools#6409)
Configuration menu - View commit details
-
Copy full SHA for 00ebf20 - Browse repository at this point
Copy the full SHA 00ebf20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f6368c - Browse repository at this point
Copy the full SHA 5f6368cView commit details
Commits on May 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9b046c2 - Browse repository at this point
Copy the full SHA 9b046c2View commit details -
Rename GraphQL .gitignore template
The .gitignore file is unable to load via classpath resource from the graphql node server resource directory (for unknown reasons). Before this change, the missing template would fail silently. A .gitignore file may exist in other directories and load as expected. Added a default .gitignore to _common as a fallback so as not to break any custom generators which may also be failing silently.
Configuration menu - View commit details
-
Copy full SHA for 8943146 - Browse repository at this point
Copy the full SHA 8943146View commit details -
Configuration menu - View commit details
-
Copy full SHA for d256cec - Browse repository at this point
Copy the full SHA d256cecView commit details -
Rename PHP .gitignore to gitignore
Java resources may not load .gitignore, this follows suit with other generators and uses "gitignore" (some use "gitignore.mustache").
Configuration menu - View commit details
-
Copy full SHA for 33f89fd - Browse repository at this point
Copy the full SHA 33f89fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ea7469 - Browse repository at this point
Copy the full SHA 3ea7469View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc86eea - Browse repository at this point
Copy the full SHA bc86eeaView commit details
Commits on May 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e934bec - Browse repository at this point
Copy the full SHA e934becView commit details
Commits on May 27, 2020
-
Merge branch 'master' into cleanup-template-management
* master: [kotlin][client] add support for coroutines with OkHttp (OpenAPITools#6362) update package-json.lock (OpenAPITools#6430) fix hardcoded match type (OpenAPITools#6431) java jersey2 enhance anyOf (OpenAPITools#6420) [Java][jersey2] minor improvement to jersey2 tests (OpenAPITools#6418) ps minor style change (OpenAPITools#6424) [JS] mark ES5 as deprecated (OpenAPITools#6408) [ci] Execute maven and verify with no-snapshot-updates (OpenAPITools#6415) add new file in ts axios samples Migrate all scala generators to use OAS3 (OpenAPITools#6407) migrate ruby samples to oas3 (OpenAPITools#6414) [PS] check if JSON properties is defined (OpenAPITools#6419) Add C++ UE4 client generator (OpenAPITools#6399) Add a link to the article in dev.to (OpenAPITools#6421) typescript-axios anytype is not defined (OpenAPITools#6335) [Java][jersey2] Make (de)serialization work for oneOf models, add convenience and comparison methods (OpenAPITools#6323) Migrate OCaml petstore to use OAS v3 spec (OpenAPITools#6348) [Python-experimental] Fix type error if oneof/anyof child schema is null type (OpenAPITools#6387) [Python-server] Fix blueplanet 'file not found' error (OpenAPITools#6411) [nodejs] Fix deprecation notice when running sample nodejs script (OpenAPITools#6412)
Configuration menu - View commit details
-
Copy full SHA for 062b4d2 - Browse repository at this point
Copy the full SHA 062b4d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8faa776 - Browse repository at this point
Copy the full SHA 8faa776View commit details
Commits on May 28, 2020
-
Merge branch 'master' into cleanup-template-management
* master: Fix ruby deprecation error (OpenAPITools#6450) [Java][Feign] decommission 9.x support (OpenAPITools#6445) fix struct export in rust reqwest (OpenAPITools#6453) [Rust][reqwest] add tests to CI (OpenAPITools#6454) set pester version (OpenAPITools#6448) update datadog logo update groovy petstore samples add datadog as sponsor (OpenAPITools#6444) Migrate Groovy samples to oas3 (OpenAPITools#6435) [samples] Renerate Kotlin coroutines
Configuration menu - View commit details
-
Copy full SHA for e3dcb2f - Browse repository at this point
Copy the full SHA e3dcb2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff91eec - Browse repository at this point
Copy the full SHA ff91eecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a982d4 - Browse repository at this point
Copy the full SHA 9a982d4View commit details
Commits on May 30, 2020
-
Merge branch 'master' into cleanup-template-management
* master: [PS] Refactor the http signing auth with ecdsa support (OpenAPITools#6397) [Rust Server] Hyper 0.13 + Async/Await support (OpenAPITools#6244) [Rust] set supportAsync to true as the default (OpenAPITools#6480) [php-symfony] Set required PHP version ^7.1.3 (OpenAPITools#6181) update doc [csharp] Rename netstandard to netstandard1.3 (OpenAPITools#6460) feat: support deprecated parameters for typescript-axios generator (OpenAPITools#6475) [REQ][typescript-axios] useSingleRequestParameter should mark parameter optional if all properties are optional (OpenAPITools#6477) better struct alias in rust (OpenAPITools#6470) Migrate Go server samples to OAS 3 only (OpenAPITools#6471) [Rust][reqwest] add async support (OpenAPITools#6464) [codegen][python-experimental] Composed schema with additionalProperties (OpenAPITools#6290) [Java] Decommission Retrofit 1.x support (OpenAPITools#6447) remove scala oas3 samples (OpenAPITools#6446) [Java][jersey2] Fix RuntimeException when HTTP signature parameters are not configured (OpenAPITools#6457) [Java][jersey2] Improve http signature code comments (OpenAPITools#6463) [typescript-angular] drop support of angular below 6.0.0 (OpenAPITools#6360) [cli] new 'author template' command (OpenAPITools#6441) python-experimental updates ancestor + adds descendant discriminator tests (OpenAPITools#6417)
Configuration menu - View commit details
-
Copy full SHA for 5166440 - Browse repository at this point
Copy the full SHA 5166440View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2033a90 - Browse repository at this point
Copy the full SHA 2033a90View commit details