diff --git a/index.d.ts b/index.d.ts index 9818db5..0de2f2a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1574,7 +1574,7 @@ export interface operations { /** @description JSON object containing next destination, or null if no destination is set */ 200: { content: { - "application/json": components["schemas"]["NavigationDestination"]; + "application/json": components["schemas"]["NavigationDestination"] | "null"; }; }; }; diff --git a/openapi.yaml b/openapi.yaml index 4f0e16f..2c7ff58 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1075,10 +1075,13 @@ paths: '200': description: JSON object containing next destination, or null if no destination is set content: - # TODO: can return text null application/json: schema: - $ref: '#/components/schemas/NavigationDestination' + oneOf: + - $ref: '#/components/schemas/NavigationDestination' + - type: string + enum: + - "null" delete: operationId: clearNavigationNext summary: Clear nav destination