Skip to content

docs(list-widget): correct min/max independence in docs (DCMS-283) - #1

Open
sempostma wants to merge 1 commit into
mainfrom
fix/dcms-283-list-min-max-docs
Open

docs(list-widget): correct min/max independence in docs (DCMS-283)#1
sempostma wants to merge 1 commit into
mainfrom
fix/dcms-283-list-min-max-docs

Conversation

@sempostma

Copy link
Copy Markdown
Member

Summary

DCMS-283: the List widget docs (content/docs/widgets/list.md) claimed min requires max to be set, and vice versa. That's not what the code does.

validateMinMax in packages/decap-cms-lib-widgets/src/validations.ts (decap-cms repo) has three independent branches:

  • both min and max set → range check
  • only min set → rangeMin error
  • only max set → rangeMax error

So min and max are each independently optional — setting either alone works and is validated correctly. This PR corrects the docs to match actual behavior; no code change needed.

Internal tracker: DCMS-283 (/Users/sempostma/Documents/personal/Projects/decap-cms/Issues/DCMS-283 - list-widget-min-max-docs-claim-false-interdependency.md)

Test plan

  • Confirmed via validateMinMax source that min/max are independently checked
  • Docs-only change, no build/lint needed beyond markdown diff review

validateMinMax in decap-cms-lib-widgets checks min and max in
independent branches (rangeMin/rangeMax), so either can be set alone.
The docs incorrectly claimed each required the other.
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.

1 participant