aspnet / JsonPatch

[Archived] JSON PATCH library. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
103 stars 48 forks source link

Allow whitespace and backslash in path #131

Closed ajaybhargavb closed 6 years ago

ajaybhargavb commented 6 years ago

Fixes https://github.com/aspnet/Home/issues/2876

From looking at the spec https://tools.ietf.org/html/rfc6902#section-4 which points to https://tools.ietf.org/html/rfc6901, whitespace and backslash in path should be allowed.

FYI @mkArtakMSFT

ajaybhargavb commented 6 years ago

Maybe include the information that it cannot contain "//".

@jbagga can't do that. The same error message is also used in other places like https://github.com/aspnet/JsonPatch/blob/dev/src/Microsoft.AspNetCore.JsonPatch/Internal/ParsedPath.cs#L62

ajaybhargavb commented 6 years ago

🆙 📅