Skip to content

Commit 3e7b6b1

Browse files
committed
add petstore patch file
1 parent 751ea78 commit 3e7b6b1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)