Code to validate swagger specs