-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link with null
attribute
#6
Comments
alexmerlin
added a commit
to alexmerlin/mezzio-hal
that referenced
this issue
Apr 19, 2023
Signed-off-by: alexmerlin <[email protected]>
alexmerlin
added a commit
to alexmerlin/mezzio-hal
that referenced
this issue
Apr 19, 2023
* Issue mezzio#6: Allow Link creation with null attribute. Signed-off-by: alexmerlin <[email protected]> --------- Signed-off-by: alexmerlin <[email protected]>
alexmerlin
added a commit
to alexmerlin/mezzio-hal
that referenced
this issue
Apr 19, 2023
Signed-off-by: alexmerlin <[email protected]>
alexmerlin
added a commit
to alexmerlin/mezzio-hal
that referenced
this issue
Apr 20, 2023
* Issue mezzio#6: Allow Link creation with null attribute. Signed-off-by: alexmerlin <[email protected]> --------- Signed-off-by: alexmerlin <[email protected]>
alexmerlin
added a commit
to alexmerlin/mezzio-hal
that referenced
this issue
Apr 20, 2023
Signed-off-by: alexmerlin <[email protected]>
Latest draft for HAL defines Link object with attributes that are optional but not empty. I do not think attributes with null values should be allowed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating a Link with a
null
attribute, I get anInvalidArgumentException
. I'm not 100% sure about it but I guess that havingnull
attributes should be allowed in Hal linksCode to reproduce the issue
Expected results
I would expect to get a
Link
with ac
attribute with anull
valueActual results
An
InvalidArgumentException
with messageZend\\Expressive\\Hal\\Link expects the $value to be a PHP primitive or array of strings; received NULL
is thrownOriginally posted by @marcosh at zendframework/zend-expressive-hal#46
The text was updated successfully, but these errors were encountered: