rajt 0.0.78 → 0.0.79
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.
- package/package.json +1 -1
- package/src/routes.ts +1 -1
package/package.json
CHANGED
package/src/routes.ts
CHANGED
|
@@ -63,7 +63,7 @@ function isZodSchema(obj: any): obj is z.ZodType {
|
|
|
63
63
|
function ResolveDescribeSchema(obj: any, deep: boolean = false) {
|
|
64
64
|
if (!obj || typeof obj !== 'object') return obj
|
|
65
65
|
if (isZodSchema(obj))
|
|
66
|
-
return { content: {'
|
|
66
|
+
return { content: {'application/json': { schema: resolver(obj as unknown as StandardSchemaV1) }} }
|
|
67
67
|
|
|
68
68
|
if (obj.content && typeof obj.content == 'object') {
|
|
69
69
|
for (const mediaType in obj.content) {
|