Skip to content

Commit ff1bf07

Browse files
committed
ci: update yaml to json
1 parent bb1b16d commit ff1bf07

File tree

1 file changed

+157
-0
lines changed

1 file changed

+157
-0
lines changed

api/latest.json

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"openapi": "3.0.0",
3+
"info": {
4+
"title": "Multi Panel Schema API",
5+
"version": "1.0.0"
6+
},
7+
"paths": {
8+
"/maidr-metadata": {
9+
"get": {
10+
"summary": "Get multi-panel schema",
11+
"responses": {
12+
"200": {
13+
"description": "Successful response",
14+
"content": {
15+
"application/json": {
16+
"schema": {
17+
"$ref": "#/components/schemas/MultiPanelSchema"
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
}
25+
},
26+
"components": {
27+
"schemas": {
28+
"MaidrSchema": {
29+
"type": "object",
30+
"properties": {
31+
"id": {
32+
"type": "string",
33+
"example": "container-figure-id"
34+
},
35+
"selector": {
36+
"type": "string",
37+
"example": ""
38+
},
39+
"layout": {
40+
"type": "object",
41+
"properties": {
42+
"rows": {
43+
"type": "integer",
44+
"example": 3
45+
},
46+
"columns": {
47+
"type": "integer",
48+
"example": 2
49+
}
50+
}
51+
},
52+
"title": {
53+
"type": "string",
54+
"example": "Penguin Bill Dimensions by Species and Sex"
55+
},
56+
"axes": {
57+
"type": "object",
58+
"properties": {
59+
"x": {
60+
"type": "object",
61+
"properties": {
62+
"label": {
63+
"type": "string",
64+
"example": "Bill Length (mm)"
65+
}
66+
}
67+
},
68+
"y": {
69+
"type": "object",
70+
"properties": {
71+
"label": {
72+
"type": "string",
73+
"example": "Bill Depth (mm)"
74+
}
75+
}
76+
}
77+
}
78+
},
79+
"panels": {
80+
"type": "array",
81+
"items": {
82+
"type": "object",
83+
"properties": {
84+
"id": {
85+
"type": "string",
86+
"example": "panel-01"
87+
},
88+
"selector": {
89+
"type": "string",
90+
"example": ""
91+
},
92+
"type": {
93+
"type": "string",
94+
"description": "Specifies the type of the item, e.g., 'point', 'bar', or 'line'.",
95+
"enum": [
96+
"bar",
97+
"hist",
98+
"heat",
99+
"box",
100+
"point",
101+
"line",
102+
"stacked",
103+
"dodged"
104+
],
105+
"example": "point"
106+
},
107+
"title": {
108+
"type": "string",
109+
"example": "Adelie - Female"
110+
},
111+
"axes": {
112+
"type": "object",
113+
"properties": {
114+
"x": {
115+
"type": "object",
116+
"properties": {
117+
"label": {
118+
"type": "string",
119+
"example": "Bill Length (mm)"
120+
}
121+
}
122+
},
123+
"y": {
124+
"type": "object",
125+
"properties": {
126+
"label": {
127+
"type": "string",
128+
"example": "Bill Depth (mm)"
129+
}
130+
}
131+
}
132+
}
133+
},
134+
"data": {
135+
"type": "array",
136+
"items": {
137+
"type": "object",
138+
"properties": {
139+
"x": {
140+
"type": "number",
141+
"example": 39.5
142+
},
143+
"y": {
144+
"type": "number",
145+
"example": 17.4
146+
}
147+
}
148+
}
149+
}
150+
}
151+
}
152+
}
153+
}
154+
}
155+
}
156+
}
157+
}

0 commit comments

Comments
 (0)