Skip to content

fix: align v0.9 slider schema with spec - #1487

Merged
gspencergoog merged 4 commits into
a2ui-project:mainfrom
kiwigitops:fix-v09-slider-step-schema
Jul 27, 2026
Merged

fix: align v0.9 slider schema with spec#1487
gspencergoog merged 4 commits into
a2ui-project:mainfrom
kiwigitops:fix-v09-slider-step-schema

Conversation

@kiwigitops

Copy link
Copy Markdown
Contributor

Closes #1384.

Summary

  • remove the non-spec step property from the v0.9 WebCore SliderApi schema
  • stop the Angular v0.9 slider from reading that non-spec prop
  • add a v0.9 schema regression so Slider.step is rejected instead of diverging from the frozen JSON catalog

Verification

  • npm test -- --watch=false from renderers/web_core
  • npx ng build lib from renderers/angular

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the step property from the SliderApi schema and the corresponding Angular SliderComponent. A regression test was added to verify that the schema now rejects the step property. Feedback suggests improving the robustness of this test by ensuring it specifically fails due to the unrecognized step key rather than other potential validation errors, and provided a code suggestion to implement this check.

@kiwigitops

Copy link
Copy Markdown
Contributor Author

Tightened the regression in 192683b so it first verifies the slider parses without step, then checks that adding step is rejected as the unrecognized key. npm test -- --watch=false still passes in renderers/web_core.

@kiwigitops

Copy link
Copy Markdown
Contributor Author

Quick follow-up here. I tightened the regression after review; if this direction still makes sense, I can refresh it against main since it is showing non-mergeable now.

@github-actions

Copy link
Copy Markdown
Contributor

Adding the triage: flag label: the latest reply is from an external contributor and has gone unanswered for more than 1 day.

2 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

Adding the triage: flag label: the latest reply is from an external contributor and has gone unanswered for more than 1 day.

@github-actions

Copy link
Copy Markdown
Contributor

Adding the triage: flag label: the latest reply is from an external contributor and has gone unanswered for more than 1 day.

@github-actions github-actions Bot added the status: needs-triage auto-managed: https://github.com/a2ui-project/a2ui/blob/main/scripts/triage.mjs label Jul 1, 2026
@polina-c polina-c added the status: in-discussion In active discussion. label Jul 25, 2026
@polina-c
polina-c requested a review from gspencergoog July 27, 2026 21:58
@polina-c

Copy link
Copy Markdown
Collaborator

@gspencergoog , can you please review it to get it out of discussion queue?

@github-actions github-actions Bot removed the status: needs-triage auto-managed: https://github.com/a2ui-project/a2ui/blob/main/scripts/triage.mjs label Jul 27, 2026

@gspencergoog gspencergoog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@kiwigitops Thanks for the PR! Good eye! Okay, let's make this change.

In v1.0 it will be called steps anyhow, and represent the number of divisions rather than absolute step count, so this prevents us from needing to break that functionality in v1.0.

@gspencergoog gspencergoog removed the status: in-discussion In active discussion. label Jul 27, 2026
@gspencergoog
gspencergoog merged commit 5cd29ce into a2ui-project:main Jul 27, 2026
23 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in A2UI Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slider.step is in WebCore Zod but missing from the JSON Schema spec

3 participants