iptc / newsinjson

Home of the IPTC ninjs standard
https://iptc.org/standards/ninjs/
Other
34 stars 9 forks source link

feat(restrict-planning): avoid planning documents having event details or renditions #180

Closed iyoung closed 3 weeks ago

iyoung commented 3 weeks ago

This is an option around restricting the planning documents so they don't end up carrying event details or renditions. we might want to look at defining top level types for each as an alternative and see if we can have an anyOf within ninjsType for planningType eventType and itemType.

I think the type based approach could be cleaner but the schema will be possibly more verbose, albeit they can gain a lot of their definition through shared types.