class UpdatedResourcesSchema(MappingSchema): """List the resources affected by a transaction.""" created = Resources() modified = Resources() removed = Resources() changed_descendants = Resources()
def make_one(self, **kwargs): from adhocracy_core.schema import Resources return Resources(**kwargs).bind()
class POSTItemRequestSchema(POSTResourceRequestSchema): """Data structure for Item and ItemVersion POST requests.""" root_versions = Resources(missing=[], validator=validate_root_versions)