add support for dynamic validation schemas for resources

using a property the schema can now be determined depending on the view context or request, for example