@alauda/doom 1.16.1 → 1.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,7 +125,11 @@ export const OpenAPIPath = ({ path, openapiPath: openapiPath_, pathPrefix: pathP
125
125
  const requestBodyRef = requestBody &&
126
126
  ('$ref' in requestBody
127
127
  ? requestBody.$ref
128
- : requestBody.content['application/json'].schema?.$ref);
128
+ : /* eslint-disable @typescript-eslint/no-unnecessary-condition */
129
+ (requestBody.content['application/json'] ||
130
+ requestBody.content['application/json-patch+json'] ||
131
+ requestBody.content['*/*'])?.schema?.$ref);
132
+ /* eslint-enable @typescript-eslint/no-unnecessary-condition */
129
133
  const requestBodySchema = requestBodyRef
130
134
  ? resolveRef(openapi, requestBodyRef)
131
135
  : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": {