Skip to content

Commit 54ddb78

Browse files
committed
remove licenseHeader option
1 parent f40f790 commit 54ddb78

4 files changed

Lines changed: 0 additions & 6 deletions

File tree

docs/generators/elixir.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
2424
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
2525
|invokerPackage|The main namespace to use for all classes. e.g. Yay.Pets| |null|
2626
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C# have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
27-
|licenseHeader|The license header to prepend to the top of all source files.| |null|
2827
|packageName|Elixir package name (convention: lowercase).| |null|
2928
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
3029
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElixirClientCodegen.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ public ElixirClientCodegen() {
233233

234234
cliOptions.add(new CliOption(CodegenConstants.INVOKER_PACKAGE,
235235
"The main namespace to use for all classes. e.g. Yay.Pets"));
236-
cliOptions.add(new CliOption("licenseHeader", "The license header to prepend to the top of all source files."));
237236
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME, "Elixir package name (convention: lowercase)."));
238237
}
239238

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
{{#licenseHeader}}{{.}}
2-
3-
{{/licenseHeader}}
41
# NOTE: This file is auto generated by OpenAPI Generator {{generatorVersion}} (https://openapi-generator.tech).
52
# Do not edit this file manually.

modules/openapi-generator/src/test/java/org/openapitools/codegen/options/ElixirClientOptionsProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public Map<String, String> createOptions() {
4141
.put(CodegenConstants.ENSURE_UNIQUE_PARAMS, "false")
4242
.put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, "false")
4343
.put(CodegenConstants.INVOKER_PACKAGE, "Yay.Pets")
44-
.put("licenseHeader", "# Copyright 2017 Me\n#\n# Licensed under the Apache License")
4544
.put(CodegenConstants.PACKAGE_NAME, "yay_pets")
4645
.put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)
4746
.put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true")

0 commit comments

Comments
 (0)