Skip to content

fix: error when attributes is null#98

Merged
tobyzerner merged 2 commits intotobyzerner:mainfrom
SychO9:sm/error-when-attributes-null
Mar 29, 2024
Merged

fix: error when attributes is null#98
tobyzerner merged 2 commits intotobyzerner:mainfrom
SychO9:sm/error-when-attributes-null

Conversation

@SychO9
Copy link
Copy Markdown
Contributor

@SychO9 SychO9 commented Feb 17, 2024

If for whatever reason a request has the attributes value as null (or relationships value). a PHP error is thrown where the code expects it to be an array.

POST /records

{
  "data": {
    "type": "records",
    "attributes": null
  }
}

@tobyzerner tobyzerner merged commit 0b1b076 into tobyzerner:main Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants