Skip to main content
Glama
not.test.js619 B
'use strict' const assert = require('node:assert/strict') const { test } = require('node:test') const { mergeSchemas } = require('../index') const { defaultResolver } = require('./utils') test('should merge two "not" keyword schemas', () => { const schema1 = { type: 'array', not: { type: 'string' } } const schema2 = { type: 'array', not: { type: 'string', minLength: 1 } } const mergedSchema = mergeSchemas([schema1, schema2], { defaultResolver }) assert.deepStrictEqual(mergedSchema, { type: 'array', not: { type: 'string', minLength: 1 } }) })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/krtw00/search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server