i think the readonly-rule isn't named intuitively. it could mean a lot and my guess is it was named for a certain use-case (propably validating before writing something). but it doesn't explain itself immediately and unambiguously. i had to read the code to fully get its purpose which turned out more trivial and explanatory to me than the docs.
i propose to rename it to is_exluded. excluded may be semantically enough, but it would be just one keystroke away from excludes. another proposal is blacklisted or to stick with an already used term: allowed.
the transition should be implemented like from key- to valueschema.
a usage-example should be added to the documentation.
or is this an artifact from the time before allow_unknown was available?
i think the
readonly-rule isn't named intuitively. it could mean a lot and my guess is it was named for a certain use-case (propably validating before writing something). but it doesn't explain itself immediately and unambiguously. i had to read the code to fully get its purpose which turned out more trivial and explanatory to me than the docs.i propose to rename it to
is_exluded.excludedmay be semantically enough, but it would be just one keystroke away fromexcludes. another proposal isblacklistedor to stick with an already used term:allowed.the transition should be implemented like from
key-tovalueschema.a usage-example should be added to the documentation.
or is this an artifact from the time before
allow_unknownwas available?