Convert to YAML
Save + View
{ "openapi": "3.0.0", "servers": [ { "url": "https://httpbin.org" } ], "info": { "version": "1.0.0", "title": "An example of how we render different data types" }, "paths": { "/enum": { "post": { "summary": "Enum data types", "responses": { "200": { "description": "OK" } }, "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "string (enum)": { "type": "string", "enum": [ "available", "pending", "sold" ] }, "string (enum, with default)": { "type": "string", "enum": [ "available", "pending", "sold" ], "default": "available" } } } } } } } } }, "x-explorer-enabled": true, "x-samples-enabled": true, "x-samples-languages": [ "curl", "node", "ruby", "javascript", "python" ] }
Explore