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
{{ message }}
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
It seems that I can't tell spine for custom object type in attribute definition since it will crash at run time so I make definition "any"
In my case I have an array of "WorkingHourAttribute" if I keep this type definition the app will crash:
'*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Example.BranchResource 0x600000195880> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key workingHours.''
`class BranchResource: Resource {
var workingHours: [Any]? // I want => workingHours: [WorkingHourAttribute]?
override class var fields: [Field] {
return fieldsFromDictionary([
"workingHours": WorkingHourAttribute().serializeAs("working-hours")
])
}`
how to write array definition in resource class with custom object attribute
Thanks in advance
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems that I can't tell spine for custom object type in attribute definition since it will crash at run time so I make definition "any"
In my case I have an array of "WorkingHourAttribute" if I keep this type definition the app will crash:
'*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Example.BranchResource 0x600000195880> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key workingHours.''
`class BranchResource: Resource {
how to write array definition in resource class with custom object attribute
Thanks in advance
The text was updated successfully, but these errors were encountered: