Skip to content
Branch: master
Commits on Jul 18, 2019
  1. [fix] Assign template directory to additional properties (#3385)

    jimschubert committed Jul 18, 2019
    * [fix] Assign template directory to additional properties
Commits on Jul 13, 2019
  1. Updates to address recent lodash Object prototype vulnerability (#3348)

    jimschubert authored and wing328 committed Jul 13, 2019
Commits on Jul 7, 2019
  1. [online] Remove GENERATOR_HOST defaults (#3289)

    jimschubert committed Jul 7, 2019
    The defaults configured for GENERATOR_HOST didn't really make sense.
    When running the docker container with `-P`, GENERATOR_HOST defaulted to
    http://localhost. This caused download links for generated client/server
    code to be incorrect. For most cases, there's no reason to provide
    GENERATOR_HOST as the code already figures the appropriate
    scheme/host/port from the originating request.
    GENERATOR_HOST could still be used for more complex deployment
    scenarios, for instance if a specific server is configured as a file
    server. I haven't tested this scenario, and it may require mounting /tmp
    as a volume when running within a container.
Commits on Jul 6, 2019
  1. [online] Revert GENERATOR_HOST explicit setting (#3287)

    jimschubert committed Jul 6, 2019
Commits on Jul 2, 2019
  1. [online] Honor generator environment variable and system property (#3265

    jimschubert committed Jul 2, 2019
    Previously, this pulled from the GENERATOR_HOST system property. This
    should have been an environment variable. Fallback is now
    system property.
  2. [online] Honor GENERATOR_HOST env variable (#3263)

    jimschubert committed Jul 2, 2019
    This sets "host" appropriately to the published host when GENERATOR_HOST
    is configured.
Commits on Jun 30, 2019
  1. [online] Apidocs ui (#3229)

    jimschubert committed Jun 30, 2019
    * [online] Use rapidoc UI for api documentation
Commits on Jun 24, 2019
  1. [core] Initial implementation of a validation framework in core (#3183)

    jimschubert committed Jun 24, 2019
    * Initial implementation of a validation framework in core
    * Print surefire summary (helps evaluate errors)
    * Bump versions: surefire plugin,jmockit
    * Depend on jmockit within maven-surefire-plugin which requires it
  2. Release versioning helper script(s) (#3110)

    jimschubert committed Jun 24, 2019
    * Release versioning script with marker tags.
    Introduces which supports moving from version to version but
    only within delimiting marker tags in the target file.
    This script currently doesn't do validations or anything fancy.
    * Allow bumping version according to type (major,minor,build,revision)
    * will display error if file contents are unchanged
Commits on Jun 8, 2019
  1. [gradle] Document consuming via gradle plugin portal (#3125)

    jimschubert committed Jun 8, 2019
Commits on Jun 7, 2019
  1. [core] GeneratorSettings, WorkflowSettings, and cleanup in CodegenCon…

    jimschubert committed Jun 7, 2019
    …figurator (#2946)
    * Introduce GeneratorSettings + cleanup
    GeneratorSettings is an immutable settings object, intended to limit the
    manipulation of generator settings.
    To move to GeneratorSettings, lots of modification was done to
    CodegenConfigurator. The goal  here is that CodegenConfigurator
    would create the contextual information required to initiate a
    generator run:
    * GeneratorSettings
    * Workflow related settings
    * Configuring "system" GeneratorProperties (ThreadLocal properties)
    * Deserializing from file to config object
    * Input spec document (OpenAPI, intending to target others)
    ClientOpts was generally unused, and the few places it was being used
    have been updated to pass the properties to
    * Add sanity to system properties
    The -D argument for the generate command is an application argument
    which is easily confused for Java System Properties. This isn't the
    case, as setting values here doesn't update the configuration in
    This adds a warning and deprecation to that option, as defining these
    values as system properties will also continue to work as expected. This
    makes the -D application argument redundant and confusing.
    * Contextualize generator/workflow settings
    This splits settings relevant to generator configuration (the what) and
    workflow configuration (the how) in an attempt to make configuration
    easier to conceptualize.
    * Update Gradle task w/ CodegenConfigurator setters
    * Remove -D usage in scripts
    * Add -p option for additional properties
    * Regnerate samples
Commits on Jun 6, 2019
  1. Add/update new core team member: etherealjoy (#3116)

    jimschubert committed Jun 6, 2019
  2. Gradle sample on travis (#3114)

    jimschubert committed Jun 6, 2019
    * Explicitly ignore .bak in gradle samples directory
    * Add gradle wrapper to local-spec sample, make .java-version (jenv local) be less machine specific
    * Include gradle plugin samples in travis build
Commits on Jun 2, 2019
  1. Updates sample generated content (#3068)

    jimschubert committed Jun 2, 2019
    Generates samples to match with code introduced in #2934.
  2. [gradle plugin] Release 4.0.1 fixes (#3051)

    jimschubert committed Jun 2, 2019
    Fixes issues found during the 4.0.1 release
Commits on May 31, 2019
  1. [gradle] Reworking publishing pipeline (#2886)

    jimschubert authored and wing328 committed May 31, 2019
    * [gradle] Reworking publishing pipeline
    TravisCI proxies separate external requests with different orginating IP
    addresses, while Sonatype associates artifacts for auto-generated
    repositories by IP address. This leads to many gradle deploys from CI
    resulting in "split" staging repositories with no way to combine in
    Sonatype Nexus.
    This introduces a workflow which should resolve this issue on the next
    revision release. Specifically, nexus-publish-plugin is included to
    create singular staging repositories from TravisCI and
    gradle-nexus-staging-plugin is included to auto-release and promote
    this repository.
    We need to publish via publishPluginMavenPublicationToNexusRepository,
    because publishToNexus will publish _all_ publish-related tasks,
    including the one intended only for the Gradle Plugin Portal.
    Tested in standalone open source Nexus Repo Manager, which doesn't
    support the staging plugin. So, only SNAPSHOT workflow has been
    validated locally.
    * Change the 'publish' task to 'publishToMavenLocal' in the helper pom.xml
    * Add condition on signing and be explicit about sources/javadoc artifacts
    * Call close/closeAndReleaseRepository
    * Reuse same closeAndReleaseRepository for SNAPSHOT + releases using a task guard, and publish to Gradle Plugin portal only on tagged build.
    * Add v prefix for tag check.
Commits on May 21, 2019
  1. [build] Avoid caching openapitools* artifacts (#2885)

    jimschubert committed May 21, 2019
Commits on May 6, 2019
  1. [gradle] Display non-Stable generator stability in parens on openApiG…

    jimschubert committed May 6, 2019
    …enerators task (#2826)
Commits on May 5, 2019
  1. [feat] Intro GeneratorMetadata (stability index) (#2816)

    jimschubert committed May 5, 2019
    * [feat] Intro GeneratorMetadata (stability index)
    GeneratorMetadata offers an immutable object created via Builder pattern
    which allows generators to explicitly define their stability (stable,
    beta, experimental, deprecated) as well as a message to be shown during
    This is a step toward:
    * Fleshing out the "Core" artifact (#845)
    * Providing a place to encapsulate feature-oriented metadata (#840)
    * Providing a means to communicate end of life scheduling (#116)
    This new structure, specifically the Stability property, allows us to
    offer future enhancements such as allowing users to filter down to only
    "Stable" generators via CLI, and eventually any compat table (see #503).
    * Mark deprecated generators as deprecated in-code
    * Re-export docs/
  2. [travis] Avoiding build timeouts, removing (#2820)

    jimschubert committed May 5, 2019
    * Removes from travis build
    * Updates so it will cache to a volume-bound .m2/repository directory as intended
  3. [docs] Document new templating engine, adding ability to reference te…

    jimschubert authored and wing328 committed May 5, 2019
    …mplates by file to comlete the example (#2773)
Commits on May 4, 2019
  1. Clarifies need to build project for sample output (#2819)

    jimschubert committed May 4, 2019
    PR template seems to assume contributor is compiling the project, and would have had "latest" build completed locally. New contributors making template or documentation changes may not have built the project at all, and wouldn't know to do so based on previous PR template instructions.
Commits on May 3, 2019
  1. Apply strict spec option to CodegenConfig instance (#2814)

    jimschubert committed May 3, 2019
  2. [all] Adds strict spec option (#2783)

    jimschubert committed May 3, 2019
    * [all] Adds strict spec option
    Introduces an option to allow user customization of strict specification
    behaviors. For instance, OpenAPI 3.x requires a path object name to be
    prefixed with '/' so we append any missing '/', but this may not be
    desirable to some users or generators. In this commit, this fix specifically is
    the only modification affected.
    * Clarify strict-spec docs, add option to
    * Update CLI options in docs/
Commits on May 2, 2019
  1. [general] Remove swagger-codegen "lang" mappings (#2785)

    jimschubert authored and wing328 committed May 2, 2019
    For 4.0.0, we've removed the "lang" option. This removes any mappings
    from swagger-codegen "lang" to openapi-generator "generator" options.
Commits on Apr 30, 2019
  1. [cli][gradle] Adds package name as a global option (#2557)

    jimschubert authored and wing328 committed Apr 30, 2019
    * [cli] Support packageName as global option
    CLI supports other package-related options (--api-package,
    --model-package, --invoker-package). This aligns those options with
    --package-name to avoid confusion about how to configure these options
    where those are supported.
    This intentionally does not apply a packageName getter/setter to
    DefaultCodegen to reduce the footprint of this change.
    * [gradle] Add packagName as global option
    This makes packageName available as a global option, beside apiPackage,
    modelPackage, and invokerPackage to reduce potential confusion about how
    to configure the four of these options by generators which support them.
Commits on Apr 29, 2019
  1. Load TemplatingEngineAdapter via Service Provider (#2755)

    jimschubert committed Apr 29, 2019
Commits on Apr 26, 2019
  1. Feature: Experimental Handlebars support (rienafairefr) (#2657)

    jimschubert committed Apr 26, 2019
    * new module: openapi-generator-core
    * templating engine adapters to support extension (currently only Handlebars)
    * new `-e` templating engine CLI option
    * adapt Generator to process Template with the passed TemplatingEngineAdpater
    * add a MustacheEngineAdapter to the codegen in the unit tests
    * force default MustacheEngineAdapter
    * copy new core module in the root Dockerfile
    * add processTemplatingEngine to CodegenConfig, to be overriden by Codegen classes if needed
    * support multiple file extensions per templating engine adapter
    * Extends handlebars experimental adapter with explicit contextual resolvers (e.g. map processing)
    * Add new openapi-generator-core/pom.xml to
    * A detailed message will be logged on missing handlebars helper
    * Adds README documentation around template default and beta options
    * Moves mustache package under new templating package
    * Include built-in handlebars helpers which require explicit registration, and custom `startsWith` helper.
Commits on Apr 9, 2019
  1. [maven] remove validateSpec (#2614)

    jimschubert authored and wing328 committed Apr 9, 2019
    Aligning the option with CLI and Gradle Plugin, this keeps
    `skipValidateSpec` and removes the redundant `validateSpec`.
Commits on Apr 2, 2019
  1. [aspnetcore] Feature/cleanup (contributor rebase) (#2506)

    jimschubert committed Apr 2, 2019
    * Add optValue to CliOption
    * Fix compilation with ASP.Net Core 2.1
    * Add ASP.Net core 2.2
    * Use CliOption for classModifier, operationModifier, buildTarget, add ASP.Net core 2.2
    * Make abstract method look cleaner
    * Update docs
    * Regenerate sample
Commits on Mar 26, 2019
  1. Remove gradle portal for snapshot publish, as the portal does not ove…

    jimschubert committed Mar 26, 2019
    …rwrite previous snapshots
  2. Include system properties for gradle publishing

    jimschubert committed Mar 26, 2019
  3. [gradle] Sign on gradle portal plugin publishing

    jimschubert committed Mar 26, 2019
Commits on Mar 25, 2019
  1. Publish to gradle plugin prior to sonatype (#2496)

    jimschubert committed Mar 25, 2019
Commits on Mar 19, 2019
  1. Initial attempt at deploying to gradle plugin portal (#2440)

    jimschubert authored and wing328 committed Mar 19, 2019
You can’t perform that action at this time.