We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 751ea78 commit 3e7b6b1Copy full SHA for 3e7b6b1
1 file changed
webui/scripts/dashboard-demo/demo-configs/z.petstore.fix.yaml
@@ -0,0 +1,23 @@
1
+# The official Petstore OpenAPI example contains a few inconsistencies.
2
+# One of them is that the DELETE /store/order/{orderId} operation
3
+# does not define a successful (2xx) response.
4
+#
5
+# Mokapi’s patching mechanism allows us to fix such issues without
6
+# modifying the original specification.
7
8
+# Learn more about patching:
9
+# http://localhost:5173/docs/configuration/patching
10
+openapi: 3.1.0
11
+info:
12
+ title: Swagger Petstore # title is the patching discriminator
13
+paths:
14
+ /pet/findByStatus:
15
+ get:
16
+ parameters:
17
+ - name: status
18
+ explode: false # Use comma-separated values as described
19
+ /store/order/{orderId}:
20
+ delete:
21
+ responses:
22
+ '204':
23
+ description: Order deleted successfully
0 commit comments