UNPKG

yaml-language-server

Version:
17 lines (16 loc) 953 B
import type { WorkspaceFolder } from 'vscode-languageserver-protocol'; import { URI } from 'vscode-uri'; import type { Telemetry } from '../telemetry'; import type { JSONSchema } from '../jsonSchema'; export declare const DEFAULT_KUBERNETES_SCHEMA_VERSION = "v1.34.1"; export declare const JSON_SCHEMASTORE_URL = "https://www.schemastore.org/api/json/catalog.json"; export declare const CRD_CATALOG_URL = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main"; export declare const EMPTY_SCHEMA_URL = "vscode://schemas/empty"; export declare function isKubernetes(uri: string): boolean; export declare function checkSchemaURI(workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, uri: string, telemetry: Telemetry, kubernetesVersion?: string): string; /** * Collect all urls of sub schemas * @param schema the root schema * @returns map url to schema */ export declare function getSchemaUrls(schema: JSONSchema): Map<string, JSONSchema>;