Closed akash1810 closed 6 years ago
We've seen some paths being created with whitespace, which isn't great, so explicitly reject invalid paths.
A valid path is one that's a hyphenated alphanumeric.
An invalid path:
Failure will cause flexible-api to return a 409 with response invalid-identifier, which is already handled by Composer here.
409
invalid-identifier
Its easier to view the diff without whitespace - https://github.com/guardian/path-manager/pull/23/files?w=1
cc @tomrf1
We've seen some paths being created with whitespace, which isn't great, so explicitly reject invalid paths.
A valid path is one that's a hyphenated alphanumeric.
An invalid path:
Failure will cause flexible-api to return a
409
with responseinvalid-identifier
, which is already handled by Composer here.Its easier to view the diff without whitespace - https://github.com/guardian/path-manager/pull/23/files?w=1