json-api-php / json-api

Implementation of JSON API in PHP
https://json-api-php.github.io/
MIT License
183 stars 18 forks source link

ResourceIdentifier meta #99

Closed tobyzerner closed 4 years ago

tobyzerner commented 4 years ago

The signature of ResourceIdentifier is:

public function __construct(string $type, string $id, Meta $meta = null)

Meta represents a single key-value pair. So how can you add multiple meta key-value pairs to a resource identifier object?

Relevant part of the spec: https://jsonapi.org/format/#document-resource-identifier-objects

f3ath commented 4 years ago

Should work in 2.1.1. Please confirm.

tobyzerner commented 4 years ago

🤯 speedy! Thanks.