@@ -1869,11 +1869,12 @@ GET /books
1869
1869
[33m[200 response body] 'author_id' is now type number (/properties/books/items/properties/author_id)[39m
1870
1870
[33m[200 response body] 'status' now has enum value 'hold' (/properties/books/items/properties/status/enum)[39m
1871
1871
[31m[200 response body] schema (/properties/books/items/properties/price/maximum) with keyword 'maximum' and parameters { " comparison" :" <=" ," limit" :6 } received invalid values 10, 15[39m
1872
- [31m ⛔️ schema could not be automatically updated. Update the schema manually at [4mopenapi.yml:55:1281 [24m[39m
1872
+ [31m ⛔️ schema could not be automatically updated. Update the schema manually at [4mopenapi.yml:56:1304 [24m[39m
1873
1873
POST /books
1874
1874
[32m✓ [39mRequest Body, [32m✓ [39m200 response
1875
1875
[32m[200 response body] body has been added[39m
1876
1876
[33m[request body] 'price' is now type string (/properties/price)[39m
1877
+ [32m[request body] body is now optional[39m
1877
1878
1878
1879
[1m[90mLearning path patterns for unmatched requests...[39m[22m
1879
1880
[1m[90mDocumenting new operations:[39m[22m
@@ -1893,6 +1894,7 @@ paths:
1893
1894
/books:
1894
1895
post:
1895
1896
requestBody:
1897
+ required: false
1896
1898
content:
1897
1899
application/json:
1898
1900
schema:
@@ -2083,11 +2085,12 @@ GET /books
2083
2085
[33m[200 response body] 'author_id' is now type number (/properties/books/items/properties/author_id)[39m
2084
2086
[33m[200 response body] 'status' now has enum value 'hold' (/properties/books/items/properties/status/enum)[39m
2085
2087
[31m[200 response body] schema (/properties/books/items/properties/price/maximum) with keyword 'maximum' and parameters { " comparison" :" <=" ," limit" :6 } received invalid values 10, 15[39m
2086
- [31m ⛔️ schema could not be automatically updated. Update the schema manually at [4mopenapi.yml:55:1281 [24m[39m
2088
+ [31m ⛔️ schema could not be automatically updated. Update the schema manually at [4mopenapi.yml:56:1304 [24m[39m
2087
2089
POST /books
2088
2090
[32m✓ [39mRequest Body, [32m✓ [39m200 response
2089
2091
[32m[200 response body] body has been added[39m
2090
2092
[33m[request body] 'price' is now type string (/properties/price)[39m
2093
+ [32m[request body] body is now optional[39m
2091
2094
2092
2095
4 unmatched requests
2093
2096
@@ -2105,6 +2108,7 @@ paths:
2105
2108
/books:
2106
2109
post:
2107
2110
requestBody:
2111
+ required: false
2108
2112
content:
2109
2113
application/json:
2110
2114
schema:
@@ -2233,54 +2237,55 @@ GET /books
2233
2237
[31m[200 response body] 'updated_at' is not documented (/properties/books/items/properties)[39m
2234
2238
[31m[200 response body] 'author_id' does not match type number. Received 6nTxAFM5ck4Hob77hGQoL (/properties/books/items/properties/author_id)[39m
2235
2239
[41m Diff [49m 'author_id' did not match schema
2236
- [90m43 |[39m properties:
2237
- [90m44 |[39m id:
2238
- [90m45 |[39m type: string
2239
- [90m46 |[39m [1m[33m author_id: [41m[Actual] "6nTxAFM5ck4Hob77hGQoL"[49m[39m[22m
2240
- [90m47 |[39m type: number
2241
- [90m48 |[39m status:
2242
- [90m49 |[39m type: string
2240
+ [90m44 |[39m properties:
2241
+ [90m45 |[39m id:
2242
+ [90m46 |[39m type: string
2243
+ [90m47 |[39m [1m[33m author_id: [41m[Actual] "6nTxAFM5ck4Hob77hGQoL"[49m[39m[22m
2244
+ [90m48 |[39m type: number
2245
+ [90m49 |[39m status:
2246
+ [90m50 |[39m type: string
2243
2247
[90m$workspace$/openapi.yml[39m
2244
2248
2245
2249
[31m[200 response body] 'status' missing enum value 'hold' (/properties/books/items/properties/status/enum)[39m
2246
2250
[41m Diff [49m 'status' does not have enum value hold
2247
- [90m47 |[39m type: number
2248
- [90m48 |[39m status:
2249
- [90m49 |[39m type: string
2250
- [90m50 |[39m [1m[33m enum: [41mmissing enum value 'hold'[49m[39m[22m
2251
- [90m51 |[39m - ready
2252
- [90m52 |[39m - not_ready
2253
- [90m53 |[39m price:
2251
+ [90m48 |[39m type: number
2252
+ [90m49 |[39m status:
2253
+ [90m50 |[39m type: string
2254
+ [90m51 |[39m [1m[33m enum: [41mmissing enum value 'hold'[49m[39m[22m
2255
+ [90m52 |[39m - ready
2256
+ [90m53 |[39m - not_ready
2257
+ [90m54 |[39m price:
2254
2258
[90m$workspace$/openapi.yml[39m
2255
2259
2256
2260
[31m[200 response body] schema (/properties/books/items/properties/price/maximum) with keyword 'maximum' and parameters { " comparison" :" <=" ," limit" :6 } received invalid values 10, 15[39m
2257
2261
[41m Diff [49m interaction did not match schema
2258
- [90m52 |[39m - not_ready
2259
- [90m53 |[39m price:
2260
- [90m54 |[39m type: number
2261
- [90m55 |[39m [1m[33m maximum: 6 [41m[Actual] 10, 15[49m[39m[22m
2262
- [90m56 |[39m minimum: 2
2263
- [90m57 |[39m required:
2264
- [90m58 |[39m - id
2262
+ [90m53 |[39m - not_ready
2263
+ [90m54 |[39m price:
2264
+ [90m55 |[39m type: number
2265
+ [90m56 |[39m [1m[33m maximum: 6 [41m[Actual] 10, 15[49m[39m[22m
2266
+ [90m57 |[39m minimum: 2
2267
+ [90m58 |[39m required:
2268
+ [90m59 |[39m - id
2265
2269
[90m$workspace$/openapi.yml[39m
2266
2270
2267
2271
POST /books
2268
2272
[31m× [39mRequest Body
2269
2273
[31m[200 response body] body is not documented[39m
2270
2274
[31m[request body] 'price' does not match type string. Received 1 (/properties/price)[39m
2271
2275
[41m Diff [49m 'price' did not match schema
2272
- [90m15 |[39m properties:
2273
- [90m16 |[39m name:
2274
- [90m17 |[39m type: string
2275
- [90m18 |[39m [1m[33m price: [41m[Actual] 1[49m[39m[22m
2276
- [90m19 |[39m type: string
2277
- [90m20 |[39m author_id:
2278
- [90m21 |[39m type: string
2276
+ [90m16 |[39m properties:
2277
+ [90m17 |[39m name:
2278
+ [90m18 |[39m type: string
2279
+ [90m19 |[39m [1m[33m price: [41m[Actual] 1[49m[39m[22m
2280
+ [90m20 |[39m type: string
2281
+ [90m21 |[39m author_id:
2282
+ [90m22 |[39m type: string
2279
2283
[90m$workspace$/openapi.yml[39m
2280
2284
2285
+ [31m[request body] body is required and missing[39m
2281
2286
2282
- 100.0% coverage of your documented operations. 4 requests did not match a documented path (6 total requests).
2283
- 12 diffs detected in documented operations
2287
+ 100.0% coverage of your documented operations. 4 requests did not match a documented path (7 total requests).
2288
+ 13 diffs detected in documented operations
2284
2289
2285
2290
[33mNew endpoints are only added in interactive mode. Run 'optic capture openapi.yml --update interactive' to add new endpoints[39m
2286
2291
"
@@ -2300,9 +2305,10 @@ POST /books
2300
2305
[31m× [39mRequest Body
2301
2306
[31m[200 response body] body is not documented[39m
2302
2307
[31m[request body] 'price' does not match type string. Received 1 (/properties/price)[39m
2308
+ [31m[request body] body is required and missing[39m
2303
2309
2304
- 100.0% coverage of your documented operations. 4 requests did not match a documented path (6 total requests).
2305
- 8 diffs detected in documented operations
2310
+ 100.0% coverage of your documented operations. 4 requests did not match a documented path (7 total requests).
2311
+ 9 diffs detected in documented operations
2306
2312
2307
2313
[33mNew endpoints are only added in interactive mode. Run 'optic capture openapi.yml --update interactive' to add new endpoints[39m
2308
2314
"
0 commit comments