vovk 3.0.0-draft.464 → 3.0.0-draft.465

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.
@@ -131,7 +131,7 @@ function vovkSchemaToOpenAPI({ rootEntry = 'api', schema: fullSchema, configs, s
131
131
  200: {
132
132
  description: 'description' in outputValidation ? outputValidation.description : 'Success',
133
133
  content: {
134
- 'application/json': {
134
+ [outputValidation['x-isForm'] ? 'multipart/form-data' : 'application/json']: {
135
135
  schema: outputValidation,
136
136
  },
137
137
  },
@@ -131,7 +131,7 @@ function vovkSchemaToOpenAPI({ rootEntry = 'api', schema: fullSchema, configs, s
131
131
  200: {
132
132
  description: 'description' in outputValidation ? outputValidation.description : 'Success',
133
133
  content: {
134
- 'application/json': {
134
+ [outputValidation['x-isForm'] ? 'multipart/form-data' : 'application/json']: {
135
135
  schema: outputValidation,
136
136
  },
137
137
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "3.0.0-draft.464",
3
+ "version": "3.0.0-draft.465",
4
4
  "main": "./cjs/index.js",
5
5
  "module": "./mjs/index.js",
6
6
  "types": "./mjs/index.d.ts",