CreateAPI / CreateAPI/CreateAPI
Documentation on how to use decoded entity fields
Open
- Dominant language
- Swift
- Stars
- 447
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
I have an entity MediaType that has a .metadata field which is decoded to the entity type MetadataType or String. The type of this field is MediaType.Metadata?. Sounds OK so far.
The example in the documentation doesn't show how to use such an entity field inside a decoded entity.
For example if I now have a decoded MediaType from a request, what can I do with media.metadata which has the type Optional(TestKit.MediaType.Metadata.metadataType(TestKit.MetadataType))
I can't just use the fields inside, like media.metadata?.title
It would be nice if the docs explained how to do this.
Contributor guide
Assessment
This issue has not been assessed yet.