0

以下は私の闊歩の定義です:

  Abc:
    type: object
    properties:
      status:
        type: string
        enum: ["read","unread"]
      body:
        type: string
      attachments:
        type: array
        items: {
          $ref: '#/definitions/Attachment'
        }
  Attachment:
    type: object
    properties:
      attachmentName:
        type: string
      attachmentFile:
        type: file

editor.swagger.io で API ドキュメントを検証しようとすると、次のエラーが発生します。何かご意見は?

code:  "ANY_OF_MISSING"
message:  "Data does not match any schemas from 'anyOf'"
(detail in stacktrace)
code:  "ENUM_MISMATCH"
message:  "No enum match for: file"
4

0 に答える 0