[wp-meta] [Making WordPress.org] #5303: Block plugin validation tool UI improvements
Making WordPress.org
noreply at wordpress.org
Wed Jul 7 17:33:40 UTC 2021
#5303: Block plugin validation tool UI improvements
------------------------------+---------------------
Reporter: tellyworth | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone:
Component: Plugin Directory | Resolution:
Keywords: |
------------------------------+---------------------
Comment (by ryelle):
It looks like I'd need to write a `validate_number` function to add number
support to the validator, so I've tried an different approach in
[attachment:"5303.diff"] - removing all our custom validation in favor of
`rest_validate_value_from_schema`. I think this does everything we want
(and some, since it would support all the property definitions that the
core schema validates), the only drawback is that it returns on the first
invalid value, rather than listing them all.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5303#comment:85>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list