diff --git a/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json b/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json
index 9d80aba967..5cbace7811 100644
--- a/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json
+++ b/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json
@@ -4839,7 +4839,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInErrorDocument"
+ "$ref": "#/components/schemas/errorTopLevelLinks"
}
]
},
@@ -4877,143 +4877,10 @@
},
"additionalProperties": false
},
- "linksInErrorDocument": {
- "required": [
- "self"
- ],
- "type": "object",
- "properties": {
- "self": {
- "minLength": 1,
- "type": "string"
- },
- "describedby": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "linksInRelationship": {
- "required": [
- "related",
- "self"
- ],
- "type": "object",
- "properties": {
- "self": {
- "minLength": 1,
- "type": "string"
- },
- "related": {
- "minLength": 1,
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "linksInResourceCollectionDocument": {
- "required": [
- "self"
- ],
- "type": "object",
- "properties": {
- "self": {
- "minLength": 1,
- "type": "string"
- },
- "describedby": {
- "type": "string"
- },
- "first": {
- "type": "string"
- },
- "last": {
- "type": "string"
- },
- "prev": {
- "type": "string"
- },
- "next": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "linksInResourceData": {
- "required": [
- "self"
- ],
- "type": "object",
- "properties": {
- "self": {
- "minLength": 1,
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "linksInResourceDocument": {
- "required": [
- "self"
- ],
- "type": "object",
- "properties": {
- "self": {
- "minLength": 1,
- "type": "string"
- },
- "describedby": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "linksInResourceIdentifierCollectionDocument": {
- "required": [
- "related",
- "self"
- ],
- "type": "object",
- "properties": {
- "self": {
- "minLength": 1,
- "type": "string"
- },
- "related": {
- "minLength": 1,
- "type": "string"
- },
- "describedby": {
- "type": "string"
- },
- "first": {
- "type": "string"
- },
- "last": {
- "type": "string"
- },
- "prev": {
- "type": "string"
- },
- "next": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "linksInResourceIdentifierDocument": {
- "required": [
- "related",
- "self"
- ],
+ "errorTopLevelLinks": {
"type": "object",
"properties": {
"self": {
- "minLength": 1,
- "type": "string"
- },
- "related": {
- "minLength": 1,
"type": "string"
},
"describedby": {
@@ -5032,7 +4899,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceIdentifierDocument"
+ "$ref": "#/components/schemas/resourceIdentifierTopLevelLinks"
}
]
},
@@ -5064,7 +4931,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceDocument"
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
}
]
},
@@ -5110,15 +4977,12 @@
"additionalProperties": false
},
"nullableToOnePersonInResponse": {
- "required": [
- "links"
- ],
"type": "object",
"properties": {
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInRelationship"
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
@@ -5196,7 +5060,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceCollectionDocument"
+ "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
}
]
},
@@ -5304,7 +5168,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceData"
+ "$ref": "#/components/schemas/resourceLinks"
}
]
},
@@ -5348,7 +5212,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceIdentifierDocument"
+ "$ref": "#/components/schemas/resourceIdentifierTopLevelLinks"
}
]
},
@@ -5411,7 +5275,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceDocument"
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
}
]
},
@@ -5515,7 +5379,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceDocument"
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
}
]
},
@@ -5542,6 +5406,105 @@
},
"additionalProperties": false
},
+ "relationshipLinks": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "string"
+ },
+ "related": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "resourceCollectionTopLevelLinks": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "string"
+ },
+ "describedby": {
+ "type": "string"
+ },
+ "first": {
+ "type": "string"
+ },
+ "last": {
+ "type": "string"
+ },
+ "prev": {
+ "type": "string"
+ },
+ "next": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "resourceIdentifierCollectionTopLevelLinks": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "string"
+ },
+ "related": {
+ "type": "string"
+ },
+ "describedby": {
+ "type": "string"
+ },
+ "first": {
+ "type": "string"
+ },
+ "last": {
+ "type": "string"
+ },
+ "prev": {
+ "type": "string"
+ },
+ "next": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "resourceIdentifierTopLevelLinks": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "string"
+ },
+ "related": {
+ "type": "string"
+ },
+ "describedby": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "resourceLinks": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "resourceTopLevelLinks": {
+ "type": "object",
+ "properties": {
+ "self": {
+ "type": "string"
+ },
+ "describedby": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
"tagAttributesInPatchRequest": {
"type": "object",
"properties": {
@@ -5585,7 +5548,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceCollectionDocument"
+ "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
}
]
},
@@ -5693,7 +5656,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceData"
+ "$ref": "#/components/schemas/resourceLinks"
}
]
},
@@ -5737,7 +5700,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceIdentifierCollectionDocument"
+ "$ref": "#/components/schemas/resourceIdentifierCollectionTopLevelLinks"
}
]
},
@@ -5799,7 +5762,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceDocument"
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
}
]
},
@@ -5888,15 +5851,12 @@
"additionalProperties": false
},
"toManyTagInResponse": {
- "required": [
- "links"
- ],
"type": "object",
"properties": {
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInRelationship"
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
@@ -5932,15 +5892,12 @@
"additionalProperties": false
},
"toManyTodoItemInResponse": {
- "required": [
- "links"
- ],
"type": "object",
"properties": {
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInRelationship"
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
@@ -5977,15 +5934,12 @@
"additionalProperties": false
},
"toOnePersonInResponse": {
- "required": [
- "links"
- ],
"type": "object",
"properties": {
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInRelationship"
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
@@ -6092,7 +6046,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceCollectionDocument"
+ "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
}
]
},
@@ -6200,7 +6154,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceData"
+ "$ref": "#/components/schemas/resourceLinks"
}
]
},
@@ -6244,7 +6198,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceIdentifierCollectionDocument"
+ "$ref": "#/components/schemas/resourceIdentifierCollectionTopLevelLinks"
}
]
},
@@ -6306,7 +6260,7 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/linksInResourceDocument"
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
}
]
},
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Assignee.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Assignee.cs
index 0a34482d66..c9bcc15f64 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Assignee.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Assignee.cs
@@ -23,14 +23,14 @@ public PersonAttributesInResponse Attributes {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceData? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceData Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -76,7 +76,7 @@ public PersonRelationshipsInResponse Relationships {
public override IDictionary> GetFieldDeserializers() {
return new Dictionary>(base.GetFieldDeserializers()) {
{"attributes", n => { Attributes = n.GetObjectValue(PersonAttributesInResponse.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceData.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(Assignee_meta.CreateFromDiscriminatorValue); } },
{"relationships", n => { Relationships = n.GetObjectValue(PersonRelationshipsInResponse.CreateFromDiscriminatorValue); } },
};
@@ -89,7 +89,7 @@ public override void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteObjectValue("attributes", Attributes);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
writer.WriteObjectValue("relationships", Relationships);
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ErrorResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ErrorResponseDocument.cs
index 2a4711b7e3..c3654306b8 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ErrorResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ErrorResponseDocument.cs
@@ -27,14 +27,14 @@ public List Errors {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInErrorDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ErrorTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInErrorDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ErrorTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -74,7 +74,7 @@ public static ErrorResponseDocument CreateFromDiscriminatorValue(IParseNode pars
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"errors", n => { Errors = n.GetCollectionOfObjectValues(ErrorObject.CreateFromDiscriminatorValue)?.ToList(); } },
- {"links", n => { Links = n.GetObjectValue(LinksInErrorDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ErrorTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(ErrorResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -85,7 +85,7 @@ public virtual IDictionary> GetFieldDeserializers() {
public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfObjectValues("errors", Errors);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInErrorDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ErrorTopLevelLinks.cs
similarity index 89%
rename from src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInErrorDocument.cs
rename to src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ErrorTopLevelLinks.cs
index d9fba50feb..02bda2b836 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInErrorDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ErrorTopLevelLinks.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System;
namespace OpenApiKiotaClientExample.GeneratedCode.Models {
- public class LinksInErrorDocument : IBackedModel, IParsable {
+ public class ErrorTopLevelLinks : IBackedModel, IParsable {
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
/// The describedby property
@@ -38,18 +38,18 @@ public string Self {
}
#endif
///
- /// Instantiates a new linksInErrorDocument and sets the default values.
+ /// Instantiates a new errorTopLevelLinks and sets the default values.
///
- public LinksInErrorDocument() {
+ public ErrorTopLevelLinks() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static LinksInErrorDocument CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static ErrorTopLevelLinks CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LinksInErrorDocument();
+ return new ErrorTopLevelLinks();
}
///
/// The deserialization information for the current model
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonIdentifierResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonIdentifierResponseDocument.cs
index df7f795d64..f4a3f072f7 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonIdentifierResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonIdentifierResponseDocument.cs
@@ -26,14 +26,14 @@ public PersonIdentifier Data {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceIdentifierDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceIdentifierTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceIdentifierDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceIdentifierTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -71,7 +71,7 @@ public static NullablePersonIdentifierResponseDocument CreateFromDiscriminatorVa
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetObjectValue(PersonIdentifier.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceIdentifierDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceIdentifierTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(NullablePersonIdentifierResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -82,7 +82,7 @@ public virtual IDictionary> GetFieldDeserializers() {
public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue("data", Data);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonSecondaryResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonSecondaryResponseDocument.cs
index 8ca8cbccb6..4a4c4fedab 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonSecondaryResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullablePersonSecondaryResponseDocument.cs
@@ -40,14 +40,14 @@ public List Included {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -86,7 +86,7 @@ public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetObjectValue(Assignee.CreateFromDiscriminatorValue); } },
{"included", n => { Included = n.GetCollectionOfObjectValues(DataInResponse.CreateFromDiscriminatorValue)?.ToList(); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(NullablePersonSecondaryResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -98,7 +98,7 @@ public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue("data", Data);
writer.WriteCollectionOfObjectValues("included", Included);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullableToOnePersonInResponse.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullableToOnePersonInResponse.cs
index 23fde34fc1..8b43090bdb 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullableToOnePersonInResponse.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/NullableToOnePersonInResponse.cs
@@ -26,14 +26,14 @@ public PersonIdentifier Data {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInRelationship? Links {
- get { return BackingStore?.Get("links"); }
+ public RelationshipLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInRelationship Links {
- get { return BackingStore?.Get("links"); }
+ public RelationshipLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -71,7 +71,7 @@ public static NullableToOnePersonInResponse CreateFromDiscriminatorValue(IParseN
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetObjectValue(PersonIdentifier.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInRelationship.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(RelationshipLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(NullableToOnePersonInResponse_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -82,7 +82,7 @@ public virtual IDictionary> GetFieldDeserializers() {
public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue("data", Data);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Owner.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Owner.cs
index e9c38c5108..67ef7f8ffe 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Owner.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/Owner.cs
@@ -23,14 +23,14 @@ public PersonAttributesInResponse Attributes {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceData? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceData Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -76,7 +76,7 @@ public PersonRelationshipsInResponse Relationships {
public override IDictionary> GetFieldDeserializers() {
return new Dictionary>(base.GetFieldDeserializers()) {
{"attributes", n => { Attributes = n.GetObjectValue(PersonAttributesInResponse.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceData.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(Owner_meta.CreateFromDiscriminatorValue); } },
{"relationships", n => { Relationships = n.GetObjectValue(PersonRelationshipsInResponse.CreateFromDiscriminatorValue); } },
};
@@ -89,7 +89,7 @@ public override void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteObjectValue("attributes", Attributes);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
writer.WriteObjectValue("relationships", Relationships);
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/People.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/People.cs
index c11a6184b2..e730c1c9e9 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/People.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/People.cs
@@ -23,14 +23,14 @@ public PersonAttributesInResponse Attributes {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceData? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceData Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -76,7 +76,7 @@ public PersonRelationshipsInResponse Relationships {
public override IDictionary> GetFieldDeserializers() {
return new Dictionary>(base.GetFieldDeserializers()) {
{"attributes", n => { Attributes = n.GetObjectValue(PersonAttributesInResponse.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceData.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(People_meta.CreateFromDiscriminatorValue); } },
{"relationships", n => { Relationships = n.GetObjectValue(PersonRelationshipsInResponse.CreateFromDiscriminatorValue); } },
};
@@ -89,7 +89,7 @@ public override void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteObjectValue("attributes", Attributes);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
writer.WriteObjectValue("relationships", Relationships);
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonCollectionResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonCollectionResponseDocument.cs
index 5821b24249..c75470839a 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonCollectionResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonCollectionResponseDocument.cs
@@ -40,14 +40,14 @@ public List Included {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceCollectionDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceCollectionTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceCollectionDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceCollectionTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -86,7 +86,7 @@ public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetCollectionOfObjectValues(PersonDataInResponse.CreateFromDiscriminatorValue)?.ToList(); } },
{"included", n => { Included = n.GetCollectionOfObjectValues(DataInResponse.CreateFromDiscriminatorValue)?.ToList(); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceCollectionDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceCollectionTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(PersonCollectionResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -98,7 +98,7 @@ public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfObjectValues("data", Data);
writer.WriteCollectionOfObjectValues("included", Included);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonDataInResponse.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonDataInResponse.cs
index b91357f51c..779f710237 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonDataInResponse.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonDataInResponse.cs
@@ -23,14 +23,14 @@ public PersonAttributesInResponse Attributes {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceData? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceData Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -76,7 +76,7 @@ public PersonRelationshipsInResponse Relationships {
public override IDictionary> GetFieldDeserializers() {
return new Dictionary>(base.GetFieldDeserializers()) {
{"attributes", n => { Attributes = n.GetObjectValue(PersonAttributesInResponse.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceData.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(PersonDataInResponse_meta.CreateFromDiscriminatorValue); } },
{"relationships", n => { Relationships = n.GetObjectValue(PersonRelationshipsInResponse.CreateFromDiscriminatorValue); } },
};
@@ -89,7 +89,7 @@ public override void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteObjectValue("attributes", Attributes);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
writer.WriteObjectValue("relationships", Relationships);
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonIdentifierResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonIdentifierResponseDocument.cs
index 7446c07686..81fcd8fdd3 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonIdentifierResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonIdentifierResponseDocument.cs
@@ -26,14 +26,14 @@ public PersonIdentifier Data {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceIdentifierDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceIdentifierTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceIdentifierDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceIdentifierTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -71,7 +71,7 @@ public static PersonIdentifierResponseDocument CreateFromDiscriminatorValue(IPar
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetObjectValue(PersonIdentifier.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceIdentifierDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceIdentifierTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(PersonIdentifierResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -82,7 +82,7 @@ public virtual IDictionary> GetFieldDeserializers() {
public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue("data", Data);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonPrimaryResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonPrimaryResponseDocument.cs
index bceff988c4..93d6ff2f90 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonPrimaryResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonPrimaryResponseDocument.cs
@@ -40,14 +40,14 @@ public List Included {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -86,7 +86,7 @@ public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetObjectValue(People.CreateFromDiscriminatorValue); } },
{"included", n => { Included = n.GetCollectionOfObjectValues(DataInResponse.CreateFromDiscriminatorValue)?.ToList(); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(PersonPrimaryResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -98,7 +98,7 @@ public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue("data", Data);
writer.WriteCollectionOfObjectValues("included", Included);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonSecondaryResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonSecondaryResponseDocument.cs
index 0cbb879924..67ebfbf510 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonSecondaryResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/PersonSecondaryResponseDocument.cs
@@ -40,14 +40,14 @@ public List Included {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -86,7 +86,7 @@ public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetObjectValue(Owner.CreateFromDiscriminatorValue); } },
{"included", n => { Included = n.GetCollectionOfObjectValues(DataInResponse.CreateFromDiscriminatorValue)?.ToList(); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(PersonSecondaryResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -98,7 +98,7 @@ public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue("data", Data);
writer.WriteCollectionOfObjectValues("included", Included);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInRelationship.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/RelationshipLinks.cs
similarity index 89%
rename from src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInRelationship.cs
rename to src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/RelationshipLinks.cs
index c83d07bfdb..06c5a8d752 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInRelationship.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/RelationshipLinks.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System;
namespace OpenApiKiotaClientExample.GeneratedCode.Models {
- public class LinksInRelationship : IBackedModel, IParsable {
+ public class RelationshipLinks : IBackedModel, IParsable {
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
/// The related property
@@ -38,18 +38,18 @@ public string Self {
}
#endif
///
- /// Instantiates a new linksInRelationship and sets the default values.
+ /// Instantiates a new relationshipLinks and sets the default values.
///
- public LinksInRelationship() {
+ public RelationshipLinks() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static LinksInRelationship CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static RelationshipLinks CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LinksInRelationship();
+ return new RelationshipLinks();
}
///
/// The deserialization information for the current model
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceCollectionDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceCollectionTopLevelLinks.cs
similarity index 92%
rename from src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceCollectionDocument.cs
rename to src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceCollectionTopLevelLinks.cs
index 48ac519c04..5856e25307 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceCollectionDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceCollectionTopLevelLinks.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System;
namespace OpenApiKiotaClientExample.GeneratedCode.Models {
- public class LinksInResourceCollectionDocument : IBackedModel, IParsable {
+ public class ResourceCollectionTopLevelLinks : IBackedModel, IParsable {
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
/// The describedby property
@@ -94,18 +94,18 @@ public string Self {
}
#endif
///
- /// Instantiates a new linksInResourceCollectionDocument and sets the default values.
+ /// Instantiates a new resourceCollectionTopLevelLinks and sets the default values.
///
- public LinksInResourceCollectionDocument() {
+ public ResourceCollectionTopLevelLinks() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static LinksInResourceCollectionDocument CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static ResourceCollectionTopLevelLinks CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LinksInResourceCollectionDocument();
+ return new ResourceCollectionTopLevelLinks();
}
///
/// The deserialization information for the current model
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceIdentifierCollectionDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceIdentifierCollectionTopLevelLinks.cs
similarity index 92%
rename from src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceIdentifierCollectionDocument.cs
rename to src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceIdentifierCollectionTopLevelLinks.cs
index 30176adee0..7fbfa70908 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceIdentifierCollectionDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceIdentifierCollectionTopLevelLinks.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System;
namespace OpenApiKiotaClientExample.GeneratedCode.Models {
- public class LinksInResourceIdentifierCollectionDocument : IBackedModel, IParsable {
+ public class ResourceIdentifierCollectionTopLevelLinks : IBackedModel, IParsable {
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
/// The describedby property
@@ -108,18 +108,18 @@ public string Self {
}
#endif
///
- /// Instantiates a new linksInResourceIdentifierCollectionDocument and sets the default values.
+ /// Instantiates a new resourceIdentifierCollectionTopLevelLinks and sets the default values.
///
- public LinksInResourceIdentifierCollectionDocument() {
+ public ResourceIdentifierCollectionTopLevelLinks() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static LinksInResourceIdentifierCollectionDocument CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static ResourceIdentifierCollectionTopLevelLinks CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LinksInResourceIdentifierCollectionDocument();
+ return new ResourceIdentifierCollectionTopLevelLinks();
}
///
/// The deserialization information for the current model
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceIdentifierDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceIdentifierTopLevelLinks.cs
similarity index 89%
rename from src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceIdentifierDocument.cs
rename to src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceIdentifierTopLevelLinks.cs
index 0a67c50c39..bd76810832 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceIdentifierDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceIdentifierTopLevelLinks.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System;
namespace OpenApiKiotaClientExample.GeneratedCode.Models {
- public class LinksInResourceIdentifierDocument : IBackedModel, IParsable {
+ public class ResourceIdentifierTopLevelLinks : IBackedModel, IParsable {
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
/// The describedby property
@@ -52,18 +52,18 @@ public string Self {
}
#endif
///
- /// Instantiates a new linksInResourceIdentifierDocument and sets the default values.
+ /// Instantiates a new resourceIdentifierTopLevelLinks and sets the default values.
///
- public LinksInResourceIdentifierDocument() {
+ public ResourceIdentifierTopLevelLinks() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static LinksInResourceIdentifierDocument CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static ResourceIdentifierTopLevelLinks CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LinksInResourceIdentifierDocument();
+ return new ResourceIdentifierTopLevelLinks();
}
///
/// The deserialization information for the current model
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceData.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceLinks.cs
similarity index 86%
rename from src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceData.cs
rename to src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceLinks.cs
index 89756e3093..64bff863a7 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceData.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceLinks.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System;
namespace OpenApiKiotaClientExample.GeneratedCode.Models {
- public class LinksInResourceData : IBackedModel, IParsable {
+ public class ResourceLinks : IBackedModel, IParsable {
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
/// The self property
@@ -24,18 +24,18 @@ public string Self {
}
#endif
///
- /// Instantiates a new linksInResourceData and sets the default values.
+ /// Instantiates a new resourceLinks and sets the default values.
///
- public LinksInResourceData() {
+ public ResourceLinks() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static LinksInResourceData CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static ResourceLinks CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LinksInResourceData();
+ return new ResourceLinks();
}
///
/// The deserialization information for the current model
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceTopLevelLinks.cs
similarity index 88%
rename from src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceDocument.cs
rename to src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceTopLevelLinks.cs
index 1d41ffcd7b..a240dc656e 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/LinksInResourceDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/ResourceTopLevelLinks.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System;
namespace OpenApiKiotaClientExample.GeneratedCode.Models {
- public class LinksInResourceDocument : IBackedModel, IParsable {
+ public class ResourceTopLevelLinks : IBackedModel, IParsable {
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
/// The describedby property
@@ -38,18 +38,18 @@ public string Self {
}
#endif
///
- /// Instantiates a new linksInResourceDocument and sets the default values.
+ /// Instantiates a new resourceTopLevelLinks and sets the default values.
///
- public LinksInResourceDocument() {
+ public ResourceTopLevelLinks() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
///
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static LinksInResourceDocument CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static ResourceTopLevelLinks CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new LinksInResourceDocument();
+ return new ResourceTopLevelLinks();
}
///
/// The deserialization information for the current model
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagCollectionResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagCollectionResponseDocument.cs
index 645211b54c..ac18359f7f 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagCollectionResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagCollectionResponseDocument.cs
@@ -40,14 +40,14 @@ public List Included {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceCollectionDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceCollectionTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceCollectionDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceCollectionTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -86,7 +86,7 @@ public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetCollectionOfObjectValues(TagDataInResponse.CreateFromDiscriminatorValue)?.ToList(); } },
{"included", n => { Included = n.GetCollectionOfObjectValues(DataInResponse.CreateFromDiscriminatorValue)?.ToList(); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceCollectionDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceCollectionTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(TagCollectionResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -98,7 +98,7 @@ public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfObjectValues("data", Data);
writer.WriteCollectionOfObjectValues("included", Included);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagDataInResponse.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagDataInResponse.cs
index 42d529b36f..f34a8c976a 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagDataInResponse.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagDataInResponse.cs
@@ -23,14 +23,14 @@ public TagAttributesInResponse Attributes {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceData? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceData Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -76,7 +76,7 @@ public TagRelationshipsInResponse Relationships {
public override IDictionary> GetFieldDeserializers() {
return new Dictionary>(base.GetFieldDeserializers()) {
{"attributes", n => { Attributes = n.GetObjectValue(TagAttributesInResponse.CreateFromDiscriminatorValue); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceData.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(TagDataInResponse_meta.CreateFromDiscriminatorValue); } },
{"relationships", n => { Relationships = n.GetObjectValue(TagRelationshipsInResponse.CreateFromDiscriminatorValue); } },
};
@@ -89,7 +89,7 @@ public override void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteObjectValue("attributes", Attributes);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
writer.WriteObjectValue("relationships", Relationships);
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagIdentifierCollectionResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagIdentifierCollectionResponseDocument.cs
index 33c43abc2d..8288a500f4 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagIdentifierCollectionResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagIdentifierCollectionResponseDocument.cs
@@ -26,14 +26,14 @@ public List Data {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceIdentifierCollectionDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceIdentifierCollectionTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceIdentifierCollectionDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceIdentifierCollectionTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -71,7 +71,7 @@ public static TagIdentifierCollectionResponseDocument CreateFromDiscriminatorVal
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetCollectionOfObjectValues(TagIdentifier.CreateFromDiscriminatorValue)?.ToList(); } },
- {"links", n => { Links = n.GetObjectValue(LinksInResourceIdentifierCollectionDocument.CreateFromDiscriminatorValue); } },
+ {"links", n => { Links = n.GetObjectValue(ResourceIdentifierCollectionTopLevelLinks.CreateFromDiscriminatorValue); } },
{"meta", n => { Meta = n.GetObjectValue(TagIdentifierCollectionResponseDocument_meta.CreateFromDiscriminatorValue); } },
};
}
@@ -82,7 +82,7 @@ public virtual IDictionary> GetFieldDeserializers() {
public virtual void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfObjectValues("data", Data);
- writer.WriteObjectValue("links", Links);
+ writer.WriteObjectValue("links", Links);
writer.WriteObjectValue("meta", Meta);
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagPrimaryResponseDocument.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagPrimaryResponseDocument.cs
index 63d111046d..62ef81018e 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagPrimaryResponseDocument.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Models/TagPrimaryResponseDocument.cs
@@ -40,14 +40,14 @@ public List Included {
/// The links property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public LinksInResourceDocument? Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks? Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#nullable restore
#else
- public LinksInResourceDocument Links {
- get { return BackingStore?.Get("links"); }
+ public ResourceTopLevelLinks Links {
+ get { return BackingStore?.Get("links"); }
set { BackingStore?.Set("links", value); }
}
#endif
@@ -86,7 +86,7 @@ public virtual IDictionary