@@ -329,8 +329,9 @@ suite('JSON Schema', () => {
329329 assert . notEqual ( schema , undefined ) ;
330330 testDone ( ) ;
331331 } ) ;
332+ } ) ;
332333 test ( 'Modifying schema' , async ( ) => {
333- const service = new SchemaService . JSONSchemaService ( requestServiceMock , workspaceContext ) ;
334+ const service = new SchemaService . YAMLSchemaService ( requestServiceMock , workspaceContext ) ;
334335 service . setSchemaContributions ( {
335336 schemas : {
336337 'https://myschemastore/main/schema1.json' : {
@@ -377,7 +378,7 @@ suite('JSON Schema', () => {
377378 } ) ;
378379
379380 test ( 'Deleting schema' , async ( ) => {
380- const service = new SchemaService . JSONSchemaService ( requestServiceMock , workspaceContext ) ;
381+ const service = new SchemaService . YAMLSchemaService ( requestServiceMock , workspaceContext ) ;
381382 service . setSchemaContributions ( {
382383 schemas : {
383384 'https://myschemastore/main/schema1.json' : {
@@ -421,7 +422,7 @@ suite('JSON Schema', () => {
421422 } ) ;
422423
423424 test ( 'Modifying schema works with kubernetes resolution' , async ( ) => {
424- const service = new SchemaService . JSONSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
425+ const service = new SchemaService . YAMLSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
425426 service . registerExternalSchema ( KUBERNETES_SCHEMA_URL ) ;
426427
427428 const schemaModification = new SchemaModification ( ) ;
@@ -441,7 +442,7 @@ suite('JSON Schema', () => {
441442 } ) ;
442443
443444 test ( 'Deleting schema works with Kubernetes resolution' , async ( ) => {
444- const service = new SchemaService . JSONSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
445+ const service = new SchemaService . YAMLSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
445446 service . registerExternalSchema ( KUBERNETES_SCHEMA_URL ) ;
446447
447448 const schemaModification = new SchemaModification ( ) ;
@@ -457,7 +458,7 @@ suite('JSON Schema', () => {
457458 } ) ;
458459
459460 test ( 'Adding a brand new schema' , async ( ) => {
460- const service = new SchemaService . JSONSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
461+ const service = new SchemaService . YAMLSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
461462 service . saveSchema ( 'hello_world' , {
462463 enum : [
463464 'test1' ,
@@ -470,7 +471,7 @@ suite('JSON Schema', () => {
470471 } ) ;
471472
472473 test ( 'Deleting an existing schema' , async ( ) => {
473- const service = new SchemaService . JSONSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
474+ const service = new SchemaService . YAMLSchemaService ( schemaRequestServiceForURL , workspaceContext ) ;
474475 service . saveSchema ( 'hello_world' , {
475476 enum : [
476477 'test1' ,
0 commit comments