trim another important dependency on the ShareObject family -- refactor JSONLDValidator in share.models.validators to get schema info from share.schema (new in #776) instead of from the ShareObject model classes (which will soon be deleted)
deviations
because share.schema has all fields defined on the concrete type (see #776), validation is now slightly looser in some cases -- attributes previously only valid for one subtype (e.g. Person.given_name) are now valid for all subtypes of that concrete type (e.g. Organization, Institution, Consortium, Department, and Agent may now also have a given_name)
i admit this is a little weird, but it probably will not matter.
what
trim another important dependency on the ShareObject family -- refactor
JSONLDValidator
inshare.models.validators
to get schema info fromshare.schema
(new in #776) instead of from theShareObject
model classes (which will soon be deleted)deviations
because
share.schema
has all fields defined on the concrete type (see #776), validation is now slightly looser in some cases -- attributes previously only valid for one subtype (e.g.Person.given_name
) are now valid for all subtypes of that concrete type (e.g.Organization
,Institution
,Consortium
,Department
, andAgent
may now also have agiven_name
)i admit this is a little weird, but it probably will not matter.
jira
ENG-1986