You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's easy to explain: The check is added in PR #9757 and since 5.4.0-alpha.144. I came from 5.4.0-alpha.120 and the id field was a derived field in my schema so I had to change it.
I upgraded my packages from
5.4.0-alpha.120
to5.6.0-alpha.2
and walked into a problem with theschema-record
package. I got the errorExpected a resource schema
and didn't know where it came from. So I digged into the code and found the change at https://github.com/emberjs/data/blob/245ba3cde61cb0690ba7f13739c3b03e5af2e193/packages/schema-record/src/-private/hooks.ts#L17C11-L17C37. As it seems there is now a test to check if the identifier is really a schema.Looking at
data/packages/core-types/src/schema/fields.ts
Line 2063 in 100a5eb
kind
in theidentity
object. So I added that data and everything worked again.However, looking into the getting started guide
data/packages/schema-record/README.md
Line 126 in 245ba3c
kind
key but atype
. Shouldn't be thatkind
as well? Otherwise you will get the same error as I had.The text was updated successfully, but these errors were encountered: