dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
9 lines (8 loc) • 386 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFormattedAnyOfJSONSchema = void 0;
const schema_js_1 = require("./schema.js");
const getFormattedAnyOfJSONSchema = (schema) => ({
anyOf: schema.elements.map(element => (0, schema_js_1.getFormattedValueJSONSchema)(element))
});
exports.getFormattedAnyOfJSONSchema = getFormattedAnyOfJSONSchema;