Skip to content

Commit e36d120

Browse files
committed
Typo fix
1 parent bfa433e commit e36d120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/languageservice/services/yamlSchemaService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import * as Draft07 from '@hyperjump/json-schema/draft-07';
3434
import * as Draft201909 from '@hyperjump/json-schema/draft-2019-09';
3535
import * as Draft202012 from '@hyperjump/json-schema/draft-2020-12';
3636

37-
type SupportedSchemaVersions = '2020-12' | '2019-09' | 'draft-07' | 'draft-04';
37+
type SupportedSchemaVersion = '2020-12' | '2019-09' | 'draft-07' | 'draft-04';
3838
export declare type CustomSchemaProvider = (uri: string) => Promise<string | string[]>;
3939

4040
export enum MODIFICATION_ACTIONS {
@@ -757,7 +757,7 @@ export class YAMLSchemaService extends JSONSchemaService {
757757
/**
758758
* Detect the JSON Schema version from the $schema property
759759
*/
760-
private detectSchemaVersion(schema: JSONSchema): SupportedSchemaVersions {
760+
private detectSchemaVersion(schema: JSONSchema): SupportedSchemaVersion {
761761
const schemaProperty = schema.$schema;
762762
if (typeof schemaProperty === 'string') {
763763
if (schemaProperty.includes('2020-12')) {
@@ -777,7 +777,7 @@ export class YAMLSchemaService extends JSONSchemaService {
777777
* Get the appropriate validator module for a schema version
778778
*/
779779
// eslint-disable-next-line @typescript-eslint/no-explicit-any
780-
private getValidatorForVersion(version: SupportedSchemaVersions): any {
780+
private getValidatorForVersion(version: SupportedSchemaVersion): any {
781781
switch (version) {
782782
case '2020-12':
783783
return Draft202012;
@@ -794,7 +794,7 @@ export class YAMLSchemaService extends JSONSchemaService {
794794
/**
795795
* Get the correct schema meta URI for a given version
796796
*/
797-
private getSchemaMetaSchema(version: SupportedSchemaVersions): string {
797+
private getSchemaMetaSchema(version: SupportedSchemaVersion): string {
798798
switch (version) {
799799
case '2020-12':
800800
return 'https://json-schema.org/draft/2020-12/schema';

0 commit comments

Comments
 (0)