kuma

Форк
0
/
error_schema.yaml 
57 строк · 1.5 Кб
1
components:
2
  schemas:
3
    InvalidParameters:
4
      type: object
5
      title: Invalid Parameters
6
      properties:
7
        field:
8
          type: string
9
        reason:
10
          type: string
11
        rule:
12
          type: string
13
        choices:
14
          type: array
15
          items:
16
            type: string
17
    Error:
18
      type: object
19
      title: Error
20
      description: standard error
21
      x-examples:
22
        Example 1:
23
          status: 404
24
          title: Not Found
25
          type: https://kongapi.info/konnect/not-found
26
          instance: 'portal:trace:2287285207635123011'
27
          detail: The requested document was not found
28
      required:
29
        - status
30
        - title
31
        - instance
32
      properties:
33
        status:
34
          type: integer
35
          description: The HTTP status code.
36
          example: 404
37
        title:
38
          type: string
39
          description: The error response code.
40
          example: Not Found
41
        type:
42
          type: string
43
          description: The error type.
44
          example: Not Found
45
        instance:
46
          type: string
47
          example: 'portal:trace:2287285207635123011'
48
          description: The portal traceback code
49
        detail:
50
          type: string
51
          example: The requested team was not found
52
          description: Details about the error.
53
        invalid_parameters:
54
          type: array
55
          description: TODO
56
          items:
57
            $ref: "#/components/schemas/InvalidParameters"

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.