You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generators/powershell.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,15 @@ These options may be applied as additional-properties (cli) or configOptions (pl
11
11
|commonVerbs|PS common verb mappings. e.g. Delete=Remove:Patch=Update to map Delete with Remove and Patch with Update accordingly.||null|
12
12
|disallowAdditionalPropertiesIfNotPresent|Specify the behavior when the 'additionalProperties' keyword is not present in the OAS document. If false: the 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications. If true: when the 'additionalProperties' keyword is not present in a schema, the value of 'additionalProperties' is set to false, i.e. no additional properties are allowed. Note: this mode is not compliant with the JSON schema specification. This is the original openapi-generator behavior.This setting is currently ignored for OAS 2.0 documents: 1) When the 'additionalProperties' keyword is not present in a 2.0 schema, additional properties are NOT allowed. 2) Boolean values of the 'additionalProperties' keyword are ignored. It's as if additional properties are NOT allowed.Note: the root cause are issues #1369 and #1371, which must be resolved in the swagger-parser project.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>when the 'additionalProperties' keyword is not present in a schema, the value of 'additionalProperties' is automatically set to false, i.e. no additional properties are allowed. Note: this mode is not compliant with the JSON schema specification. This is the original openapi-generator behavior.</dd></dl>|true|
13
13
|discardReadOnly|Set discardReadonly to true to generate the Initialize cmdlet without readonly parameters||null|
14
+
|iconUri|A URL to an icon representing the generated PowerShell module||null|
15
+
|licenseUri|A URL to the license for the generated PowerShell module||null|
14
16
|packageGuid|GUID for PowerShell module (e.g. a27b908d-2a20-467f-bc32-af6f3a654ac5). A random GUID will be generated by default.||null|
15
17
|packageName|Client package name (e.g. PSTwitter).||PSOpenAPITools|
16
18
|packageVersion|Package version (e.g. 0.1.2).||0.1.2|
17
19
|powershellGalleryUrl|URL to the module in PowerShell Gallery (e.g. https://www.powershellgallery.com/packages/PSTwitter/).||null|
20
+
|projectUri|A URL to the main website for this project||null|
21
+
|releaseNotes|Release notes of the generated PowerShell module||null|
22
+
|tags|Tags applied to the generated PowerShell module. These help with module discovery in online galleries||null|
18
23
|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and onlye one match in oneOf's schemas) will be skipped.||null|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java
+69Lines changed: 69 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,11 @@ public class PowerShellClientCodegen extends DefaultCodegen implements CodegenCo
55
55
protectedHashSetmethodNames; // store a list of method names to detect duplicates
56
56
protectedbooleanuseOneOfDiscriminatorLookup = false; // use oneOf discriminator's mapping for model lookup
57
57
protectedbooleandiscardReadOnly = false; // Discard the readonly property in initialize cmdlet
58
+
protectedStringprojectUri;
59
+
protectedStringlicenseUri;
60
+
protectedStringreleaseNotes;
61
+
protectedStringtags;
62
+
protectedStringiconUri;
58
63
59
64
/**
60
65
* Constructs an instance of `PowerShellClientCodegen`.
@@ -501,6 +506,11 @@ public PowerShellClientCodegen() {
501
506
cliOptions.add(newCliOption("commonVerbs", "PS common verb mappings. e.g. Delete=Remove:Patch=Update to map Delete with Remove and Patch with Update accordingly."));
0 commit comments