swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

Swagger_Parser does not handle type: string format: byte

Open bradencross opened this issue 6 years ago • 0 comments

Swagger_parser does not return the proper format or mock data for the following definition property:

"exampleFile": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "format": "byte"
                    }
                }

Instead it returns an array of strings ie. ["string", "string2"]

I believe that if it instead returned ["8-bit representable integer","8-bit representable integer"], would be a good solution, where 8-bit representable integer = 1-255.

bradencross avatar Aug 10 '18 20:08 bradencross