Skip to content

Commit

Permalink
openapi(navigation): add missing response for next destination
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Dec 5, 2022
1 parent e66905c commit bd70c65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
};
};
Expand Down
7 changes: 5 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd70c65

Please sign in to comment.