Today new apmodel features:
- User can add and override (required inheritance the class) own model to loader (core models is can't override, show warning)
- apmodel supports to preload json-ld schema from local (example, schema.org, activitystreams 2.0)
Today new apmodel features:
If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/019a5a6b-7995-7918-a4e6-6d4f8af886b4 on your instance and reply to it.
type URI now uses a ClassVar called AS_URI. This reduces the effort required to automatically register models with load and eliminates the need to redefine type for each model.For example, you can also modify extensions provided by Mastodon to be usable within an Actor (if you modify an Actor, its child inheritance won't be updated, so you'll need to modify those too... though Actors are designed to use the default value __apmodel_base__ via AS_URI, so they aren't included in the loader in the first place...).