Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
2.5.1
-
None
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
Description
I've tried to import OAS v2:
"get": { "description": "Returns a user based on a single ID, if the user does not have access to the pet", "operationId": "find pet by id", "parameters": [ { "name": "id", "in": "path", "description": "ID of pet to fetch", "required": true, "type": "integer", "format": "int64" } ], "responses": { "200": { "description": "pet response", "schema": { "$ref": "#/definitions/Pet" } }, "default": { "description": "unexpected error", "schema": { "$ref": "#/definitions/Error" } } }
This was not imported because operationID contains spaces. Spaces and any other unicode character are valid part of operationID. This issue is valid for all attributes defined as string in OAS v2, so please check all attributes defined as string.
1. operationID is defined as string https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operation-object
2. string is defined as JSON string https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5 https://tools.ietf.org/html/rfc4627