zalando / intellij-swagger

A plugin to help you easily edit Swagger and OpenAPI specification files inside IntelliJ IDEA
https://plugins.jetbrains.com/plugin/8347
MIT License
1.17k stars 74 forks source link

Array of anyOf items error #303

Closed ondratu closed 4 years ago

ondratu commented 4 years ago

Hi, I have this part of schema:

content:
  application/json:
    schema:
      type: object
      properties:
        args:
          type: array
          items:
            anyOf:
              - type: string
              - type: number
              - type: float
              - type: boolean

which is valid, but pycharm plugin tell's me missing $ref property Snímek z 2020-04-20 13-00-47

ondratu commented 4 years ago

It is ok, resp. the validation error is not perfect, but the problem is in type: float, which is my mistake.