Parses a Swagger spec, validates it against the Swagger schema, and dereferences all $ref pointers