Open
Description
I upgraded my packages from 5.4.0-alpha.120
to 5.6.0-alpha.2
and walked into a problem with the schema-record
package. I got the error Expected 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 the identity
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 a type
. Shouldn't be that kind
as well? Otherwise you will get the same error as I had.Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
needs triage