/**
 * Converts a simple type map to a JSON Schema object
 */
export function toJSONSchema(types) {
    const properties = {};
    const required = [];
    for (const [key, type] of Object.entries(types)) {
        properties[key] = { type };
        required.push(key);
    }
    return { type: 'object', properties, required };
}
//# sourceMappingURL=schema.js.map