EdgeAIG's picture
download
raw
498 Bytes
import * as JsonSchema from "../../../JsonSchema.js";
import * as Schema from "../../../Schema.js";
/** @internal */
export const defaultCodecTransformer = codec => {
const document = JsonSchema.resolveTopLevel$ref(Schema.toJsonSchemaDocument(codec));
const jsonSchema = {
...document.schema
};
if (Object.keys(document.definitions).length > 0) {
jsonSchema.$defs = document.definitions;
}
return {
codec,
jsonSchema
};
};
//# sourceMappingURL=codec-transformer.js.map

Xet Storage Details

Size:
498 Bytes
·
Xet hash:
a659f9ed165dd3fa70b823b596b3e013b3ff9b05fb8c606ed31385709af0da82

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.