UNPKG

dynamodb-toolbox

Version:

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

8 lines (7 loc) 298 B
import { getFormattedValueJSONSchema } from './schema.js'; export const getFormattedTupleJSONSchema = (schema) => ({ type: 'array', items: schema.elements.map(element => getFormattedValueJSONSchema(element)), minLength: schema.elements.length, maxLength: schema.elements.length });