Add npm SemVer schema#4233
Add npm SemVer schema#4233danielbayley wants to merge 2 commits intoSchemaStore:masterfrom danielbayley:npm-semver
Conversation
|
Thanks for the PR! This section of the codebase is owned by @madskristensen and |
|
Thanks for your pull request! Unfortunately, in this case I believe that this schema doesn't follow the guidelines of overconstraint as mentioned in the CONTRIBUTING. For example, if a user violates this npm semver constraint, the schema error message will be long and show a complex regular expression (that is rather difficult to parse), which reduces the developer experience, I believe The schema file is also a bit too small, to have it's own entry |
@hyperupcall Is the problem not then, with the error message? Could/should it not just show the |
|
@danielbayley If the problem does lie with the error message, it would be moot since there is generally no way to customize the error message. Things could be added to the |
For use as
$reference, for example:Note
For reference, better linting, and composability, I have built my own collection of schemas here: https://github.com/danielbayley/schemas