The problem is that each resource in the bundle should match just one of the definitions listed in ResourceList.schema.json (path: definitions.resourceList.oneOf
), but there are some types in there that will match any kind of resource.
Those are:
-Resource
-Parameters (this one is also duplicated)
-DomainResource
So the entries in the bundle will match their correct definition AND those 3. That is an error in the json-schema spec.
In case I’m not making myself clear, here is a modified version of ResourceList.schema.json with which the bundles will be correctly validated.