parse_openapi_spec function

Parse an OpenAPI spec