@@ -404,7 +404,7 @@ def build_service(attrs={})
404
404
end
405
405
406
406
context "of type #{ test [ :type ] } and action #{ schema_action } has a valid schema" do
407
- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , type : 'object' } } } } }
407
+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , type : 'object' } } } } }
408
408
409
409
before do
410
410
stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
@@ -424,8 +424,8 @@ def build_service(attrs={})
424
424
425
425
context "of type #{ test [ :type ] } and action #{ schema_action } is not a JSON object" do
426
426
{
427
- "#{ test [ :type ] } .#{ schema_action } " : { ( test [ :type ] ) . to_s => { schema_action => true } } ,
428
- "#{ test [ :type ] } .#{ schema_action } .parameters" : { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => true } } }
427
+ "#{ test [ :type ] } .#{ schema_action } " : { test [ :type ] . to_s => { schema_action => true } } ,
428
+ "#{ test [ :type ] } .#{ schema_action } .parameters" : { test [ :type ] . to_s => { schema_action => { 'parameters' => true } } }
429
429
} . each do |path , schema |
430
430
context "operator receives an error about #{ path } #{ schema } " do
431
431
before do
@@ -456,7 +456,7 @@ def build_service(attrs={})
456
456
457
457
context "of type #{ test [ :type ] } and action #{ schema_action } does not conform to JSON Schema Draft 04 (experimental support for later versions)" do
458
458
let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
459
- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , properties : true } } } } }
459
+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , properties : true } } } } }
460
460
461
461
before do
462
462
stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
@@ -487,7 +487,7 @@ def build_service(attrs={})
487
487
let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
488
488
let ( :schema ) do
489
489
{
490
- ( test [ :type ] ) . to_s => {
490
+ test [ :type ] . to_s => {
491
491
schema_action => {
492
492
'parameters' => {
493
493
'$schema' : 'http://json-schema.org/draft-04/schema#' ,
@@ -528,7 +528,7 @@ def build_service(attrs={})
528
528
529
529
context "of type #{ test [ :type ] } and action #{ schema_action } has an external schema" do
530
530
let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
531
- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://example.com/schema' , type : 'object' } } } } }
531
+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://example.com/schema' , type : 'object' } } } } }
532
532
533
533
before do
534
534
stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
@@ -558,7 +558,7 @@ def build_service(attrs={})
558
558
let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
559
559
let ( :schema ) do
560
560
{
561
- ( test [ :type ] ) . to_s => {
561
+ test [ :type ] . to_s => {
562
562
schema_action => {
563
563
'parameters' => {
564
564
'$schema' : 'http://json-schema.org/draft-04/schema#' ,
@@ -595,7 +595,7 @@ def build_service(attrs={})
595
595
596
596
context "of type #{ test [ :type ] } and action #{ schema_action } has no $schema" do
597
597
let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
598
- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { type : 'object' } } } } }
598
+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { type : 'object' } } } } }
599
599
600
600
before do
601
601
stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
0 commit comments