dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
11 lines (10 loc) • 479 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFormattedRecordJSONSchema = void 0;
const schema_js_1 = require("./schema.js");
const getFormattedRecordJSONSchema = (schema) => ({
type: 'object',
propertyNames: (0, schema_js_1.getFormattedValueJSONSchema)(schema.keys),
additionalProperties: (0, schema_js_1.getFormattedValueJSONSchema)(schema.elements)
});
exports.getFormattedRecordJSONSchema = getFormattedRecordJSONSchema;