dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
11 lines (10 loc) • 370 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFormattedPrimitiveJSONSchema = void 0;
const getFormattedPrimitiveJSONSchema = (schema) => {
if (schema.type === 'binary') {
return { type: 'string' };
}
return { type: schema.type };
};
exports.getFormattedPrimitiveJSONSchema = getFormattedPrimitiveJSONSchema;