File tree Expand file tree Collapse file tree 1 file changed +88
-0
lines changed Expand file tree Collapse file tree 1 file changed +88
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$id": "https://spec.openapis.org/overlay/1.0/schema/2024-10-22",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "description": "The description of Overlay v1.0.x documents",
5
+ "type": "object",
6
+ "properties": {
7
+ "overlay": {
8
+ "type": "string",
9
+ "pattern": "^1\\.0\\.\\d+$"
10
+ },
11
+ "info": {
12
+ "$ref": "#/$defs/info-object"
13
+ },
14
+ "extends": {
15
+ "type": "string",
16
+ "format": "uri-reference"
17
+ },
18
+ "actions": {
19
+ "type": "array",
20
+ "minItems": 1,
21
+ "uniqueItems": true,
22
+ "items": {
23
+ "$ref": "#/$defs/action-object"
24
+ }
25
+ }
26
+ },
27
+ "required": [
28
+ "overlay",
29
+ "info",
30
+ "actions"
31
+ ],
32
+ "$ref": "#/$defs/specification-extensions",
33
+ "unevaluatedProperties": false,
34
+ "$defs": {
35
+ "info-object": {
36
+ "type": "object",
37
+ "properties": {
38
+ "title": {
39
+ "type": "string"
40
+ },
41
+ "version": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "required": [
46
+ "title",
47
+ "version"
48
+ ],
49
+ "$ref": "#/$defs/specification-extensions",
50
+ "unevaluatedProperties": false
51
+ },
52
+ "action-object": {
53
+ "properties": {
54
+ "target": {
55
+ "type": "string",
56
+ "pattern": "^\\$"
57
+ },
58
+ "description": {
59
+ "type": "string"
60
+ },
61
+ "update": {
62
+ "type": [
63
+ "string",
64
+ "boolean",
65
+ "object",
66
+ "array",
67
+ "number",
68
+ "null"
69
+ ]
70
+ },
71
+ "remove": {
72
+ "type": "boolean",
73
+ "default": false
74
+ }
75
+ },
76
+ "required": [
77
+ "target"
78
+ ],
79
+ "$ref": "#/$defs/specification-extensions",
80
+ "unevaluatedProperties": false
81
+ },
82
+ "specification-extensions": {
83
+ "patternProperties": {
84
+ "^x-": true
85
+ }
86
+ }
87
+ }
88
+ }
You can’t perform that action at this time.
0 commit comments