UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

11 lines (10 loc) 479 B
"use strict"; 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;