From 1a6c37a4731b6cacc10f4f8e91f41b6465c98127 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Fri, 20 May 2022 10:26:13 -0400 Subject: [PATCH 1/2] - normalizes the log level parameter name Signed-off-by: Vincent Biret --- docs/using.md | 4 ++-- src/kiota/KiotaHost.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/using.md b/docs/using.md index 3efe7364b6..dfdd89041b 100644 --- a/docs/using.md +++ b/docs/using.md @@ -17,7 +17,7 @@ kiota (--openapi | -d) [(--output | -o) ] [(--class-name | -c) ] [(--namespace-name | -n) ] - [(--loglevel | --ll) ] + [(--log-level | --ll) ] [--backing-store | -b] [(--serializer | -s) ] [(--deserializer | --ds) ] @@ -100,7 +100,7 @@ One or more module names that implements `IParseNodeFactory`. kiota --deserializer Contoso.Json.CustomDeserializer ``` -### `--loglevel (--ll)` +### `--log-level (--ll)` The log level to use when logging events to the main output. Defaults to `warning`. diff --git a/src/kiota/KiotaHost.cs b/src/kiota/KiotaHost.cs index 4d0792b9cd..5d5366a4b7 100644 --- a/src/kiota/KiotaHost.cs +++ b/src/kiota/KiotaHost.cs @@ -45,7 +45,7 @@ public RootCommand GetRootCommand() namespaceOption.ArgumentHelpName = "name"; AddStringRegexValidator(namespaceOption, @"^[\w][\w\._-]+", "namespace name"); - var logLevelOption = new Option("--loglevel", () => LogLevel.Warning, "The log level to use when logging messages to the main output."); + var logLevelOption = new Option("--log-level", () => LogLevel.Warning, "The log level to use when logging messages to the main output."); logLevelOption.AddAlias("--ll"); AddEnumValidator(logLevelOption, "log level"); From c3ad6db489bc3fdb3d5b75b1c9967ca22b3103dc Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Fri, 20 May 2022 10:28:07 -0400 Subject: [PATCH 2/2] - adds changelog entry for loglevel rename Signed-off-by: Vincent Biret --- CHANGELOG.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 308a32a7d0..3229bbf4fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,10 +33,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed a bug where nullable wrapper schema flattening would ignore some composed type options. - Fixed a bug where arrays without items definition would derail generation. - Fixed a bug with enums detection for generation. (interpreted as string) -- Fixes a bug where classes names cleanup could end-up in a collision. -- Fixes a bug where null reference exception would be thrown when trying to lookup type inheritance on discriminators -- Fixes the lookup of model namespaces to only look in the target namespace to avoid reference collissions -- Fixes a bug for the generated send method for paths returning Enums in dotnet. +- Fixed a bug where classes names cleanup could end-up in a collision. +- Fixed a bug where null reference exception would be thrown when trying to lookup type inheritance on discriminators +- Fixed the lookup of model namespaces to only look in the target namespace to avoid reference collisions. +- Fixed a bug for the generated send method for paths returning Enums in dotnet. +- Breaking: renamed the --loglevel parameter to --log-level. ## [0.1.3] - 2022-05-06