-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
Q&A (please complete the following information)
- OS: macOS
- Browser: chrome
- Version: 67
- Method of installation: npm
- Swagger-UI version: 3.17.4
- Swagger/OpenAPI version: Swagger 2.0
Content & configuration
Example Swagger/OpenAPI definition:
swagger: "2.0"
info:
description: This is a simple API
version: 1.0.0
title: Simple Inventory API
paths:
/inventory:
get:
responses:
200:
description: search results matching criteria
400:
description: bad input parameter
definitions:
InventoryItem:
type: objectDescribe the bug you're encountering
A definition with only one model, when incorrectly indented, will crash the Models component.
To reproduce...
Steps to reproduce the behavior:
- Load above YAML
- Indent
InventoryItemso it is inline withtype: object - Models component crashes with error
Expected behavior
InventoryItem and type to become individual definitions
Screenshots
Additional context or thoughts
Seems to be an issue the JSON generating invalid Immutable Maps so the Model component crashes when performing a .get("title").
