55 "mokapi/config/dynamic/asyncApi"
66 "mokapi/config/dynamic/asyncApi/asyncapitest"
77 "mokapi/schema/json/schema"
8- "mokapi/schema/json/schematest"
8+ "mokapi/schema/json/schema/ schematest"
99 "testing"
1010)
1111
@@ -400,8 +400,8 @@ func TestConfig_Patch_Message(t *testing.T) {
400400 },
401401 test : func (t * testing.T , result * asyncApi.Config ) {
402402 msg := result .Channels ["foo" ].Value .Publish .Message .Value
403- s := msg .Payload .Value .Schema .(* schema.Ref )
404- require .Equal (t , "string" , s .Type ())
403+ s := msg .Payload .Value .Schema .(* schema.Schema )
404+ require .Equal (t , "string" , s .Type . String ())
405405 },
406406 },
407407 }
@@ -457,8 +457,8 @@ func TestConfig_Patch_Components(t *testing.T) {
457457 },
458458 test : func (t * testing.T , result * asyncApi.Config ) {
459459 require .Len (t , result .Components .Schemas , 1 )
460- s := result .Components .Schemas ["foo" ].Value .Schema .(* schema.Ref )
461- require .Equal (t , "number" , s .Value . Type .String ())
460+ s := result .Components .Schemas ["foo" ].Value .Schema .(* schema.Schema )
461+ require .Equal (t , "number" , s .Type .String ())
462462 },
463463 },
464464 {
@@ -469,10 +469,10 @@ func TestConfig_Patch_Components(t *testing.T) {
469469 },
470470 test : func (t * testing.T , result * asyncApi.Config ) {
471471 require .Len (t , result .Components .Schemas , 2 )
472- s := result .Components .Schemas ["foo" ].Value .Schema .(* schema.Ref )
473- require .Equal (t , "number" , s .Value . Type .String ())
474- s = result .Components .Schemas ["bar" ].Value .Schema .(* schema.Ref )
475- require .Equal (t , "string" , s .Value . Type .String ())
472+ s := result .Components .Schemas ["foo" ].Value .Schema .(* schema.Schema )
473+ require .Equal (t , "number" , s .Type .String ())
474+ s = result .Components .Schemas ["bar" ].Value .Schema .(* schema.Schema )
475+ require .Equal (t , "string" , s .Type .String ())
476476 },
477477 },
478478 {
@@ -483,9 +483,9 @@ func TestConfig_Patch_Components(t *testing.T) {
483483 },
484484 test : func (t * testing.T , result * asyncApi.Config ) {
485485 require .Len (t , result .Components .Schemas , 1 )
486- s := result .Components .Schemas ["foo" ].Value .Schema .(* schema.Ref )
487- require .Equal (t , "number" , s .Value . Type .String ())
488- require .Equal (t , "double" , s .Value . Format )
486+ s := result .Components .Schemas ["foo" ].Value .Schema .(* schema.Schema )
487+ require .Equal (t , "number" , s .Type .String ())
488+ require .Equal (t , "double" , s .Format )
489489 },
490490 },
491491 {
0 commit comments