Added a validateAndIdentify so that the schema can be returned