Skip to content

[Schema Inaccuracy] confusing installation account type #1417

Open
@yanyongyu

Description

@yanyongyu

Schema Inaccuracy

Current 3.1 description installation account schema uses both type and anyof. Should this uses anyof only? (like what 3.0 do)

installation:
  title: Installation
  description: Installation
  type: object
  properties:
    account:
      anyOf:
      - "$ref": "#/components/schemas/simple-user"
      - "$ref": "#/components/schemas/enterprise"
      type:
      - 'null'
      - object

Expected

installation:
  title: Installation
  description: Installation
  type: object
  properties:
    account:
      anyOf:
      - "$ref": "#/components/schemas/simple-user"
      - "$ref": "#/components/schemas/enterprise"
      - type: 'null'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions