-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Labels
priority:p0Blocking issue/ loss of critical functions. An ICM may be filed to communicate urgency. SLA<=48hrsBlocking issue/ loss of critical functions. An ICM may be filed to communicate urgency. SLA<=48hrstype:bugA broken experienceA broken experience
Milestone
Description
Starting in Microsoft.OpenApi.OData v1.1.0, @OData.NextLink property of response collection schema was moved to a base collection pagination and count responses schema. Unfortunately, AutoREST does not support this representation at the moment. See how AutoREST supports paging at https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/199.
Assemblies affected
Microsoft.OpenApi.OData v1.1.0
Expected result
paths:
/applications:
get:
tags:
- applications.application
summary: List applications
operationId: applications.application_ListApplication
responses:
'200':
$ref: '#/components/responses/microsoft.graph.applicationCollectionResponse'
default:
$ref: '#/components/responses/error'
x-ms-pageable:
nextLinkName: '@odata.nextLink' # REQUIRED: property name for next page URL
operationName: listMore
x-ms-docs-operation-type: operation
components:
responses:
microsoft.graph.applicationCollectionResponse:
description: Retrieved collection
content:
application/json:
schema:
$ref: '#/components/schemas/microsoft.graph.applicationCollectionResponse'
schemas:
microsoft.graph.applicationCollectionResponse:
title: Collection of application
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/microsoft.graph.application'
'@odata.nextLink': # REQUIRED: next page URL (referred to by "nextLinkName")
type: string
additionalProperties:
type: objectActual result
paths:
/applications:
get:
tags:
- applications.application
summary: List applications
operationId: applications.application_ListApplication
responses:
'200':
$ref: '#/components/responses/microsoft.graph.applicationCollectionResponse'
default:
$ref: '#/components/responses/error'
x-ms-pageable:
nextLinkName: '@odata.nextLink' # REQUIRED: property name for next page URL
operationName: listMore
x-ms-docs-operation-type: operation
components:
responses:
microsoft.graph.applicationCollectionResponse:
description: Retrieved collection
content:
application/json:
schema:
$ref: '#/components/schemas/microsoft.graph.applicationCollectionResponse'
schemas:
microsoft.graph.applicationCollectionResponse:
title: Collection of application
type: object
allOf:
- $ref: '#/components/schemas/BaseCollectionPaginationCountResponse'
- type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/microsoft.graph.application'
additionalProperties:
type: object
additionalProperties:
type: object
BaseCollectionPaginationCountResponse:
title: Base collection pagination and count responses
type: object
properties:
'@odata.nextLink': # NOT supported by AutoREST.
type: string
nullable: true
additionalProperties:
type: objectMetadata
Metadata
Assignees
Labels
priority:p0Blocking issue/ loss of critical functions. An ICM may be filed to communicate urgency. SLA<=48hrsBlocking issue/ loss of critical functions. An ICM may be filed to communicate urgency. SLA<=48hrstype:bugA broken experienceA broken experience