This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Description
Given the following OpenAPI 2 document where we have a JSON response which an unknown format we will not generate a JSON body and a user will be cfaced with the following warning:
warning: (3) Unable to generate application/json example message body out of JSON Schema - line 13
NOTE, the solution for users facing this is to either not use unknown format's, or to provide a full example at the root of your schema to use instead of generating a body from the schema.
swagger: '2.0'
info:
version: '1.0'
title: Example
produces:
- application/json
paths:
/questions:
get:
responses:
200:
description: Successful Response
schema:
type: string
format: unknown