Since there wasn't room in the post for the created JSON, here it is:
[
{
"hack" : {
"implementation" : {
"entityName" : "Hack",
"isTemporary" : true,
"primaryKey" : "52747F74-ED6C-40FF-B008-ED3AA1AEF8EB",
"uriRepresentation" : "x-swiftdata:\/\/Hack\/52747F74-ED6C-40FF-B008-ED3AA1AEF8EB"
}
},
"persistentIdentifier" : {
"implementation" : {
"entityName" : "Settings",
"isTemporary" : false,
"primaryKey" : "D767DB6F-8D55-4261-85DC-536F6E77D81D",
"storeIdentifier" : "Settings.timeoutsettings",
"typedPrimaryKey" : "D767DB6F-8D55-4261-85DC-536F6E77D81D",
"uriRepresentation" : "x-developer-provided:\/\/Settings.timeoutsettings\/Settings\/D767DB6F-8D55-4261-85DC-536F6E77D81D"
}
},
"version" : 1
},
{
"bar" : 42,
"foo" : "Foo",
"persistentIdentifier" : {
"implementation" : {
"entityName" : "Hack",
"isTemporary" : false,
"primaryKey" : "769933C4-3ADE-4808-914C-C21EA6833F56",
"storeIdentifier" : "Settings.timeoutsettings",
"typedPrimaryKey" : "769933C4-3ADE-4808-914C-C21EA6833F56",
"uriRepresentation" : "x-developer-provided:\/\/Settings.timeoutsettings\/Hack\/769933C4-3ADE-4808-914C-C21EA6833F56"
}
}
}
]
And the error:
SwiftData/ModelContext.swift:2595: Fatal error: Failed to materialize a model for Settings from snapshot:DefaultSnapshot(_values: ["bar": 42, "foo": "Foo"], persistentIdentifier: SwiftData.PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-developer-provided://Settings.timeoutsettings/Hack/769933C4-3ADE-4808-914C-C21EA6833F56), implementation: SwiftData.PersistentIdentifierImplementation))
For fetch descriptor: FetchDescriptor(predicate: nil, sortBy: [], fetchLimit: nil, fetchOffset: Optional(0), includePendingChanges: true, propertiesToFetch: [], relationshipKeyPathsForPrefetching: [], returnModelsAsFutures: false)