UNPKG

dynamodb-toolbox

Version:

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

12 lines (11 loc) 483 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFormattedTupleJSONSchema = void 0; const schema_js_1 = require("./schema.js"); const getFormattedTupleJSONSchema = (schema) => ({ type: 'array', items: schema.elements.map(element => (0, schema_js_1.getFormattedValueJSONSchema)(element)), minLength: schema.elements.length, maxLength: schema.elements.length }); exports.getFormattedTupleJSONSchema = getFormattedTupleJSONSchema;