Skip to content

"should be an array" error caused by misspelled "type" values #1832

@hkosova

Description

@hkosova

Q&A (please complete the following information)

  • OS: Windows 7
  • Browser: Chrome 67
  • Method of installation: http://editor.swagger.io
  • Swagger-Editor version: 3.6.3
  • Swagger/OpenAPI version: 2.0

Example Swagger/OpenAPI definition:

swagger: '2.0'
info:
  title: test
  version: 0.0.0
paths: {}

definitions:
  Model1:
    type: int

Describe the bug you're encountering

A misspelled type value triggers an odd error

should be array

Expected behavior

No "should be array" error.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions