mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
C# Netcore WebRequest and HttpClient functionality (#8821)
* Add switch to disable RestSharp * Introduce CLI Option for webRequestLibrary * Fix missing brace * Remove restsharp references * HttpClient added * WebRequest NewRequest functionality added * WebRequest added to CLIOptions * Add custom HttpMethod only for Restsharp. * Add WebRequestPathBuilder.mustache * HttpClient NewRequest * Add using Statement to WebRequestPathBuilder.mustache * Adjusts retry configuration for HttpClient * Reuse JsonDecoder * Make reusing the client a separate option * Save cookies in request * Implement more methods for HttpClient * Small fixes * Fix post content * Add new sample config * Update existing samples * Add new sample * Add new property supportsRetry * Use new property to exclude RetryConfiguration * Exclude Polly on non supporting Retry * Update sample and documentation * Create HttpMethod Patch for netstandard 2.0 compatibility * Fix query parameter generation * Switch to library settings * Allow httpclient reuse (experimental) * Remove webrequest from template as its not used right now
This commit is contained in:
@@ -12,6 +12,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
|
||||
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true|
|
||||
|interfacePrefix|Prefix interfaces with a community standard or widely accepted prefix.| |I|
|
||||
|library|HTTP library template (sub-template) to use|<dl><dt>**httpclient**</dt><dd>HttpClient (https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient) (Beta support)</dd><dt>**restsharp**</dt><dd>RestSharp (https://github.com/restsharp/RestSharp)</dd></dl>|restsharp|
|
||||
|licenseId|The identifier of the license| |null|
|
||||
|modelPropertyNaming|Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name| |PascalCase|
|
||||
|netCoreProjectFile|Use the new format (.NET Core) for .NET project files (.csproj).| |false|
|
||||
|
||||
Reference in New Issue
Block a user