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 { JsonSchema, JsonSchemaType } from '../../../platform/configuration/common/jsonSchema';
export interface IToJsonSchemaOptions {
/**
* Whether to include a description field (empty by default).
*/
includeDescription?: boolean;
}
/**
* Generates a JSON schema from a plain JavaScript object.
* The input should be a JSON-serializable value.
*/
export function toJsonSchema(obj: unknown, options: IToJsonSchemaOptions = {}): JsonSchema {
if (obj === null) {
return { type: 'null' as JsonSchemaType }
obj
type
type Numberobj
type JsonSchemaType
obj
obj options
obj Record options
arr options IToJsonSchemaOptions JsonSchema
arrlength
type
allObjects arritem item item item
allObjects
itemSchema arr Record options
type
items itemSchema
schemas arr options
schemaslength
type
items schemas
type
items oneOf schemas
schema JsonSchema
schema
schematype
schematype
schematype
schema
arr options IToJsonSchemaOptions JsonSchema
schemaMap
objectValues Record
item arr
item item item
objectValuesitem Record
schema item options
key schema
schemaMapkey
schemaMapkey schema
objectValueslength
schemaMap objectValues options
schemaMap
objects Record options IToJsonSchemaOptions JsonSchema
propertyValues
obj objects
key value Objectobj
propertyValueskey
propertyValueskey
propertyValueskeyvalue
properties Record JsonSchema
required
key values propertyValues
propertieskey values options
valueslength objectslength
requiredkey
schema JsonSchema
type
properties
requiredlength
schema required required required
schema
values options IToJsonSchemaOptions JsonSchema
allObjects valuesv v v v
allObjects
values Record options
schemas values options
schemaslength
schemas
oneOf schemas
obj Record options IToJsonSchemaOptions JsonSchema
properties Record JsonSchema
required
key value Objectobj
propertieskey value options
requiredkey
schema JsonSchema
type
properties
requiredlength
schema required required required
schema