The API Schema is broken and I cannot generate API clients using OpenAPI generator.
Even if I skip validation I'm getting a fatal exception, as shown on this workflow.
Fixing this is the first step for automating API client generation, which would aggregate much value for Sentry users.
Environment
MacOS Ventura 13.3.1 with ZShell
Steps to Reproduce
- Clone the repository
- Run OpenAPI generator validation for the OpenAPI Schema file:
npx @openapitools/openapi-generator-cli validate -i openapi-defered.json
Expected Result
Validation should be successful
Actual Result
Errors:
- attribute
paths.'/organizations/{organization_slug}/releases/{version}/deploys/'(post).requestBody.content.'application/json'.schema.items
is missing
Warnings:
- Unused model: MonitorValidator
- Unused model: ConfigValidator
- Unused model: SCIMListResponseEnvelopeSCIMTeamIndexResponse
- Unused model: MonitorAlertRuleTargetValidator
- Unused model: MonitorCheckIn
- Unused model: Monitor
- Unused model: OrganizationEventsResponseDict
- Unused model: TeamSCIM
- Unused model: SCIMListResponseEnvelopeSCIMMemberIndexResponse
- Unused model: SCIMTeamPatchOperation
- Unused model: OutcomesResponse
- Unused model: SCIMTeamPatchRequest
- Unused model: MonitorList
- Unused model: OrganizationMemberWithRoles
- Unused model: SCIMPatchRequest
- Unused model: MonitorCheckInValidator
- Unused model: OrganizationMemberSCIM
- Unused model: SourceMapDebug
- Unused model: SCIMMemberProvision
- Unused model: SCIMPatchOperation
- Unused model: SCIMTeamRequestBody
- Unused model: CheckInList
- Unused model: MonitorAlertRuleValidator
- Unused model: OrganizationProjectResponseDict
[error] Spec has 1 errors.
The API Schema is broken and I cannot generate API clients using OpenAPI generator.
Even if I skip validation I'm getting a fatal exception, as shown on this workflow.
Fixing this is the first step for automating API client generation, which would aggregate much value for Sentry users.
Environment
MacOS Ventura 13.3.1 with ZShell
Steps to Reproduce
Expected Result
Validation should be successful
Actual Result