-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathfixes.yaml
More file actions
109 lines (109 loc) · 3.58 KB
/
fixes.yaml
File metadata and controls
109 lines (109 loc) · 3.58 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
overlay: 1.0.0
info:
title: Overlay File for specification fixes
version: 0.0.1
extends: file://clerk.yaml
actions:
- target: $["components"]["schemas"]["OrganizationMembership"]["properties"]["permissions"]
update:
nullable: true
- target: $["paths"]["/api_keys"]["post"]["responses"]
update:
'201':
description: 201 Created
content:
application/json:
schema:
type: object
properties:
object:
type: string
enum:
- api_key
id:
type: string
pattern: ^ak_[0-9A-Fa-f]{32}$
example: ak_3beecc9c60adb5f9b850e91a8ee1e992
type:
type: string
minLength: 3
example: api_key
subject:
type: string
pattern: ^(user|org|mch)_\w{27}$
example: user_2xhFjEI5X2qWRvtV13BzSj8H6Dk
name:
type: string
example: MY_SERVICE_API_KEY
description:
type: string
nullable: true
maxLength: 255
example: This is my API Key
claims:
nullable: true
example:
foo: bar
scopes:
type: array
items:
type: string
example:
- read
- write
secret:
type: string
example: ak_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
revoked:
type: boolean
example: false
revocation_reason:
type: string
nullable: true
example: Revoked by user
expired:
type: boolean
example: false
expiration:
type: number
nullable: true
description: The timestamp for when the API key will expire, in milliseconds
example: 1716883200
created_by:
type: string
nullable: true
pattern: ^user_\w{27}$
example: user_2xhFjEI5X2qWRvtV13BzSj8H6Dk
last_used_at:
type: number
nullable: true
description: The timestamp for when the API key was last used, in milliseconds
example: 1716883200
created_at:
type: number
description: The timestamp for when the API key was created, in milliseconds
example: 1716883200
updated_at:
type: number
description: The timestamp for when the API key was last updated, in milliseconds
example: 1716883200
required:
- object
- id
- type
- subject
- name
- claims
- scopes
- secret
- revoked
- revocation_reason
- expired
- expiration
- created_by
- last_used_at
- created_at
- updated_at
additionalProperties: false
- target: $["paths"]["/api_keys"]["post"]["responses"]["200"]
remove: true