cyprieng / swagger-parser

Give useful informations about your swagger files
MIT License
62 stars 59 forks source link

Swagger_Parser does not handle type: string format: byte #62

Open bradencross opened 6 years ago

bradencross commented 6 years ago

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.