Skip to content

Fix OpenAPI schema validation for property descriptions and examples - #705

Merged
kingjia90 merged 2 commits into
2026.3from
fix-schema-validation-description
Sep 30, 2026
Merged

kingjia90 merged 2 commits into
2026.3from
fix-schema-validation-description

Conversation

@kingjia90

Copy link
Copy Markdown
Contributor

The nightly Schema Validation job on 2026.x (failing run) lints the deployed OpenAPI spec: each property needs a 2–100 character description and an example. It has been red since at least 2026-09-21.

This PR fixes the violations in this repo:

  • BundleDataImporterDataPreviewResponse.dataPreview[].data: description over 100 chars (generated TS client comment updated to match)

Each description is shortened to 100 characters or less, and the explanatory detail moved into a docblock on the property (the pattern these schema files already use). No behaviour change.

🤖 Generated with Claude Code

The nightly Schema Validation run on 2026.x fails because these OpenAPI property descriptions exceed 100 characters or lack an example. Keep the descriptions short and move the explanatory detail into docblocks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 06:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approved

The revised description satisfies the stated validation constraint and is consistently reflected in the generated client.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes OpenAPI validation by shortening the data preview cell description while preserving generated client consistency.

Changes:

  • Shortens the property description to 72 characters.
  • Synchronizes the generated TypeScript comment.
File Description
src/​Schema/​DataPreviewResponse.php Updates the OpenAPI property description.
assets/​studio/​js/​src/​modules/​data-importer/​data-importer-api-slice.gen.ts Mirrors the description in generated types.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sonarqubecloud

Copy link
Copy Markdown

@kingjia90
kingjia90 changed the base branch from 2026.2 to 2026.3 September 30, 2026 06:50
@kingjia90 kingjia90 added this to the 2026.3.1 milestone Sep 30, 2026
@kingjia90
kingjia90 merged commit 956bbe9 into 2026.3 Sep 30, 2026
5 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 30, 2026
@herbertroth
herbertroth deleted the fix-schema-validation-description branch October 1, 2026 09:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants