ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import assert from 'assert';
import { z } from 'zod';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js';
import { jsonSchemaToZodRawShape } from '../../../node/claude/clientTools/claudeJsonSchemaToZod.js';
function parse(shape: Record<string, z.ZodTypeAny>, value: unknown) {
return z.object(shape).safeParse(value);
}
suite
assertObject
assertObject type
shape
type
properties
a type
b type
c type
d type
required
assertshape a success
assertshape success
assertshape a c success
assertshape a c b d success
shape
type
properties
list type items type
nested
type
properties inner type
required
color
one
either oneOf type type
nope type
required
ok shape
list
nested inner
color
one
either
nope
assertoksuccess
assertshape list nested inner color one either nope success
assertshape list nested inner color one either nope success
assertshape list nested inner color one either nope success
shape
type
properties
n type nullable description
required
assertshape n success
assertshape n success
assertshape n success
withDefault shape
assertwithDefaultsuccess
assertwithDefaultsuccess withDefaultdata n n
shape
type
properties
weird type
worse object
required
assertshape weird success
assertshape weird nested worse success