-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1010 from christianhelle/kiota-v1.19.0
- Loading branch information
Showing
8 changed files
with
81 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 37 additions & 33 deletions
70
src/Core/ApiClientCodeGen.Core/Generators/Kiota/KiotaConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,55 @@ | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
public class KiotaConfiguration | ||
{ | ||
[JsonPropertyName("descriptionHash")] | ||
public string? DescriptionHash { get; set; } | ||
namespace Rapicgen.Core.Generators.Kiota; | ||
|
||
[JsonPropertyName("descriptionLocation")] | ||
public string? DescriptionLocation { get; set; } | ||
public class KiotaConfiguration | ||
{ | ||
[JsonPropertyName("descriptionHash")] | ||
public string? DescriptionHash { get; set; } | ||
|
||
[JsonPropertyName("lockFileVersion")] | ||
public string? LockFileVersion { get; set; } | ||
[JsonPropertyName("descriptionLocation")] | ||
public string? DescriptionLocation { get; set; } | ||
|
||
[JsonPropertyName("kiotaVersion")] | ||
public string? KiotaVersion { get; set; } | ||
[JsonPropertyName("lockFileVersion")] | ||
public string? LockFileVersion { get; set; } | ||
|
||
[JsonPropertyName("clientClassName")] | ||
public string? ClientClassName { get; set; } | ||
[JsonPropertyName("kiotaVersion")] | ||
public string? KiotaVersion { get; set; } | ||
|
||
[JsonPropertyName("clientNamespaceName")] | ||
public string? ClientNamespaceName { get; set; } | ||
[JsonPropertyName("clientClassName")] | ||
public string? ClientClassName { get; set; } | ||
|
||
[JsonPropertyName("typeAccessModifier")] | ||
public TypeAccessModifier? TypeAccessModifier { get; set; } | ||
|
||
[JsonPropertyName("language")] | ||
public string? Language { get; set; } | ||
[JsonPropertyName("clientNamespaceName")] | ||
public string? ClientNamespaceName { get; set; } | ||
|
||
[JsonPropertyName("usesBackingStore")] | ||
public bool UsesBackingStore { get; set; } | ||
[JsonPropertyName("language")] | ||
public string? Language { get; set; } | ||
|
||
[JsonPropertyName("includeAdditionalData")] | ||
public bool IncludeAdditionalData { get; set; } | ||
[JsonPropertyName("usesBackingStore")] | ||
public bool UsesBackingStore { get; set; } | ||
|
||
[JsonPropertyName("serializers")] | ||
public List<string>? Serializers { get; set; } | ||
[JsonPropertyName("includeAdditionalData")] | ||
public bool IncludeAdditionalData { get; set; } | ||
|
||
[JsonPropertyName("deserializers")] | ||
public List<string>? Deserializers { get; set; } | ||
[JsonPropertyName("serializers")] | ||
public List<string>? Serializers { get; set; } | ||
|
||
[JsonPropertyName("structuredMimeTypes")] | ||
public List<string>? StructuredMimeTypes { get; set; } | ||
[JsonPropertyName("deserializers")] | ||
public List<string>? Deserializers { get; set; } | ||
|
||
[JsonPropertyName("includePatterns")] | ||
public List<string>? IncludePatterns { get; set; } | ||
[JsonPropertyName("structuredMimeTypes")] | ||
public List<string>? StructuredMimeTypes { get; set; } | ||
|
||
[JsonPropertyName("excludePatterns")] | ||
public List<string>? ExcludePatterns { get; set; } | ||
[JsonPropertyName("includePatterns")] | ||
public List<string>? IncludePatterns { get; set; } | ||
|
||
[JsonPropertyName("disabledValidationRules")] | ||
public List<object>? DisabledValidationRules { get; set; } | ||
} | ||
[JsonPropertyName("excludePatterns")] | ||
public List<string>? ExcludePatterns { get; set; } | ||
|
||
[JsonPropertyName("disabledValidationRules")] | ||
public List<object>? DisabledValidationRules { get; set; } | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Core/ApiClientCodeGen.Core/Generators/Kiota/TypeAccessModifier.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Rapicgen.Core.Generators.Kiota; | ||
|
||
[JsonConverter(typeof(JsonStringEnumConverter))] | ||
public enum TypeAccessModifier | ||
{ | ||
Public, | ||
Internal, | ||
Private, | ||
Protected | ||
} |
5 changes: 4 additions & 1 deletion
5
src/Core/ApiClientCodeGen.Core/Options/Kiota/DefaultKiotaOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
namespace Rapicgen.Core.Options.Kiota | ||
using Rapicgen.Core.Generators.Kiota; | ||
|
||
namespace Rapicgen.Core.Options.Kiota | ||
{ | ||
public class DefaultKiotaOptions : IKiotaOptions | ||
{ | ||
public bool GenerateMultipleFiles { get; set; } = false; | ||
public TypeAccessModifier TypeAccessModifier { get; set; } = TypeAccessModifier.Public; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
namespace Rapicgen.Core.Options.Kiota | ||
using Rapicgen.Core.Generators.Kiota; | ||
|
||
namespace Rapicgen.Core.Options.Kiota | ||
{ | ||
public interface IKiotaOptions | ||
{ | ||
bool GenerateMultipleFiles { get; } | ||
|
||
TypeAccessModifier TypeAccessModifier { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters