Empty link can be created but not destroyed
lilyball opened this issue · comments
I can create a link with an empty name by specifying { "name": "" }
as my input. this link doesn't appear to do anything (it doesn't affect the root redirection). But unfortunately I can't delete it, because I can't name it.
Expected behavior:
I expected the POST
with { "name": "" }
to either fail, or to behave as though "name" were not specified (i.e. generate a random name). I should not be able to create a link with no name.
My preferred behavior is "behave as though 'name' wasn't specified". That makes it a bit easier to script the API since I don't need to conditionally include the name
field.
Thanks for catching this! { "name": "" }
should now behave as if it were null (generate a random ID).