diff --git a/packages/generator/spec.json b/packages/generator/spec.json index c8b4f5d7..c7afe3f5 100644 --- a/packages/generator/spec.json +++ b/packages/generator/spec.json @@ -55,7 +55,7 @@ "schema": { "title": "Token information", "type": "object", - "required": ["type", "team", "createdBy", "user"], + "required": ["type", "organization", "team", "createdBy", "user"], "properties": { "type": { "type": "string" diff --git a/packages/miro-api-python/miro_api/models/token_information.py b/packages/miro-api-python/miro_api/models/token_information.py index 0b5cfce0..1773963c 100644 --- a/packages/miro-api-python/miro_api/models/token_information.py +++ b/packages/miro-api-python/miro_api/models/token_information.py @@ -32,7 +32,7 @@ class TokenInformation(BaseModel): """ # noqa: E501 type: StrictStr - organization: Optional[OrganizationInformation] = None + organization: OrganizationInformation team: TeamInformation created_by: UserInformation = Field(alias="createdBy") user: UserInformation diff --git a/packages/miro-api/model/tokenInformation.ts b/packages/miro-api/model/tokenInformation.ts index abef9240..aa48fe06 100644 --- a/packages/miro-api/model/tokenInformation.ts +++ b/packages/miro-api/model/tokenInformation.ts @@ -16,7 +16,7 @@ import {UserInformation} from './userInformation' export class TokenInformation { 'type': string - 'organization'?: OrganizationInformation + 'organization': OrganizationInformation 'team': TeamInformation 'createdBy': UserInformation 'user': UserInformation