diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index 35524d4221..f23a723cef 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -6,31 +6,36 @@
"version": "2024.1.4",
"commands": [
"jb"
- ]
+ ],
+ "rollForward": false
},
"regitlint": {
"version": "6.3.12",
"commands": [
"regitlint"
- ]
+ ],
+ "rollForward": false
},
"dotnet-reportgenerator-globaltool": {
"version": "5.3.6",
"commands": [
"reportgenerator"
- ]
+ ],
+ "rollForward": false
},
"docfx": {
"version": "2.76.0",
"commands": [
"docfx"
- ]
+ ],
+ "rollForward": false
},
"microsoft.openapi.kiota": {
- "version": "1.14.0",
+ "version": "1.15.0",
"commands": [
"kiota"
- ]
+ ],
+ "rollForward": false
}
}
}
\ No newline at end of file
diff --git a/CSharpGuidelinesAnalyzer.config b/CSharpGuidelinesAnalyzer.config
index 89b568e155..6d5453159a 100644
--- a/CSharpGuidelinesAnalyzer.config
+++ b/CSharpGuidelinesAnalyzer.config
@@ -1,5 +1,5 @@
-
+
diff --git a/docs/usage/openapi-client.md b/docs/usage/openapi-client.md
index bb88381e79..f1c4091c19 100644
--- a/docs/usage/openapi-client.md
+++ b/docs/usage/openapi-client.md
@@ -67,7 +67,7 @@ The following steps describe how to generate and use a JSON:API client in C#, us
5. Add the following line inside the **OpenApiReference** section in your project file:
```xml
- /GenerateExceptionClasses:false /AdditionalNamespaceUsages:JsonApiDotNetCore.OpenApi.Client.NSwag
+ /GenerateExceptionClasses:false /GenerateNullableReferenceTypes:true /GenerateOptionalPropertiesAsNullable:true /GenerateOptionalParameters:true /AdditionalNamespaceUsages:JsonApiDotNetCore.OpenApi.Client.NSwag
```
6. Add the following glue code to connect our package with your generated code.
@@ -105,19 +105,19 @@ The following steps describe how to generate and use a JSON:API client in C#, us
foreach (var person in getResponse.Data)
{
- Console.WriteLine($"Found person {person.Id}: {person.Attributes.DisplayName}");
+ Console.WriteLine($"Found person {person.Id}: {person.Attributes!.DisplayName}");
}
```
8. Extend your demo code to send a partial PATCH request with the help of our package:
```c#
- var patchRequest = new PersonPatchRequestDocument
+ var updatePersonRequest = new UpdatePersonRequestDocument
{
- Data = new PersonDataInPatchRequest
+ Data = new DataInUpdatePersonRequest
{
Id = "1",
- Attributes = new PersonAttributesInPatchRequest
+ Attributes = new AttributesInUpdatePersonRequest
{
LastName = "Doe"
}
@@ -125,11 +125,12 @@ The following steps describe how to generate and use a JSON:API client in C#, us
};
// This line results in sending "firstName: null" instead of omitting it.
- using (apiClient.WithPartialAttributeSerialization(patchRequest,
- person => person.FirstName))
+ using (apiClient.WithPartialAttributeSerialization(
+ updatePersonRequest, person => person.FirstName))
{
// Workaround for https://github.com/RicoSuter/NSwag/issues/2499.
- await ApiResponse.TranslateAsync(() => apiClient.PatchPersonAsync(patchRequest.Data.Id, null, patchRequest));
+ await ApiResponse.TranslateAsync(() =>
+ apiClient.PatchPersonAsync(updatePersonRequest.Data.Id, updatePersonRequest));
// The sent request looks like this:
// {
@@ -171,6 +172,7 @@ Alternatively, the following section shows what to add to your client project fi
NSwagCSharp
ExampleApiClient
ExampleApiClient.cs
+ /GenerateExceptionClasses:false /GenerateNullableReferenceTypes:true /GenerateOptionalPropertiesAsNullable:true /GenerateOptionalParameters:true /AdditionalNamespaceUsages:JsonApiDotNetCore.OpenApi.Client.NSwag
```
@@ -184,7 +186,7 @@ To generate your C# client, install the Kiota tool by following the steps at htt
Next, generate client code by running the [command line tool](https://learn.microsoft.com/en-us/openapi/kiota/using#client-generation). For example:
```
-dotnet kiota generate --language CSharp --class-name ExampleApiClient --output ./GeneratedCode --backing-store --exclude-backward-compatible --clean-output --clear-cache --openapi ..\JsonApiDotNetCoreExample\GeneratedSwagger\JsonApiDotNetCoreExample.json
+dotnet kiota generate --language CSharp --class-name ExampleApiClient --output ./GeneratedCode --backing-store --exclude-backward-compatible --clean-output --clear-cache --openapi http://localhost:14140/swagger/v1/swagger.json
```
> [!CAUTION]
@@ -216,7 +218,7 @@ For example, the following section puts the generated code in a namespace and ge
```
-Likewise, you can enable nullable reference types by adding `/GenerateNullableReferenceTypes:true`, optionally combined with `/GenerateOptionalParameters:true`.
+Likewise, you can enable nullable reference types by adding `/GenerateNullableReferenceTypes:true /GenerateOptionalPropertiesAsNullable:true /GenerateOptionalParameters:true`.
# [Kiota](#tab/kiota)
@@ -256,9 +258,9 @@ NSwag needs extra settings to make response headers accessible. Specify the foll
This enables the following code, which is explained below:
```c#
-var getResponse = await ApiResponse.TranslateAsync(() => apiClient.GetPersonCollectionAsync(null, null));
+var getResponse = await ApiResponse.TranslateAsync(() => apiClient.GetPersonCollectionAsync());
string eTag = getResponse.Headers["ETag"].Single();
-Console.WriteLine($"Retrieved {getResponse.Result.Data.Count} people.");
+Console.WriteLine($"Retrieved {getResponse.Result?.Data.Count ?? 0} people.");
// wait some time...
@@ -295,3 +297,27 @@ Due to a [bug in Kiota](https://github.com/microsoft/kiota/issues/4190), a try/c
For a full example, see the [example project](https://github.com/json-api-dotnet/JsonApiDotNetCore/tree/openapi/src/Examples/OpenApiKiotaClientExample).
---
+
+## Atomic operations
+
+# [NSwag](#tab/nswag)
+
+[Atomic operations](~/usage/writing/bulk-batch-operations.md) are fully supported.
+The [example project](https://github.com/json-api-dotnet/JsonApiDotNetCore/tree/openapi/src/Examples/OpenApiNSwagClientExample)
+demonstrates how to use them. It uses local IDs to:
+- Create a new tag
+- Create a new person
+- Create a new todo-item, tagged with the new tag, and owned by the new person
+- Assign the todo-item to the created person
+
+# [Kiota](#tab/kiota)
+
+[Atomic operations](~/usage/writing/bulk-batch-operations.md) are fully supported.
+See the [example project](https://github.com/json-api-dotnet/JsonApiDotNetCore/tree/openapi/src/Examples/OpenApiKiotaClientExample)
+demonstrates how to use them. It uses local IDs to:
+- Create a new tag
+- Create a new person
+- Create a new todo-item, tagged with the new tag, and owned by the new person
+- Assign the todo-item to the created person
+
+---
diff --git a/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json b/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json
index 5cbace7811..39eb7497ad 100644
--- a/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json
+++ b/src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json
@@ -10,6 +10,95 @@
}
],
"paths": {
+ "/api/operations": {
+ "post": {
+ "tags": [
+ "operations"
+ ],
+ "summary": "Performs multiple mutations in a linear and atomic manner.",
+ "operationId": "postOperations",
+ "requestBody": {
+ "description": "An array of mutation operations. For syntax, see the [Atomic Operations documentation](https://jsonapi.org/ext/atomic/).",
+ "content": {
+ "application/vnd.api+json; ext=atomic-operations": {
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/operationsRequestDocument"
+ }
+ ]
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "All operations were successfully applied, which resulted in additional changes.",
+ "content": {
+ "application/vnd.api+json; ext=atomic-operations": {
+ "schema": {
+ "$ref": "#/components/schemas/operationsResponseDocument"
+ }
+ }
+ }
+ },
+ "204": {
+ "description": "All operations were successfully applied, which did not result in additional changes."
+ },
+ "400": {
+ "description": "The request body is missing or malformed.",
+ "content": {
+ "application/vnd.api+json; ext=atomic-operations": {
+ "schema": {
+ "$ref": "#/components/schemas/errorResponseDocument"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "An operation is not accessible or a client-generated ID is used.",
+ "content": {
+ "application/vnd.api+json; ext=atomic-operations": {
+ "schema": {
+ "$ref": "#/components/schemas/errorResponseDocument"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "A resource or a related resource does not exist.",
+ "content": {
+ "application/vnd.api+json; ext=atomic-operations": {
+ "schema": {
+ "$ref": "#/components/schemas/errorResponseDocument"
+ }
+ }
+ }
+ },
+ "409": {
+ "description": "The request body contains conflicting information or another resource with the same ID already exists.",
+ "content": {
+ "application/vnd.api+json; ext=atomic-operations": {
+ "schema": {
+ "$ref": "#/components/schemas/errorResponseDocument"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation of the request body failed.",
+ "content": {
+ "application/vnd.api+json; ext=atomic-operations": {
+ "schema": {
+ "$ref": "#/components/schemas/errorResponseDocument"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/api/people": {
"get": {
"tags": [
@@ -180,7 +269,7 @@
"schema": {
"allOf": [
{
- "$ref": "#/components/schemas/personPostRequestDocument"
+ "$ref": "#/components/schemas/createPersonRequestDocument"
}
]
}
@@ -475,7 +564,7 @@
"schema": {
"allOf": [
{
- "$ref": "#/components/schemas/personPatchRequestDocument"
+ "$ref": "#/components/schemas/updatePersonRequestDocument"
}
]
}
@@ -1847,7 +1936,7 @@
"schema": {
"allOf": [
{
- "$ref": "#/components/schemas/tagPostRequestDocument"
+ "$ref": "#/components/schemas/createTagRequestDocument"
}
]
}
@@ -2142,7 +2231,7 @@
"schema": {
"allOf": [
{
- "$ref": "#/components/schemas/tagPatchRequestDocument"
+ "$ref": "#/components/schemas/updateTagRequestDocument"
}
]
}
@@ -2962,7 +3051,7 @@
"schema": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemPostRequestDocument"
+ "$ref": "#/components/schemas/createTodoItemRequestDocument"
}
]
}
@@ -3257,7 +3346,7 @@
"schema": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemPatchRequestDocument"
+ "$ref": "#/components/schemas/updateTodoItemRequestDocument"
}
]
}
@@ -4742,224 +4831,364 @@
},
"components": {
"schemas": {
- "dataInResponse": {
+ "addOperationCode": {
+ "enum": [
+ "add"
+ ],
+ "type": "string"
+ },
+ "addToPersonAssignedTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/addOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personAssignedTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "addToPersonOwnedTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/addOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personOwnedTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "addToTagTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/addOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/tagTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "addToTodoItemTagsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/addOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemTagsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/tagIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "atomicOperation": {
"required": [
- "id",
- "type"
+ "operationDiscriminator"
],
"type": "object",
"properties": {
- "type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false,
"discriminator": {
- "propertyName": "type",
+ "propertyName": "operationDiscriminator",
"mapping": {
- "people": "#/components/schemas/personDataInResponse",
- "tags": "#/components/schemas/tagDataInResponse",
- "todoItems": "#/components/schemas/todoItemDataInResponse"
+ "addPerson": "#/components/schemas/createPersonOperation",
+ "addTag": "#/components/schemas/createTagOperation",
+ "addToPersonAssignedTodoItems": "#/components/schemas/addToPersonAssignedTodoItemsRelationshipOperation",
+ "addToPersonOwnedTodoItems": "#/components/schemas/addToPersonOwnedTodoItemsRelationshipOperation",
+ "addToTagTodoItems": "#/components/schemas/addToTagTodoItemsRelationshipOperation",
+ "addToTodoItemTags": "#/components/schemas/addToTodoItemTagsRelationshipOperation",
+ "addTodoItem": "#/components/schemas/createTodoItemOperation",
+ "removeFromPersonAssignedTodoItems": "#/components/schemas/removeFromPersonAssignedTodoItemsRelationshipOperation",
+ "removeFromPersonOwnedTodoItems": "#/components/schemas/removeFromPersonOwnedTodoItemsRelationshipOperation",
+ "removeFromTagTodoItems": "#/components/schemas/removeFromTagTodoItemsRelationshipOperation",
+ "removeFromTodoItemTags": "#/components/schemas/removeFromTodoItemTagsRelationshipOperation",
+ "removePerson": "#/components/schemas/deletePersonOperation",
+ "removeTag": "#/components/schemas/deleteTagOperation",
+ "removeTodoItem": "#/components/schemas/deleteTodoItemOperation",
+ "updatePerson": "#/components/schemas/updatePersonOperation",
+ "updatePersonAssignedTodoItems": "#/components/schemas/updatePersonAssignedTodoItemsRelationshipOperation",
+ "updatePersonOwnedTodoItems": "#/components/schemas/updatePersonOwnedTodoItemsRelationshipOperation",
+ "updateTag": "#/components/schemas/updateTagOperation",
+ "updateTagTodoItems": "#/components/schemas/updateTagTodoItemsRelationshipOperation",
+ "updateTodoItem": "#/components/schemas/updateTodoItemOperation",
+ "updateTodoItemAssignee": "#/components/schemas/updateTodoItemAssigneeRelationshipOperation",
+ "updateTodoItemOwner": "#/components/schemas/updateTodoItemOwnerRelationshipOperation",
+ "updateTodoItemTags": "#/components/schemas/updateTodoItemTagsRelationshipOperation"
}
},
"x-abstract": true
},
- "errorLinks": {
+ "atomicResult": {
"type": "object",
"properties": {
- "about": {
- "type": "string",
- "nullable": true
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInResponse"
+ }
+ ]
},
- "type": {
- "type": "string",
- "nullable": true
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "errorObject": {
+ "attributesInCreatePersonRequest": {
+ "required": [
+ "lastName"
+ ],
"type": "object",
"properties": {
- "id": {
+ "firstName": {
"type": "string",
"nullable": true
},
- "links": {
- "allOf": [
- {
- "$ref": "#/components/schemas/errorLinks"
- }
- ],
- "nullable": true
- },
- "status": {
+ "lastName": {
"type": "string"
- },
- "code": {
- "type": "string",
- "nullable": true
- },
- "title": {
- "type": "string",
- "nullable": true
- },
- "detail": {
- "type": "string",
- "nullable": true
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/components/schemas/errorSource"
- }
- ],
- "nullable": true
- },
- "meta": {
- "type": "object",
- "additionalProperties": { },
- "nullable": true
}
},
"additionalProperties": false
},
- "errorResponseDocument": {
+ "attributesInCreateTagRequest": {
"required": [
- "errors",
- "links"
+ "name"
],
"type": "object",
"properties": {
- "links": {
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "attributesInCreateTodoItemRequest": {
+ "required": [
+ "description",
+ "priority"
+ ],
+ "type": "object",
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "priority": {
"allOf": [
{
- "$ref": "#/components/schemas/errorTopLevelLinks"
+ "$ref": "#/components/schemas/todoItemPriority"
}
]
},
- "errors": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/errorObject"
- }
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "durationInHours": {
+ "type": "integer",
+ "format": "int64",
+ "nullable": true
}
},
"additionalProperties": false
},
- "errorSource": {
+ "attributesInUpdatePersonRequest": {
"type": "object",
"properties": {
- "pointer": {
- "type": "string",
- "nullable": true
- },
- "parameter": {
+ "firstName": {
"type": "string",
"nullable": true
},
- "header": {
- "type": "string",
- "nullable": true
+ "lastName": {
+ "type": "string"
}
},
"additionalProperties": false
},
- "errorTopLevelLinks": {
+ "attributesInUpdateTagRequest": {
"type": "object",
"properties": {
- "self": {
- "type": "string"
- },
- "describedby": {
+ "name": {
+ "minLength": 1,
"type": "string"
}
},
"additionalProperties": false
},
- "nullablePersonIdentifierResponseDocument": {
- "required": [
- "data",
- "links"
- ],
+ "attributesInUpdateTodoItemRequest": {
"type": "object",
"properties": {
- "links": {
+ "description": {
+ "type": "string"
+ },
+ "priority": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceIdentifierTopLevelLinks"
+ "$ref": "#/components/schemas/todoItemPriority"
}
]
},
- "data": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personIdentifier"
- }
- ],
+ "durationInHours": {
+ "type": "integer",
+ "format": "int64",
"nullable": true
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
}
},
"additionalProperties": false
},
- "nullablePersonSecondaryResponseDocument": {
- "required": [
- "data",
- "links"
- ],
- "type": "object",
- "properties": {
- "links": {
- "allOf": [
- {
- "$ref": "#/components/schemas/resourceTopLevelLinks"
- }
- ]
+ "createPersonOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
},
- "data": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personDataInResponse"
- }
+ {
+ "required": [
+ "data",
+ "op"
],
- "nullable": true
- },
- "included": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/dataInResponse"
- }
- },
- "meta": {
"type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/addOperationCode"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInCreatePersonRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
}
- },
+ ],
"additionalProperties": false
},
- "nullableToOnePersonInRequest": {
+ "createPersonRequestDocument": {
"required": [
"data"
],
@@ -4968,532 +5197,554 @@
"data": {
"allOf": [
{
- "$ref": "#/components/schemas/personIdentifier"
+ "$ref": "#/components/schemas/dataInCreatePersonRequest"
}
- ],
- "nullable": true
+ ]
}
},
"additionalProperties": false
},
- "nullableToOnePersonInResponse": {
- "type": "object",
- "properties": {
- "links": {
- "allOf": [
- {
- "$ref": "#/components/schemas/relationshipLinks"
- }
- ]
+ "createTagOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
},
- "data": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personIdentifier"
- }
+ {
+ "required": [
+ "data",
+ "op"
],
- "nullable": true
- },
- "meta": {
"type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
- }
- },
- "additionalProperties": false
- },
- "personAttributesInPatchRequest": {
- "type": "object",
- "properties": {
- "firstName": {
- "type": "string",
- "nullable": true
- },
- "lastName": {
- "type": "string"
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/addOperationCode"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInCreateTagRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
}
- },
+ ],
"additionalProperties": false
},
- "personAttributesInPostRequest": {
+ "createTagRequestDocument": {
"required": [
- "lastName"
+ "data"
],
"type": "object",
"properties": {
- "firstName": {
- "type": "string",
- "nullable": true
- },
- "lastName": {
- "type": "string"
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInCreateTagRequest"
+ }
+ ]
}
},
"additionalProperties": false
},
- "personAttributesInResponse": {
- "type": "object",
- "properties": {
- "firstName": {
- "type": "string",
- "nullable": true
- },
- "lastName": {
- "type": "string"
+ "createTodoItemOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
},
- "displayName": {
- "type": "string",
- "readOnly": true
+ {
+ "required": [
+ "data",
+ "op"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/addOperationCode"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInCreateTodoItemRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
}
- },
+ ],
"additionalProperties": false
},
- "personCollectionResponseDocument": {
+ "createTodoItemRequestDocument": {
"required": [
- "data",
- "links"
+ "data"
],
"type": "object",
"properties": {
- "links": {
+ "data": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
+ "$ref": "#/components/schemas/dataInCreateTodoItemRequest"
}
]
- },
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/personDataInResponse"
- }
- },
- "included": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/dataInResponse"
- }
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
}
},
"additionalProperties": false
},
- "personDataInPatchRequest": {
+ "dataInCreatePersonRequest": {
"required": [
- "id",
"type"
],
"type": "object",
"properties": {
"type": {
- "$ref": "#/components/schemas/personResourceType"
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personResourceType"
+ }
+ ]
},
- "id": {
+ "lid": {
"minLength": 1,
"type": "string"
},
"attributes": {
"allOf": [
{
- "$ref": "#/components/schemas/personAttributesInPatchRequest"
+ "$ref": "#/components/schemas/attributesInCreatePersonRequest"
}
]
},
"relationships": {
"allOf": [
{
- "$ref": "#/components/schemas/personRelationshipsInPatchRequest"
+ "$ref": "#/components/schemas/relationshipsInCreatePersonRequest"
}
]
}
},
"additionalProperties": false
},
- "personDataInPostRequest": {
+ "dataInCreateTagRequest": {
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
- "$ref": "#/components/schemas/personResourceType"
- },
- "attributes": {
"allOf": [
{
- "$ref": "#/components/schemas/personAttributesInPostRequest"
+ "$ref": "#/components/schemas/tagResourceType"
}
]
},
- "relationships": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personRelationshipsInPostRequest"
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "attributes": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/attributesInCreateTagRequest"
}
]
- }
- },
- "additionalProperties": false
- },
- "personDataInResponse": {
- "allOf": [
- {
- "$ref": "#/components/schemas/dataInResponse"
},
- {
- "type": "object",
- "properties": {
- "attributes": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personAttributesInResponse"
- }
- ]
- },
- "relationships": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personRelationshipsInResponse"
- }
- ]
- },
- "links": {
- "allOf": [
- {
- "$ref": "#/components/schemas/resourceLinks"
- }
- ]
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "relationships": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/relationshipsInCreateTagRequest"
}
- },
- "additionalProperties": false
+ ]
}
- ],
+ },
"additionalProperties": false
},
- "personIdentifier": {
+ "dataInCreateTodoItemRequest": {
"required": [
- "id",
"type"
],
"type": "object",
"properties": {
"type": {
- "$ref": "#/components/schemas/personResourceType"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "personIdentifierResponseDocument": {
- "required": [
- "data",
- "links"
- ],
- "type": "object",
- "properties": {
- "links": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceIdentifierTopLevelLinks"
+ "$ref": "#/components/schemas/todoItemResourceType"
}
]
},
- "data": {
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "attributes": {
"allOf": [
{
- "$ref": "#/components/schemas/personIdentifier"
+ "$ref": "#/components/schemas/attributesInCreateTodoItemRequest"
}
]
},
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
- }
- },
- "additionalProperties": false
- },
- "personPatchRequestDocument": {
- "required": [
- "data"
- ],
- "type": "object",
- "properties": {
- "data": {
+ "relationships": {
"allOf": [
{
- "$ref": "#/components/schemas/personDataInPatchRequest"
+ "$ref": "#/components/schemas/relationshipsInCreateTodoItemRequest"
}
]
}
},
"additionalProperties": false
},
- "personPostRequestDocument": {
+ "dataInResponse": {
"required": [
- "data"
+ "type"
],
"type": "object",
"properties": {
- "data": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personDataInPostRequest"
- }
- ]
+ "type": {
+ "minLength": 1,
+ "type": "string"
}
},
- "additionalProperties": false
+ "additionalProperties": false,
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "people": "#/components/schemas/personDataInResponse",
+ "tags": "#/components/schemas/tagDataInResponse",
+ "todoItems": "#/components/schemas/todoItemDataInResponse"
+ }
+ },
+ "x-abstract": true
},
- "personPrimaryResponseDocument": {
+ "dataInUpdatePersonRequest": {
"required": [
- "data",
- "links"
+ "type"
],
"type": "object",
"properties": {
- "links": {
+ "type": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceTopLevelLinks"
+ "$ref": "#/components/schemas/personResourceType"
}
]
},
- "data": {
- "allOf": [
- {
- "$ref": "#/components/schemas/personDataInResponse"
- }
- ]
+ "id": {
+ "minLength": 1,
+ "type": "string"
},
- "included": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/dataInResponse"
- }
+ "lid": {
+ "minLength": 1,
+ "type": "string"
},
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
- }
- },
- "additionalProperties": false
- },
- "personRelationshipsInPatchRequest": {
- "type": "object",
- "properties": {
- "ownedTodoItems": {
+ "attributes": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTodoItemInRequest"
+ "$ref": "#/components/schemas/attributesInUpdatePersonRequest"
}
]
},
- "assignedTodoItems": {
+ "relationships": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTodoItemInRequest"
+ "$ref": "#/components/schemas/relationshipsInUpdatePersonRequest"
}
]
}
},
"additionalProperties": false
},
- "personRelationshipsInPostRequest": {
+ "dataInUpdateTagRequest": {
+ "required": [
+ "type"
+ ],
"type": "object",
"properties": {
- "ownedTodoItems": {
+ "type": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTodoItemInRequest"
+ "$ref": "#/components/schemas/tagResourceType"
}
]
},
- "assignedTodoItems": {
- "allOf": [
- {
- "$ref": "#/components/schemas/toManyTodoItemInRequest"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "personRelationshipsInResponse": {
- "type": "object",
- "properties": {
- "ownedTodoItems": {
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "attributes": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTodoItemInResponse"
+ "$ref": "#/components/schemas/attributesInUpdateTagRequest"
}
]
},
- "assignedTodoItems": {
+ "relationships": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTodoItemInResponse"
+ "$ref": "#/components/schemas/relationshipsInUpdateTagRequest"
}
]
}
},
"additionalProperties": false
},
- "personResourceType": {
- "enum": [
- "people"
- ],
- "type": "string",
- "additionalProperties": false
- },
- "personSecondaryResponseDocument": {
+ "dataInUpdateTodoItemRequest": {
"required": [
- "data",
- "links"
+ "type"
],
"type": "object",
"properties": {
- "links": {
+ "type": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceTopLevelLinks"
+ "$ref": "#/components/schemas/todoItemResourceType"
}
]
},
- "data": {
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "attributes": {
"allOf": [
{
- "$ref": "#/components/schemas/personDataInResponse"
+ "$ref": "#/components/schemas/attributesInUpdateTodoItemRequest"
}
]
},
- "included": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/dataInResponse"
- }
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "relationships": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/relationshipsInUpdateTodoItemRequest"
+ }
+ ]
}
},
"additionalProperties": false
},
- "relationshipLinks": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
+ "deletePersonOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
},
- "related": {
- "type": "string"
+ {
+ "required": [
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/removeOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personIdentifierInRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
}
- },
+ ],
"additionalProperties": false
},
- "resourceCollectionTopLevelLinks": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "describedby": {
- "type": "string"
+ "deleteTagOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
},
- "first": {
- "type": "string"
- },
- "last": {
- "type": "string"
+ {
+ "required": [
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/removeOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/tagIdentifierInRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "deleteTodoItemOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
},
- "prev": {
- "type": "string"
+ {
+ "required": [
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/removeOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "errorLinks": {
+ "type": "object",
+ "properties": {
+ "about": {
+ "type": "string",
+ "nullable": true
},
- "next": {
- "type": "string"
+ "type": {
+ "type": "string",
+ "nullable": true
}
},
"additionalProperties": false
},
- "resourceIdentifierCollectionTopLevelLinks": {
+ "errorObject": {
"type": "object",
"properties": {
- "self": {
- "type": "string"
+ "id": {
+ "type": "string",
+ "nullable": true
},
- "related": {
- "type": "string"
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/errorLinks"
+ }
+ ],
+ "nullable": true
},
- "describedby": {
+ "status": {
"type": "string"
},
- "first": {
- "type": "string"
+ "code": {
+ "type": "string",
+ "nullable": true
},
- "last": {
- "type": "string"
+ "title": {
+ "type": "string",
+ "nullable": true
},
- "prev": {
- "type": "string"
+ "detail": {
+ "type": "string",
+ "nullable": true
},
- "next": {
- "type": "string"
+ "source": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/errorSource"
+ }
+ ],
+ "nullable": true
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "resourceIdentifierTopLevelLinks": {
+ "errorResponseDocument": {
+ "required": [
+ "errors",
+ "links"
+ ],
"type": "object",
"properties": {
- "self": {
- "type": "string"
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/errorTopLevelLinks"
+ }
+ ]
},
- "related": {
- "type": "string"
+ "errors": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/errorObject"
+ }
},
- "describedby": {
- "type": "string"
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "resourceLinks": {
+ "errorSource": {
"type": "object",
"properties": {
- "self": {
- "type": "string"
+ "pointer": {
+ "type": "string",
+ "nullable": true
+ },
+ "parameter": {
+ "type": "string",
+ "nullable": true
+ },
+ "header": {
+ "type": "string",
+ "nullable": true
}
},
"additionalProperties": false
},
- "resourceTopLevelLinks": {
+ "errorTopLevelLinks": {
"type": "object",
"properties": {
"self": {
@@ -5505,40 +5756,45 @@
},
"additionalProperties": false
},
- "tagAttributesInPatchRequest": {
+ "meta": {
"type": "object",
- "properties": {
- "name": {
- "minLength": 1,
- "type": "string"
- }
- },
- "additionalProperties": false
+ "additionalProperties": {
+ "nullable": true
+ }
},
- "tagAttributesInPostRequest": {
+ "nullablePersonIdentifierResponseDocument": {
"required": [
- "name"
+ "data",
+ "links"
],
"type": "object",
"properties": {
- "name": {
- "minLength": 1,
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "tagAttributesInResponse": {
- "type": "object",
- "properties": {
- "name": {
- "minLength": 1,
- "type": "string"
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceIdentifierTopLevelLinks"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personIdentifierInResponse"
+ }
+ ],
+ "nullable": true
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "tagCollectionResponseDocument": {
+ "nullablePersonSecondaryResponseDocument": {
"required": [
"data",
"links"
@@ -5548,15 +5804,17 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
}
]
},
"data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/tagDataInResponse"
- }
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personDataInResponse"
+ }
+ ],
+ "nullable": true
},
"included": {
"type": "array",
@@ -5565,91 +5823,232 @@
}
},
"meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "tagDataInPatchRequest": {
+ "nullableToOnePersonInRequest": {
"required": [
- "id",
- "type"
+ "data"
],
"type": "object",
"properties": {
- "type": {
- "$ref": "#/components/schemas/tagResourceType"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- },
- "attributes": {
- "allOf": [
- {
- "$ref": "#/components/schemas/tagAttributesInPatchRequest"
- }
- ]
- },
- "relationships": {
+ "data": {
"allOf": [
{
- "$ref": "#/components/schemas/tagRelationshipsInPatchRequest"
+ "$ref": "#/components/schemas/personIdentifierInRequest"
}
- ]
+ ],
+ "nullable": true
}
},
"additionalProperties": false
},
- "tagDataInPostRequest": {
- "required": [
- "type"
- ],
+ "nullableToOnePersonInResponse": {
"type": "object",
"properties": {
- "type": {
- "$ref": "#/components/schemas/tagResourceType"
- },
- "attributes": {
+ "links": {
"allOf": [
{
- "$ref": "#/components/schemas/tagAttributesInPostRequest"
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
- "relationships": {
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personIdentifierInResponse"
+ }
+ ],
+ "nullable": true
+ },
+ "meta": {
"allOf": [
{
- "$ref": "#/components/schemas/tagRelationshipsInPostRequest"
+ "$ref": "#/components/schemas/meta"
}
]
}
},
"additionalProperties": false
},
- "tagDataInResponse": {
+ "operationsRequestDocument": {
+ "required": [
+ "atomic:operations"
+ ],
+ "type": "object",
+ "properties": {
+ "atomic:operations": {
+ "minItems": 1,
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/atomicOperation"
+ }
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "operationsResponseDocument": {
+ "required": [
+ "atomic:results",
+ "links"
+ ],
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
+ }
+ ]
+ },
+ "atomic:results": {
+ "minItems": 1,
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/atomicResult"
+ }
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "personAssignedTodoItemsRelationshipIdentifier": {
+ "required": [
+ "relationship",
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personResourceType"
+ }
+ ]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "relationship": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personAssignedTodoItemsRelationshipName"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "personAssignedTodoItemsRelationshipName": {
+ "enum": [
+ "assignedTodoItems"
+ ],
+ "type": "string",
+ "additionalProperties": false
+ },
+ "personAttributesInResponse": {
+ "type": "object",
+ "properties": {
+ "firstName": {
+ "type": "string",
+ "nullable": true
+ },
+ "lastName": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "additionalProperties": false
+ },
+ "personCollectionResponseDocument": {
+ "required": [
+ "data",
+ "links"
+ ],
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/personDataInResponse"
+ }
+ },
+ "included": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/dataInResponse"
+ }
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "personDataInResponse": {
"allOf": [
{
"$ref": "#/components/schemas/dataInResponse"
},
{
+ "required": [
+ "id"
+ ],
"type": "object",
"properties": {
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
"attributes": {
"allOf": [
{
- "$ref": "#/components/schemas/tagAttributesInResponse"
+ "$ref": "#/components/schemas/personAttributesInResponse"
}
]
},
"relationships": {
"allOf": [
{
- "$ref": "#/components/schemas/tagRelationshipsInResponse"
+ "$ref": "#/components/schemas/personRelationshipsInResponse"
}
]
},
@@ -5661,11 +6060,11 @@
]
},
"meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
@@ -5673,86 +6072,122 @@
],
"additionalProperties": false
},
- "tagIdentifier": {
+ "personIdentifierInRequest": {
"required": [
- "id",
"type"
],
"type": "object",
"properties": {
"type": {
- "$ref": "#/components/schemas/tagResourceType"
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personResourceType"
+ }
+ ]
},
"id": {
"minLength": 1,
"type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
}
},
"additionalProperties": false
},
- "tagIdentifierCollectionResponseDocument": {
+ "personIdentifierInResponse": {
"required": [
- "data",
- "links"
+ "id",
+ "type"
],
"type": "object",
"properties": {
- "links": {
+ "type": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceIdentifierCollectionTopLevelLinks"
+ "$ref": "#/components/schemas/personResourceType"
}
]
},
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/tagIdentifier"
- }
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "id": {
+ "minLength": 1,
+ "type": "string"
}
},
"additionalProperties": false
},
- "tagPatchRequestDocument": {
+ "personIdentifierResponseDocument": {
"required": [
- "data"
+ "data",
+ "links"
],
"type": "object",
"properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceIdentifierTopLevelLinks"
+ }
+ ]
+ },
"data": {
"allOf": [
{
- "$ref": "#/components/schemas/tagDataInPatchRequest"
+ "$ref": "#/components/schemas/personIdentifierInResponse"
+ }
+ ]
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
}
]
}
},
"additionalProperties": false
},
- "tagPostRequestDocument": {
+ "personOwnedTodoItemsRelationshipIdentifier": {
"required": [
- "data"
+ "relationship",
+ "type"
],
"type": "object",
"properties": {
- "data": {
+ "type": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personResourceType"
+ }
+ ]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "relationship": {
"allOf": [
{
- "$ref": "#/components/schemas/tagDataInPostRequest"
+ "$ref": "#/components/schemas/personOwnedTodoItemsRelationshipName"
}
]
}
},
"additionalProperties": false
},
- "tagPrimaryResponseDocument": {
+ "personOwnedTodoItemsRelationshipName": {
+ "enum": [
+ "ownedTodoItems"
+ ],
+ "type": "string",
+ "additionalProperties": false
+ },
+ "personPrimaryResponseDocument": {
"required": [
"data",
"links"
@@ -5769,7 +6204,7 @@
"data": {
"allOf": [
{
- "$ref": "#/components/schemas/tagDataInResponse"
+ "$ref": "#/components/schemas/personDataInResponse"
}
]
},
@@ -5780,45 +6215,26 @@
}
},
"meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
- }
- },
- "additionalProperties": false
- },
- "tagRelationshipsInPatchRequest": {
- "type": "object",
- "properties": {
- "todoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTodoItemInRequest"
+ "$ref": "#/components/schemas/meta"
}
]
}
},
"additionalProperties": false
},
- "tagRelationshipsInPostRequest": {
+ "personRelationshipsInResponse": {
"type": "object",
"properties": {
- "todoItems": {
+ "ownedTodoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTodoItemInRequest"
+ "$ref": "#/components/schemas/toManyTodoItemInResponse"
}
]
- }
- },
- "additionalProperties": false
- },
- "tagRelationshipsInResponse": {
- "type": "object",
- "properties": {
- "todoItems": {
+ },
+ "assignedTodoItems": {
"allOf": [
{
"$ref": "#/components/schemas/toManyTodoItemInResponse"
@@ -5828,341 +6244,255 @@
},
"additionalProperties": false
},
- "tagResourceType": {
+ "personResourceType": {
"enum": [
- "tags"
+ "people"
],
"type": "string",
"additionalProperties": false
},
- "toManyTagInRequest": {
+ "personSecondaryResponseDocument": {
"required": [
- "data"
+ "data",
+ "links"
],
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/tagIdentifier"
- }
- }
- },
- "additionalProperties": false
- },
- "toManyTagInResponse": {
"type": "object",
"properties": {
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/relationshipLinks"
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
}
]
},
"data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personDataInResponse"
+ }
+ ]
+ },
+ "included": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/tagIdentifier"
+ "$ref": "#/components/schemas/dataInResponse"
}
},
"meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "toManyTodoItemInRequest": {
- "required": [
- "data"
- ],
+ "relationshipLinks": {
"type": "object",
"properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/todoItemIdentifier"
- }
+ "self": {
+ "type": "string"
+ },
+ "related": {
+ "type": "string"
}
},
"additionalProperties": false
},
- "toManyTodoItemInResponse": {
+ "relationshipsInCreatePersonRequest": {
"type": "object",
"properties": {
- "links": {
+ "ownedTodoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/relationshipLinks"
+ "$ref": "#/components/schemas/toManyTodoItemInRequest"
}
]
},
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/todoItemIdentifier"
- }
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "assignedTodoItems": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/toManyTodoItemInRequest"
+ }
+ ]
}
},
"additionalProperties": false
},
- "toOnePersonInRequest": {
- "required": [
- "data"
- ],
+ "relationshipsInCreateTagRequest": {
"type": "object",
"properties": {
- "data": {
+ "todoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/personIdentifier"
+ "$ref": "#/components/schemas/toManyTodoItemInRequest"
}
]
}
},
"additionalProperties": false
},
- "toOnePersonInResponse": {
+ "relationshipsInCreateTodoItemRequest": {
+ "required": [
+ "owner"
+ ],
"type": "object",
"properties": {
- "links": {
+ "owner": {
"allOf": [
{
- "$ref": "#/components/schemas/relationshipLinks"
+ "$ref": "#/components/schemas/toOnePersonInRequest"
}
]
},
- "data": {
+ "assignee": {
"allOf": [
{
- "$ref": "#/components/schemas/personIdentifier"
+ "$ref": "#/components/schemas/nullableToOnePersonInRequest"
}
]
},
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
- }
- },
- "additionalProperties": false
- },
- "todoItemAttributesInPatchRequest": {
- "type": "object",
- "properties": {
- "description": {
- "type": "string"
- },
- "priority": {
+ "tags": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemPriority"
+ "$ref": "#/components/schemas/toManyTagInRequest"
}
]
- },
- "durationInHours": {
- "type": "integer",
- "format": "int64",
- "nullable": true
}
},
"additionalProperties": false
},
- "todoItemAttributesInPostRequest": {
- "required": [
- "description",
- "priority"
- ],
+ "relationshipsInUpdatePersonRequest": {
"type": "object",
"properties": {
- "description": {
- "type": "string"
- },
- "priority": {
+ "ownedTodoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemPriority"
+ "$ref": "#/components/schemas/toManyTodoItemInRequest"
}
]
},
- "durationInHours": {
- "type": "integer",
- "format": "int64",
- "nullable": true
- }
- },
- "additionalProperties": false
- },
- "todoItemAttributesInResponse": {
- "type": "object",
- "properties": {
- "description": {
- "type": "string"
- },
- "priority": {
+ "assignedTodoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemPriority"
+ "$ref": "#/components/schemas/toManyTodoItemInRequest"
}
]
- },
- "durationInHours": {
- "type": "integer",
- "format": "int64",
- "nullable": true
- },
- "createdAt": {
- "type": "string",
- "format": "date-time"
- },
- "modifiedAt": {
- "type": "string",
- "format": "date-time",
- "nullable": true
}
},
"additionalProperties": false
},
- "todoItemCollectionResponseDocument": {
- "required": [
- "data",
- "links"
- ],
+ "relationshipsInUpdateTagRequest": {
"type": "object",
"properties": {
- "links": {
+ "todoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
+ "$ref": "#/components/schemas/toManyTodoItemInRequest"
}
]
- },
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/todoItemDataInResponse"
- }
- },
- "included": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/dataInResponse"
- }
- },
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
}
},
"additionalProperties": false
},
- "todoItemDataInPatchRequest": {
- "required": [
- "id",
- "type"
- ],
+ "relationshipsInUpdateTodoItemRequest": {
"type": "object",
"properties": {
- "type": {
- "$ref": "#/components/schemas/todoItemResourceType"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- },
- "attributes": {
- "allOf": [
- {
- "$ref": "#/components/schemas/todoItemAttributesInPatchRequest"
- }
- ]
- },
- "relationships": {
+ "owner": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemRelationshipsInPatchRequest"
+ "$ref": "#/components/schemas/toOnePersonInRequest"
}
]
- }
- },
- "additionalProperties": false
- },
- "todoItemDataInPostRequest": {
- "required": [
- "type"
- ],
- "type": "object",
- "properties": {
- "type": {
- "$ref": "#/components/schemas/todoItemResourceType"
},
- "attributes": {
+ "assignee": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemAttributesInPostRequest"
+ "$ref": "#/components/schemas/nullableToOnePersonInRequest"
}
]
},
- "relationships": {
+ "tags": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemRelationshipsInPostRequest"
+ "$ref": "#/components/schemas/toManyTagInRequest"
}
]
}
},
"additionalProperties": false
},
- "todoItemDataInResponse": {
+ "removeFromPersonAssignedTodoItemsRelationshipOperation": {
"allOf": [
{
- "$ref": "#/components/schemas/dataInResponse"
+ "$ref": "#/components/schemas/atomicOperation"
},
{
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
"type": "object",
"properties": {
- "attributes": {
+ "op": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemAttributesInResponse"
+ "$ref": "#/components/schemas/removeOperationCode"
}
]
},
- "relationships": {
+ "ref": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemRelationshipsInResponse"
+ "$ref": "#/components/schemas/personAssignedTodoItemsRelationshipIdentifier"
}
]
},
- "links": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "removeFromPersonOwnedTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceLinks"
+ "$ref": "#/components/schemas/removeOperationCode"
}
]
},
- "meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personOwnedTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
}
}
},
@@ -6171,24 +6501,188 @@
],
"additionalProperties": false
},
- "todoItemIdentifier": {
- "required": [
- "id",
- "type"
- ],
- "type": "object",
- "properties": {
- "type": {
- "$ref": "#/components/schemas/todoItemResourceType"
+ "removeFromTagTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
},
- "id": {
- "minLength": 1,
- "type": "string"
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/removeOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/tagTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
}
- },
+ ],
"additionalProperties": false
},
- "todoItemIdentifierCollectionResponseDocument": {
+ "removeFromTodoItemTagsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/removeOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemTagsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/tagIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "removeOperationCode": {
+ "enum": [
+ "remove"
+ ],
+ "type": "string"
+ },
+ "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
+ },
+ "tagAttributesInResponse": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "tagCollectionResponseDocument": {
"required": [
"data",
"links"
@@ -6198,59 +6692,157 @@
"links": {
"allOf": [
{
- "$ref": "#/components/schemas/resourceIdentifierCollectionTopLevelLinks"
+ "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
}
]
},
"data": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/todoItemIdentifier"
+ "$ref": "#/components/schemas/tagDataInResponse"
+ }
+ },
+ "included": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/dataInResponse"
}
},
"meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "tagDataInResponse": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInResponse"
+ },
+ {
+ "required": [
+ "id"
+ ],
"type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
+ "properties": {
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "attributes": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/tagAttributesInResponse"
+ }
+ ]
+ },
+ "relationships": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/tagRelationshipsInResponse"
+ }
+ ]
+ },
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceLinks"
+ }
+ ]
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "tagIdentifierCollectionResponseDocument": {
+ "required": [
+ "data",
+ "links"
+ ],
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceIdentifierCollectionTopLevelLinks"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/tagIdentifierInResponse"
}
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "todoItemPatchRequestDocument": {
+ "tagIdentifierInRequest": {
"required": [
- "data"
+ "type"
],
"type": "object",
"properties": {
- "data": {
+ "type": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemDataInPatchRequest"
+ "$ref": "#/components/schemas/tagResourceType"
}
]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
}
},
"additionalProperties": false
},
- "todoItemPostRequestDocument": {
+ "tagIdentifierInResponse": {
"required": [
- "data"
+ "id",
+ "type"
],
"type": "object",
"properties": {
- "data": {
+ "type": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemDataInPostRequest"
+ "$ref": "#/components/schemas/tagResourceType"
}
]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
}
},
"additionalProperties": false
},
- "todoItemPrimaryResponseDocument": {
+ "tagPrimaryResponseDocument": {
"required": [
"data",
"links"
@@ -6267,7 +6859,7 @@
"data": {
"allOf": [
{
- "$ref": "#/components/schemas/todoItemDataInResponse"
+ "$ref": "#/components/schemas/tagDataInResponse"
}
]
},
@@ -6278,113 +6870,992 @@
}
},
"meta": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "nullable": true
- }
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
}
},
"additionalProperties": false
},
- "todoItemPriority": {
- "enum": [
- "High",
- "Medium",
- "Low"
- ],
- "type": "string"
- },
- "todoItemRelationshipsInPatchRequest": {
+ "tagRelationshipsInResponse": {
"type": "object",
"properties": {
- "owner": {
+ "todoItems": {
"allOf": [
{
- "$ref": "#/components/schemas/toOnePersonInRequest"
+ "$ref": "#/components/schemas/toManyTodoItemInResponse"
}
]
- },
- "assignee": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "tagResourceType": {
+ "enum": [
+ "tags"
+ ],
+ "type": "string",
+ "additionalProperties": false
+ },
+ "tagTodoItemsRelationshipIdentifier": {
+ "required": [
+ "relationship",
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
"allOf": [
{
- "$ref": "#/components/schemas/nullableToOnePersonInRequest"
+ "$ref": "#/components/schemas/tagResourceType"
}
]
},
- "tags": {
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "relationship": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTagInRequest"
+ "$ref": "#/components/schemas/tagTodoItemsRelationshipName"
}
]
}
},
"additionalProperties": false
},
- "todoItemRelationshipsInPostRequest": {
+ "tagTodoItemsRelationshipName": {
+ "enum": [
+ "todoItems"
+ ],
+ "type": "string",
+ "additionalProperties": false
+ },
+ "toManyTagInRequest": {
"required": [
- "owner"
+ "data"
],
"type": "object",
"properties": {
- "owner": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/tagIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "toManyTagInResponse": {
+ "type": "object",
+ "properties": {
+ "links": {
"allOf": [
{
- "$ref": "#/components/schemas/toOnePersonInRequest"
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
- "assignee": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/tagIdentifierInResponse"
+ }
+ },
+ "meta": {
"allOf": [
{
- "$ref": "#/components/schemas/nullableToOnePersonInRequest"
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "toManyTodoItemInRequest": {
+ "required": [
+ "data"
+ ],
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "toManyTodoItemInResponse": {
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
- "tags": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInResponse"
+ }
+ },
+ "meta": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTagInRequest"
+ "$ref": "#/components/schemas/meta"
}
]
}
},
"additionalProperties": false
},
- "todoItemRelationshipsInResponse": {
+ "toOnePersonInRequest": {
+ "required": [
+ "data"
+ ],
"type": "object",
"properties": {
- "owner": {
+ "data": {
"allOf": [
{
- "$ref": "#/components/schemas/toOnePersonInResponse"
+ "$ref": "#/components/schemas/personIdentifierInRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "toOnePersonInResponse": {
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/relationshipLinks"
}
]
},
- "assignee": {
+ "data": {
"allOf": [
{
- "$ref": "#/components/schemas/nullableToOnePersonInResponse"
+ "$ref": "#/components/schemas/personIdentifierInResponse"
}
]
},
- "tags": {
+ "meta": {
"allOf": [
{
- "$ref": "#/components/schemas/toManyTagInResponse"
+ "$ref": "#/components/schemas/meta"
}
]
}
},
"additionalProperties": false
},
- "todoItemResourceType": {
+ "todoItemAssigneeRelationshipIdentifier": {
+ "required": [
+ "relationship",
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemResourceType"
+ }
+ ]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "relationship": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemAssigneeRelationshipName"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemAssigneeRelationshipName": {
"enum": [
- "todoItems"
+ "assignee"
],
"type": "string",
"additionalProperties": false
+ },
+ "todoItemAttributesInResponse": {
+ "type": "object",
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "priority": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemPriority"
+ }
+ ]
+ },
+ "durationInHours": {
+ "type": "integer",
+ "format": "int64",
+ "nullable": true
+ },
+ "createdAt": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "modifiedAt": {
+ "type": "string",
+ "format": "date-time",
+ "nullable": true
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemCollectionResponseDocument": {
+ "required": [
+ "data",
+ "links"
+ ],
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceCollectionTopLevelLinks"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemDataInResponse"
+ }
+ },
+ "included": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/dataInResponse"
+ }
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemDataInResponse": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInResponse"
+ },
+ {
+ "required": [
+ "id"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "attributes": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemAttributesInResponse"
+ }
+ ]
+ },
+ "relationships": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemRelationshipsInResponse"
+ }
+ ]
+ },
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceLinks"
+ }
+ ]
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "todoItemIdentifierCollectionResponseDocument": {
+ "required": [
+ "data",
+ "links"
+ ],
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceIdentifierCollectionTopLevelLinks"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInResponse"
+ }
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemIdentifierInRequest": {
+ "required": [
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemResourceType"
+ }
+ ]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemIdentifierInResponse": {
+ "required": [
+ "id",
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemResourceType"
+ }
+ ]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemOwnerRelationshipIdentifier": {
+ "required": [
+ "relationship",
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemResourceType"
+ }
+ ]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "relationship": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemOwnerRelationshipName"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemOwnerRelationshipName": {
+ "enum": [
+ "owner"
+ ],
+ "type": "string",
+ "additionalProperties": false
+ },
+ "todoItemPrimaryResponseDocument": {
+ "required": [
+ "data",
+ "links"
+ ],
+ "type": "object",
+ "properties": {
+ "links": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/resourceTopLevelLinks"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemDataInResponse"
+ }
+ ]
+ },
+ "included": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/dataInResponse"
+ }
+ },
+ "meta": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/meta"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemPriority": {
+ "enum": [
+ "High",
+ "Medium",
+ "Low"
+ ],
+ "type": "string"
+ },
+ "todoItemRelationshipsInResponse": {
+ "type": "object",
+ "properties": {
+ "owner": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/toOnePersonInResponse"
+ }
+ ]
+ },
+ "assignee": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/nullableToOnePersonInResponse"
+ }
+ ]
+ },
+ "tags": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/toManyTagInResponse"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemResourceType": {
+ "enum": [
+ "todoItems"
+ ],
+ "type": "string",
+ "additionalProperties": false
+ },
+ "todoItemTagsRelationshipIdentifier": {
+ "required": [
+ "relationship",
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemResourceType"
+ }
+ ]
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "lid": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "relationship": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemTagsRelationshipName"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "todoItemTagsRelationshipName": {
+ "enum": [
+ "tags"
+ ],
+ "type": "string",
+ "additionalProperties": false
+ },
+ "updateOperationCode": {
+ "enum": [
+ "update"
+ ],
+ "type": "string"
+ },
+ "updatePersonAssignedTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personAssignedTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updatePersonOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personIdentifierInRequest"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInUpdatePersonRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updatePersonOwnedTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personOwnedTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updatePersonRequestDocument": {
+ "required": [
+ "data"
+ ],
+ "type": "object",
+ "properties": {
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInUpdatePersonRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "updateTagOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/tagIdentifierInRequest"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInUpdateTagRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updateTagRequestDocument": {
+ "required": [
+ "data"
+ ],
+ "type": "object",
+ "properties": {
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInUpdateTagRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "updateTagTodoItemsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/tagTodoItemsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updateTodoItemAssigneeRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemAssigneeRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personIdentifierInRequest"
+ }
+ ],
+ "nullable": true
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updateTodoItemOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemIdentifierInRequest"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInUpdateTodoItemRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updateTodoItemOwnerRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemOwnerRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/personIdentifierInRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
+ },
+ "updateTodoItemRequestDocument": {
+ "required": [
+ "data"
+ ],
+ "type": "object",
+ "properties": {
+ "data": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/dataInUpdateTodoItemRequest"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "updateTodoItemTagsRelationshipOperation": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/atomicOperation"
+ },
+ {
+ "required": [
+ "data",
+ "op",
+ "ref"
+ ],
+ "type": "object",
+ "properties": {
+ "op": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/updateOperationCode"
+ }
+ ]
+ },
+ "ref": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/todoItemTagsRelationshipIdentifier"
+ }
+ ]
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/tagIdentifierInRequest"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "additionalProperties": false
}
}
}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/ApiRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/ApiRequestBuilder.cs
index 4bd6ebd6b3..63370b8caa 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/ApiRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/ApiRequestBuilder.cs
@@ -1,5 +1,6 @@
//
using Microsoft.Kiota.Abstractions;
+using OpenApiKiotaClientExample.GeneratedCode.Api.Operations;
using OpenApiKiotaClientExample.GeneratedCode.Api.People;
using OpenApiKiotaClientExample.GeneratedCode.Api.Tags;
using OpenApiKiotaClientExample.GeneratedCode.Api.TodoItems;
@@ -8,29 +9,35 @@
using System.Linq;
using System.Threading.Tasks;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api
+{
///
/// Builds and executes requests for operations under \api
///
- public class ApiRequestBuilder : BaseRequestBuilder
+ public class ApiRequestBuilder : BaseRequestBuilder
{
+ /// The operations property
+ public OpenApiKiotaClientExample.GeneratedCode.Api.Operations.OperationsRequestBuilder Operations
+ {
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.Operations.OperationsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// The people property
- public PeopleRequestBuilder People
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.PeopleRequestBuilder People
{
- get => new PeopleRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.People.PeopleRequestBuilder(PathParameters, RequestAdapter);
}
/// The tags property
- public TagsRequestBuilder Tags
+ public OpenApiKiotaClientExample.GeneratedCode.Api.Tags.TagsRequestBuilder Tags
{
- get => new TagsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.Tags.TagsRequestBuilder(PathParameters, RequestAdapter);
}
/// The todoItems property
- public TodoItemsRequestBuilder TodoItems
+ public OpenApiKiotaClientExample.GeneratedCode.Api.TodoItems.TodoItemsRequestBuilder TodoItems
{
- get => new TodoItemsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.TodoItems.TodoItemsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -38,7 +45,7 @@ public ApiRequestBuilder(Dictionary pathParameters, IRequestAdap
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Operations/OperationsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Operations/OperationsRequestBuilder.cs
new file mode 100644
index 0000000000..5f5e4d43cb
--- /dev/null
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Operations/OperationsRequestBuilder.cs
@@ -0,0 +1,99 @@
+//
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using OpenApiKiotaClientExample.GeneratedCode.Models;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.Operations
+{
+ ///
+ /// Builds and executes requests for operations under \api\operations
+ ///
+ public class OperationsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public OperationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/api/operations", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/api/operations", rawUrl)
+ {
+ }
+ ///
+ /// Performs multiple mutations in a linear and atomic manner.
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
+ /// When receiving a 422 status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.OperationsRequestDocument body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.OperationsRequestDocument body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "403", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "422", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.OperationsResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Performs multiple mutations in a linear and atomic manner.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.OperationsRequestDocument body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.OperationsRequestDocument body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/vnd.api+json;ext=atomic-operations");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/vnd.api+json;ext=atomic-operations", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public OpenApiKiotaClientExample.GeneratedCode.Api.Operations.OperationsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.Operations.OperationsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ }
+}
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs
index 52081b8d19..c227373f50 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs
@@ -8,14 +8,15 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.AssignedTodoItems {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.AssignedTodoItems
+{
///
/// Builds and executes requests for operations under \api\people\{id}\assignedTodoItems
///
- public class AssignedTodoItemsRequestBuilder : BaseRequestBuilder
+ public class AssignedTodoItemsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +24,7 @@ public AssignedTodoItemsRequestBuilder(Dictionary pathParameters
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -33,27 +34,27 @@ public AssignedTodoItemsRequestBuilder(string rawUrl, IRequestAdapter requestAda
///
/// Retrieves the related todoItems of an individual person's assignedTodoItems relationship.
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, TodoItemCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.TodoItemCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Compare the returned ETag HTTP header with an earlier one to determine if the response has changed since it was fetched.
@@ -62,11 +63,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToHeadRequestInformation(requestConfiguration);
@@ -79,11 +80,11 @@ public async Task HeadAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -98,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.HEAD, UrlTemplate, PathParameters);
@@ -112,11 +113,11 @@ public RequestInformation ToHeadRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public AssignedTodoItemsRequestBuilder WithUrl(string rawUrl)
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.AssignedTodoItems.AssignedTodoItemsRequestBuilder WithUrl(string rawUrl)
{
- return new AssignedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.AssignedTodoItems.AssignedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Retrieves the related todoItems of an individual person's assignedTodoItems relationship.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs
index 8215a1831d..6bd42bf7c1 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs
@@ -8,14 +8,15 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.OwnedTodoItems {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.OwnedTodoItems
+{
///
/// Builds and executes requests for operations under \api\people\{id}\ownedTodoItems
///
- public class OwnedTodoItemsRequestBuilder : BaseRequestBuilder
+ public class OwnedTodoItemsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +24,7 @@ public OwnedTodoItemsRequestBuilder(Dictionary pathParameters, I
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -33,27 +34,27 @@ public OwnedTodoItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte
///
/// Retrieves the related todoItems of an individual person's ownedTodoItems relationship.
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, TodoItemCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.TodoItemCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Compare the returned ETag HTTP header with an earlier one to determine if the response has changed since it was fetched.
@@ -62,11 +63,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToHeadRequestInformation(requestConfiguration);
@@ -79,11 +80,11 @@ public async Task HeadAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -98,11 +99,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.HEAD, UrlTemplate, PathParameters);
@@ -112,11 +113,11 @@ public RequestInformation ToHeadRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public OwnedTodoItemsRequestBuilder WithUrl(string rawUrl)
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.OwnedTodoItems.OwnedTodoItemsRequestBuilder WithUrl(string rawUrl)
{
- return new OwnedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.OwnedTodoItems.OwnedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Retrieves the related todoItems of an individual person's ownedTodoItems relationship.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/PeopleItemRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/PeopleItemRequestBuilder.cs
index 7cf26c0077..250d9c9056 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/PeopleItemRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/PeopleItemRequestBuilder.cs
@@ -11,29 +11,30 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item
+{
///
/// Builds and executes requests for operations under \api\people\{id}
///
- public class PeopleItemRequestBuilder : BaseRequestBuilder
+ public class PeopleItemRequestBuilder : BaseRequestBuilder
{
/// The assignedTodoItems property
- public AssignedTodoItemsRequestBuilder AssignedTodoItems
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.AssignedTodoItems.AssignedTodoItemsRequestBuilder AssignedTodoItems
{
- get => new AssignedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.AssignedTodoItems.AssignedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
}
/// The ownedTodoItems property
- public OwnedTodoItemsRequestBuilder OwnedTodoItems
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.OwnedTodoItems.OwnedTodoItemsRequestBuilder OwnedTodoItems
{
- get => new OwnedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.OwnedTodoItems.OwnedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
}
/// The relationships property
- public RelationshipsRequestBuilder Relationships
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.RelationshipsRequestBuilder Relationships
{
- get => new RelationshipsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.RelationshipsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -41,7 +42,7 @@ public PeopleItemRequestBuilder(Dictionary pathParameters, IRequ
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -53,7 +54,7 @@ public PeopleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 404 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
@@ -66,34 +67,34 @@ public async Task DeleteAsync(Action>
{
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Retrieves an individual person by its identifier.
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, PersonPrimaryResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.PersonPrimaryResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Compare the returned ETag HTTP header with an earlier one to determine if the response has changed since it was fetched.
@@ -102,11 +103,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToHeadRequestInformation(requestConfiguration);
@@ -115,33 +116,33 @@ public async Task HeadAsync(Action
/// Updates an existing person.
///
- /// A
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
- /// When receiving a 422 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PatchAsync(PersonPatchRequestDocument body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(OpenApiKiotaClientExample.GeneratedCode.Models.UpdatePersonRequestDocument body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PatchAsync(PersonPatchRequestDocument body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(OpenApiKiotaClientExample.GeneratedCode.Models.UpdatePersonRequestDocument body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"422", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "422", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, PersonPrimaryResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.PersonPrimaryResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Deletes an existing person by its identifier.
@@ -169,11 +170,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -188,11 +189,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.HEAD, UrlTemplate, PathParameters);
@@ -207,11 +208,11 @@ public RequestInformation ToHeadRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(PersonPatchRequestDocument body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.UpdatePersonRequestDocument body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(PersonPatchRequestDocument body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.UpdatePersonRequestDocument body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -224,11 +225,11 @@ public RequestInformation ToPatchRequestInformation(PersonPatchRequestDocument b
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public PeopleItemRequestBuilder WithUrl(string rawUrl)
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.PeopleItemRequestBuilder WithUrl(string rawUrl)
{
- return new PeopleItemRequestBuilder(rawUrl, RequestAdapter);
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.PeopleItemRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Retrieves an individual person by its identifier.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs
index b45212a50f..ce90b973b9 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/AssignedTodoItems/AssignedTodoItemsRequestBuilder.cs
@@ -8,14 +8,15 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.AssignedTodoItems {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.AssignedTodoItems
+{
///
/// Builds and executes requests for operations under \api\people\{id}\relationships\assignedTodoItems
///
- public class AssignedTodoItemsRequestBuilder : BaseRequestBuilder
+ public class AssignedTodoItemsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +24,7 @@ public AssignedTodoItemsRequestBuilder(Dictionary pathParameters
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -36,52 +37,52 @@ public AssignedTodoItemsRequestBuilder(string rawUrl, IRequestAdapter requestAda
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task DeleteAsync(ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task DeleteAsync(ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToDeleteRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Retrieves the related todoItem identities of an individual person's assignedTodoItems relationship.
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, TodoItemIdentifierCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.TodoItemIdentifierCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Compare the returned ETag HTTP header with an earlier one to determine if the response has changed since it was fetched.
@@ -90,11 +91,11 @@ public async Task GetAsync(Action<
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToHeadRequestInformation(requestConfiguration);
@@ -106,25 +107,25 @@ public async Task HeadAsync(ActionThe request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PatchAsync(ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PatchAsync(ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -134,25 +135,25 @@ public async Task PatchAsync(ToManyTodoItemInRequest body, ActionThe request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -164,11 +165,11 @@ public async Task PostAsync(ToManyTodoItemInRequest body, ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToDeleteRequestInformation(ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToDeleteRequestInformation(ToManyTodoItemInRequest body, Action> requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -185,11 +186,11 @@ public RequestInformation ToDeleteRequestInformation(ToManyTodoItemInRequest bod
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -204,11 +205,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.HEAD, UrlTemplate, PathParameters);
@@ -223,11 +224,11 @@ public RequestInformation ToHeadRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(ToManyTodoItemInRequest body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -245,11 +246,11 @@ public RequestInformation ToPatchRequestInformation(ToManyTodoItemInRequest body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(ToManyTodoItemInRequest body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -262,11 +263,11 @@ public RequestInformation ToPostRequestInformation(ToManyTodoItemInRequest body,
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public AssignedTodoItemsRequestBuilder WithUrl(string rawUrl)
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.AssignedTodoItems.AssignedTodoItemsRequestBuilder WithUrl(string rawUrl)
{
- return new AssignedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.AssignedTodoItems.AssignedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Retrieves the related todoItem identities of an individual person's assignedTodoItems relationship.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs
index 1379b9098e..5476a77592 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/OwnedTodoItems/OwnedTodoItemsRequestBuilder.cs
@@ -8,14 +8,15 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.OwnedTodoItems {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.OwnedTodoItems
+{
///
/// Builds and executes requests for operations under \api\people\{id}\relationships\ownedTodoItems
///
- public class OwnedTodoItemsRequestBuilder : BaseRequestBuilder
+ public class OwnedTodoItemsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +24,7 @@ public OwnedTodoItemsRequestBuilder(Dictionary pathParameters, I
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -36,52 +37,52 @@ public OwnedTodoItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task DeleteAsync(ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task DeleteAsync(ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToDeleteRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Retrieves the related todoItem identities of an individual person's ownedTodoItems relationship.
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, TodoItemIdentifierCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.TodoItemIdentifierCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Compare the returned ETag HTTP header with an earlier one to determine if the response has changed since it was fetched.
@@ -90,11 +91,11 @@ public async Task GetAsync(Action<
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToHeadRequestInformation(requestConfiguration);
@@ -106,25 +107,25 @@ public async Task HeadAsync(ActionThe request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PatchAsync(ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PatchAsync(ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -134,25 +135,25 @@ public async Task PatchAsync(ToManyTodoItemInRequest body, ActionThe request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -164,11 +165,11 @@ public async Task PostAsync(ToManyTodoItemInRequest body, ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToDeleteRequestInformation(ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToDeleteRequestInformation(ToManyTodoItemInRequest body, Action> requestConfiguration = default)
+ public RequestInformation ToDeleteRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -185,11 +186,11 @@ public RequestInformation ToDeleteRequestInformation(ToManyTodoItemInRequest bod
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -204,11 +205,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.HEAD, UrlTemplate, PathParameters);
@@ -223,11 +224,11 @@ public RequestInformation ToHeadRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(ToManyTodoItemInRequest body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -245,11 +246,11 @@ public RequestInformation ToPatchRequestInformation(ToManyTodoItemInRequest body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(ToManyTodoItemInRequest body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -262,11 +263,11 @@ public RequestInformation ToPostRequestInformation(ToManyTodoItemInRequest body,
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public OwnedTodoItemsRequestBuilder WithUrl(string rawUrl)
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.OwnedTodoItems.OwnedTodoItemsRequestBuilder WithUrl(string rawUrl)
{
- return new OwnedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.OwnedTodoItems.OwnedTodoItemsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Retrieves the related todoItem identities of an individual person's ownedTodoItems relationship.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/RelationshipsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/RelationshipsRequestBuilder.cs
index 7788191044..b3d60c6035 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/RelationshipsRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/Item/Relationships/RelationshipsRequestBuilder.cs
@@ -7,24 +7,25 @@
using System.Linq;
using System.Threading.Tasks;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships
+{
///
/// Builds and executes requests for operations under \api\people\{id}\relationships
///
- public class RelationshipsRequestBuilder : BaseRequestBuilder
+ public class RelationshipsRequestBuilder : BaseRequestBuilder
{
/// The assignedTodoItems property
- public AssignedTodoItemsRequestBuilder AssignedTodoItems
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.AssignedTodoItems.AssignedTodoItemsRequestBuilder AssignedTodoItems
{
- get => new AssignedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.AssignedTodoItems.AssignedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
}
/// The ownedTodoItems property
- public OwnedTodoItemsRequestBuilder OwnedTodoItems
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.OwnedTodoItems.OwnedTodoItemsRequestBuilder OwnedTodoItems
{
- get => new OwnedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.Relationships.OwnedTodoItems.OwnedTodoItemsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -32,7 +33,7 @@ public RelationshipsRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/PeopleRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/PeopleRequestBuilder.cs
index c850739a21..19152cc579 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/PeopleRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/People/PeopleRequestBuilder.cs
@@ -9,26 +9,27 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.People {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.People
+{
///
/// Builds and executes requests for operations under \api\people
///
- public class PeopleRequestBuilder : BaseRequestBuilder
+ public class PeopleRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the OpenApiKiotaClientExample.GeneratedCode.api.people.item collection
/// The identifier of the person to retrieve.
- /// A
- public PeopleItemRequestBuilder this[string position]
+ /// A
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.PeopleItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("id", position);
- return new PeopleItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.People.Item.PeopleItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -36,7 +37,7 @@ public PeopleRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -46,25 +47,25 @@ public PeopleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
///
/// Retrieves a collection of people.
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
+ /// When receiving a 400 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, PersonCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.PersonCollectionResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Compare the returned ETag HTTP header with an earlier one to determine if the response has changed since it was fetched.
@@ -73,11 +74,11 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task HeadAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToHeadRequestInformation(requestConfiguration);
@@ -86,35 +87,35 @@ public async Task HeadAsync(Action
/// Creates a new person.
///
- /// A
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 403 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
- /// When receiving a 422 status code
+ /// When receiving a 400 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(PersonPostRequestDocument body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.CreatePersonRequestDocument body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(PersonPostRequestDocument body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(OpenApiKiotaClientExample.GeneratedCode.Models.CreatePersonRequestDocument body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"403", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"422", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "403", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "422", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, PersonPrimaryResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, OpenApiKiotaClientExample.GeneratedCode.Models.PersonPrimaryResponseDocument.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Retrieves a collection of people.
@@ -123,11 +124,11 @@ public async Task PostAsync(PersonPostRequestDocu
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -142,11 +143,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToHeadRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.HEAD, UrlTemplate, PathParameters);
@@ -161,11 +162,11 @@ public RequestInformation ToHeadRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(PersonPostRequestDocument body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.CreatePersonRequestDocument body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(PersonPostRequestDocument body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(OpenApiKiotaClientExample.GeneratedCode.Models.CreatePersonRequestDocument body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -178,11 +179,11 @@ public RequestInformation ToPostRequestInformation(PersonPostRequestDocument bod
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public PeopleRequestBuilder WithUrl(string rawUrl)
+ public OpenApiKiotaClientExample.GeneratedCode.Api.People.PeopleRequestBuilder WithUrl(string rawUrl)
{
- return new PeopleRequestBuilder(rawUrl, RequestAdapter);
+ return new OpenApiKiotaClientExample.GeneratedCode.Api.People.PeopleRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Retrieves a collection of people.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/RelationshipsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/RelationshipsRequestBuilder.cs
index cfdca79b86..3a0e06dd82 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/RelationshipsRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/RelationshipsRequestBuilder.cs
@@ -6,19 +6,20 @@
using System.Linq;
using System.Threading.Tasks;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.Tags.Item.Relationships {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.Tags.Item.Relationships
+{
///
/// Builds and executes requests for operations under \api\tags\{id}\relationships
///
- public class RelationshipsRequestBuilder : BaseRequestBuilder
+ public class RelationshipsRequestBuilder : BaseRequestBuilder
{
/// The todoItems property
- public TodoItemsRequestBuilder TodoItems
+ public OpenApiKiotaClientExample.GeneratedCode.Api.Tags.Item.Relationships.TodoItems.TodoItemsRequestBuilder TodoItems
{
- get => new TodoItemsRequestBuilder(PathParameters, RequestAdapter);
+ get => new OpenApiKiotaClientExample.GeneratedCode.Api.Tags.Item.Relationships.TodoItems.TodoItemsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -26,7 +27,7 @@ public RelationshipsRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
diff --git a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/TodoItems/TodoItemsRequestBuilder.cs b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/TodoItems/TodoItemsRequestBuilder.cs
index 1c2af4e889..af9159ef08 100644
--- a/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/TodoItems/TodoItemsRequestBuilder.cs
+++ b/src/Examples/OpenApiKiotaClientExample/GeneratedCode/Api/Tags/Item/Relationships/TodoItems/TodoItemsRequestBuilder.cs
@@ -8,14 +8,15 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace OpenApiKiotaClientExample.GeneratedCode.Api.Tags.Item.Relationships.TodoItems {
+namespace OpenApiKiotaClientExample.GeneratedCode.Api.Tags.Item.Relationships.TodoItems
+{
///
/// Builds and executes requests for operations under \api\tags\{id}\relationships\todoItems
///
- public class TodoItemsRequestBuilder : BaseRequestBuilder
+ public class TodoItemsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +24,7 @@ public TodoItemsRequestBuilder(Dictionary pathParameters, IReque
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -36,52 +37,52 @@ public TodoItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
- /// When receiving a 409 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task DeleteAsync(ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task DeleteAsync(ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(OpenApiKiotaClientExample.GeneratedCode.Models.ToManyTodoItemInRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToDeleteRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"409", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "409", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Retrieves the related todoItem identities of an individual tag's todoItems relationship.
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 400 status code
- /// When receiving a 404 status code
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ErrorResponseDocument.CreateFromDiscriminatorValue},
- {"404", ErrorResponseDocument.CreateFromDiscriminatorValue},
+ { "400", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
+ { "404", OpenApiKiotaClientExample.GeneratedCode.Models.ErrorResponseDocument.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync