lint.sh: accept type: select as a valid requirement type
Lint and reload / lint-and-reload (push) Successful in 3s
Lint and reload / lint-and-reload (push) Successful in 3s
Matches portal's new resource-backed multi/single-select requirement kind. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
a424c6d3c2
commit
2af9a46afb
@@ -39,14 +39,14 @@ for f in "$dir"/*.yaml; do
|
|||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# "textarea", "file", and "prosekit" are the three values
|
# "textarea", "file", "prosekit", and "select" are the four values
|
||||||
# content.rs/app.rs special-case; anything else is passed straight
|
# content.rs/app.rs special-case; anything else is passed straight
|
||||||
# through as an HTML <input type> attribute, so this is the real set
|
# through as an HTML <input type> attribute, so this is the real set
|
||||||
# of valid values, not a guess.
|
# of valid values, not a guess.
|
||||||
bad_types=$(jq -r '
|
bad_types=$(jq -r '
|
||||||
[.alternatives[]?.features[]?.requirements[]?
|
[.alternatives[]?.features[]?.requirements[]?
|
||||||
| select(.type != null and (.type | IN(
|
| select(.type != null and (.type | IN(
|
||||||
"text", "textarea", "file", "prosekit", "email", "tel", "url",
|
"text", "textarea", "file", "prosekit", "select", "email", "tel", "url",
|
||||||
"number", "password", "date", "datetime-local", "time", "month",
|
"number", "password", "date", "datetime-local", "time", "month",
|
||||||
"week", "color", "range", "checkbox", "radio", "hidden", "search"
|
"week", "color", "range", "checkbox", "radio", "hidden", "search"
|
||||||
) | not))
|
) | not))
|
||||||
|
|||||||
Reference in New Issue
Block a user