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
The ValidationError_errors generates a Repos type instead of a ValidationError_errors_value
usingMicrosoft.Kiota.Abstractions.Serialization;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem;namespaceApiSdk.Models{publicclassValidationError_errors:IAdditionalDataHolder,IParsable{/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>publicIDictionary<string,object>AdditionalData{get;set;}/// <summary>The code property</summary>
#if NETSTANDARD2_1_OR_GREATER||NETCOREAPP3_1_OR_GREATER
#nullable enable
publicstring?Code{get;set;}
#nullable restore
#else
publicstringCode{get;set;}
#endif
/// <summary>The field property</summary>
#if NETSTANDARD2_1_OR_GREATER||NETCOREAPP3_1_OR_GREATER
#nullable enable
publicstring?Field{get;set;}
#nullable restore
#else
publicstringField{get;set;}
#endif
/// <summary>The index property</summary>publicint?Index{get;set;}/// <summary>The message property</summary>
#if NETSTANDARD2_1_OR_GREATER||NETCOREAPP3_1_OR_GREATER
#nullable enable
publicstring?Message{get;set;}
#nullable restore
#else
publicstringMessage{get;set;}
#endif
/// <summary>The resource property</summary>
#if NETSTANDARD2_1_OR_GREATER||NETCOREAPP3_1_OR_GREATER
#nullable enable
publicstring?Resource{get;set;}
#nullable restore
#else
publicstringResource{get;set;}
#endif
/// <summary>The value property</summary>
#if NETSTANDARD2_1_OR_GREATER||NETCOREAPP3_1_OR_GREATER
#nullable enable
publicRepos?Value{get;set;}
#nullable restore
#else
publicReposValue{get;set;}
#endif
/// <summary>/// Instantiates a new validationError_errors and sets the default values./// </summary>publicValidationError_errors(){AdditionalData=newDictionary<string,object>();}/// <summary>/// Creates a new instance of the appropriate class based on discriminator value/// </summary>/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>publicstaticValidationError_errorsCreateFromDiscriminatorValue(IParseNodeparseNode){_=parseNode??thrownewArgumentNullException(nameof(parseNode));returnnewValidationError_errors();}/// <summary>/// The deserialization information for the current model/// </summary>publicIDictionary<string,Action<IParseNode>>GetFieldDeserializers(){returnnewDictionary<string,Action<IParseNode>>{{"code", n =>{Code=n.GetStringValue();}},{"field", n =>{Field=n.GetStringValue();}},{"index", n =>{Index=n.GetIntValue();}},{"message", n =>{Message=n.GetStringValue();}},{"resource", n =>{Resource=n.GetStringValue();}},{"value", n =>{Value=n.GetObjectValue<Repos>(Repos.CreateFromDiscriminatorValue);}},};}/// <summary>/// Serializes information the current object/// </summary>/// <param name="writer">Serialization writer to use to serialize this model</param>publicvoidSerialize(ISerializationWriterwriter){_=writer??thrownewArgumentNullException(nameof(writer));writer.WriteStringValue("code",Code);writer.WriteStringValue("field",Field);writer.WriteIntValue("index",Index);writer.WriteStringValue("message",Message);writer.WriteStringValue("resource",Resource);writer.WriteObjectValue<Repos>("value",Value);writer.WriteAdditionalData(AdditionalData);}/// <summary>/// Composed type wrapper for classes string, integer, string/// </summary>publicclassRepos:IComposedTypeWrapper,IParsable{/// <summary>Composed type representation for type integer</summary>publicint?Integer{get;set;}/// <summary>Composed type representation for type string</summary>
#if NETSTANDARD2_1_OR_GREATER||NETCOREAPP3_1_OR_GREATER
#nullable enable
publicstring?String{get;set;}
#nullable restore
#else
publicstringString{get;set;}
#endif
/// <summary>/// Creates a new instance of the appropriate class based on discriminator value/// </summary>/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>publicstaticReposCreateFromDiscriminatorValue(IParseNodeparseNode){_=parseNode??thrownewArgumentNullException(nameof(parseNode));varmappingValue=parseNode.GetChildNode("")?.GetStringValue();varresult=newRepos();if(parseNode.GetIntValue()isintintegerValue){result.Integer=integerValue;}elseif(parseNode.GetStringValue()isstringstringValue){result.String=stringValue;}returnresult;}/// <summary>/// The deserialization information for the current model/// </summary>publicIDictionary<string,Action<IParseNode>>GetFieldDeserializers(){returnnewDictionary<string,Action<IParseNode>>();}/// <summary>/// Serializes information the current object/// </summary>/// <param name="writer">Serialization writer to use to serialize this model</param>publicvoidSerialize(ISerializationWriterwriter){_=writer??thrownewArgumentNullException(nameof(writer));if(Integer!=null){writer.WriteIntValue(null,Integer);}elseif(String!=null){writer.WriteStringValue(null,String);}}}}}
The text was updated successfully, but these errors were encountered:
When using this generate command :
kiota generate -l csharp -d https://api.apis.guru/v2/specs/github.com/api.github.com/1.1.4/openapi.json -c GitHubClient -o generated -i "/orgs/{org}/repos"
The
ValidationError_errors
generates aRepos
type instead of aValidationError_errors_value
The text was updated successfully, but these errors were encountered: