@hey-api/shared 0.0.0-next-20260220173109 → 0.0.0-next-20260223010025
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/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -6898,6 +6898,7 @@ const parseSchemaMeta = ({ irSchema, schema }) => {
|
|
|
6898
6898
|
if (schema.exclusiveMaximum !== void 0) irSchema.exclusiveMaximum = schema.exclusiveMaximum;
|
|
6899
6899
|
if (schema.exclusiveMinimum !== void 0) irSchema.exclusiveMinimum = schema.exclusiveMinimum;
|
|
6900
6900
|
if (schema.format) irSchema.format = schema.format;
|
|
6901
|
+
else if (schema.contentMediaType && isMediaTypeFileLike({ mediaType: schema.contentMediaType })) irSchema.format = "binary";
|
|
6901
6902
|
if (schema.maximum !== void 0) irSchema.maximum = schema.maximum;
|
|
6902
6903
|
if (schema.maxItems !== void 0) irSchema.maxItems = schema.maxItems;
|
|
6903
6904
|
if (schema.maxLength !== void 0) irSchema.maxLength = schema.maxLength;
|
|
@@ -7503,6 +7504,14 @@ const schemaToIrSchema = ({ context, schema, state }) => {
|
|
|
7503
7504
|
schema,
|
|
7504
7505
|
state
|
|
7505
7506
|
});
|
|
7507
|
+
if (schema.contentMediaType && isMediaTypeFileLike({ mediaType: schema.contentMediaType })) return parseType({
|
|
7508
|
+
context,
|
|
7509
|
+
schema: {
|
|
7510
|
+
...schema,
|
|
7511
|
+
type: "string"
|
|
7512
|
+
},
|
|
7513
|
+
state
|
|
7514
|
+
});
|
|
7506
7515
|
return parseUnknown({
|
|
7507
7516
|
context,
|
|
7508
7517
|
schema
|