Open ohadschn opened 7 years ago
This issue was moved to NuGet/docs.microsoft.com-nuget#543
@emgarten does the schema (XSD) update part also fall under doc changes?
does the schema (XSD) update part also fall under doc changes?
Saw the link the docs for the schema, didn't see it was also in the client repo. I've opened this.
Would you be willing to send a PR to update the schema and verify that it works with the change you mentioned?
Where can I find the validation logic / regex for package versions?
@ohadschn take a look at NuGet.Packaging and the authoring validation there.
The schema doesn't seem to impose any restrictions on them (even though XSD regex patterns are possible). The docs only say "IDs may not contain spaces or characters that are not valid for a URL".
But this is incomplete, as the implementation and tests suggest. Specifically, names must conform to
^\w+([_.-]\w+)*$
. I don't know what the restrictions on version strings are, but I reckon there are some.