Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update terms of services response #391

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"url": "http://www.apache.org/licenses/LICENSE-2.0"
},
"version": "2.0.0",
"x-box-commit-hash": "d81cf2f982"
"x-box-commit-hash": "d6b3a4d2fb"
},
"servers": [
{
Expand Down Expand Up @@ -21566,7 +21566,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Task"
"$ref": "#/components/schemas/TermsOfService"
}
}
}
Expand Down Expand Up @@ -25014,7 +25014,7 @@
"type": "array",
"description": "The permissions that this access token permits,\nproviding a list of resources (files, folders, etc)\nand the scopes permitted for each of those resources.",
"items": {
"$ref": "#/components/schemas/FileScope"
"$ref": "#/components/schemas/FileOrFolderScope"
}
},
"refresh_token": {
Expand Down Expand Up @@ -27109,7 +27109,7 @@
"type": "array",
"description": "The permissions that this access token permits,\nproviding a list of resources (files, folders, etc)\nand the scopes permitted for each of those resources.",
"items": {
"$ref": "#/components/schemas/FileScope"
"$ref": "#/components/schemas/FileOrFolderScope"
}
}
}
Expand Down Expand Up @@ -32689,6 +32689,10 @@
],
"x-box-variant": "base",
"description": "The root-level record that is supposed to represent a\nsingle Terms of Service.",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "string",
Expand Down Expand Up @@ -36639,14 +36643,14 @@
}
]
},
"FileScope": {
"title": "File scope",
"FileOrFolderScope": {
"title": "File or folder scope",
"type": "object",
"description": "A relation between a file and the scopes for which the file can be accessed",
"description": "A relation between a resource (file or folder) and the scopes for which the resource can be accessed",
"properties": {
"scope": {
"type": "string",
"description": "The file scopes for the file access",
"description": "The scopes for the resource access",
"example": "item_download",
"enum": [
"annotation_edit",
Expand All @@ -36666,10 +36670,17 @@
"object": {
"allOf": [
{
"$ref": "#/components/schemas/File--Mini"
"oneOf": [
{
"$ref": "#/components/schemas/Folder--Mini"
},
{
"$ref": "#/components/schemas/File--Mini"
}
]
},
{
"description": "The file for which the file can be accessed"
"description": "The file or folder resource"
}
]
}
Expand Down