1
1
---
2
- title : ' Troubleshooting'
3
- description : ' Common issues with API References'
4
- icon : ' triangle-exclamation'
2
+ title : " Troubleshooting"
3
+ description : " Common issues with API References"
4
+ icon : " triangle-exclamation"
5
5
---
6
6
7
7
API pages are complicated. As a result, there are a lot of things that can go wrong.
@@ -24,13 +24,22 @@ Here's a list of common issues we've seen customers run into:
24
24
If the text box that appears below has a green border, your document has passed validation.
25
25
This is the exact validation package Mintlify uses to validate OpenAPI documents, so if your document
26
26
passes validation here, there's a great chance the problem is elsewhere.
27
+
28
+ Additionally, Mintlify does not support OpenAPI 2.0. If your document uses this version of the specification,
29
+ you could encounter this issue. You can convert your document at [ editor.swagger.io] ( https://editor.swagger.io/ ) (under Edit > Convert to OpenAPI 3):
30
+
31
+ <Frame >
32
+ <img src = " /images/convert-oas-3.png" />
33
+ </Frame >
34
+
27
35
</Accordion >
28
36
29
37
<Accordion title = " One of my OpenAPI pages is completely blank" >
30
38
This is usually caused by a misspelled ` openapi ` field in the page metadata. Make sure
31
39
the HTTP method and path match the HTTP method and path in the OpenAPI document exactly.
32
40
33
41
Here's an example of how things might go wrong:
42
+
34
43
``` md get-user.mdx
35
44
---
36
45
openapi: "GET /users/{id}/"
@@ -40,8 +49,7 @@ openapi: "GET /users/{id}/"
40
49
``` yaml openapi.yaml
41
50
paths :
42
51
" /users/{id} " :
43
- get :
44
- ...
52
+ get : ...
45
53
` ` `
46
54
47
55
Notice that the path in the ` openapi` field has a trailing slash, whereas the path in the OpenAPI
56
64
openapi: "v1 GET /users/{id}"
57
65
---
58
66
` ` `
67
+
59
68
</Accordion>
60
69
61
70
<Accordion title="Requests from the API Playground don't work">
@@ -70,5 +79,6 @@ openapi: "v1 GET /users/{id}"
70
79
setting in the `mint.json`, as described [here](/settings/global#api-configurations). This will
71
80
likely require you to configure CORS on your server, as these requests will now come directly
72
81
from your users' browsers.
82
+
73
83
</Accordion>
74
84
</AccordionGroup>
0 commit comments