Skip to content

Commit

Permalink
Merge pull request #1581 from microsoft/feature/normalizes-loglevel
Browse files Browse the repository at this point in the history
feature/normalizes loglevel
  • Loading branch information
baywet authored May 20, 2022
2 parents eb7bd85 + c3ad6db commit 77240ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/using.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kiota (--openapi | -d) <path>
[(--output | -o) <path>]
[(--class-name | -c) <name>]
[(--namespace-name | -n) <name>]
[(--loglevel | --ll) <level>]
[(--log-level | --ll) <level>]
[--backing-store | -b]
[(--serializer | -s) <classes>]
[(--deserializer | --ds) <classes>]
Expand Down Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion src/kiota/KiotaHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public RootCommand GetRootCommand()
namespaceOption.ArgumentHelpName = "name";
AddStringRegexValidator(namespaceOption, @"^[\w][\w\._-]+", "namespace name");

var logLevelOption = new Option<LogLevel>("--loglevel", () => LogLevel.Warning, "The log level to use when logging messages to the main output.");
var logLevelOption = new Option<LogLevel>("--log-level", () => LogLevel.Warning, "The log level to use when logging messages to the main output.");
logLevelOption.AddAlias("--ll");
AddEnumValidator(logLevelOption, "log level");

Expand Down

0 comments on commit 77240ec

Please sign in to comment.