File: Error.yaml

package info (click to toggle)
golang-github-go-openapi-analysis 0.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,548 kB
  • sloc: makefile: 4
file content (33 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Error
type: object
properties:
  code:
    type: string
    description: "Error code"
    example: RESOURCE_NOT_FOUND
  message:
    type: string
    description: "Error message"
    example: "Requested resource not found"
  target:
    type: string
    description: "Related resource"
    example: "/products/42"
  details:
    type: object
    properties:
      code:
        type: string
        description: "Detailed error code"
        example: "MongoDB:2038"
      message:
        type: string
        description: "Detailed error message"
        example: "MongoDB: no document with ObjectID 42"
    required:
      - code
      - message
required:
  - code
  - message