Implemented and tested data source code.
Added validator and factories for resource definition
Added test for DefinitionValidator