@@ -753,7 +753,7 @@ describe('osprey method handler', function () {
753
753
app . use ( function ( err , req , res , next ) {
754
754
expect ( err . ramlValidation ) . to . equal ( true )
755
755
expect ( err . requestErrors [ 0 ] ) . to . deep . equal ( {
756
- type : 'body ' ,
756
+ type : 'json ' ,
757
757
keyword : 'required' ,
758
758
dataPath : '/foo' ,
759
759
message : 'is a required property' ,
@@ -786,7 +786,7 @@ describe('osprey method handler', function () {
786
786
app . use ( function ( err , req , res , next ) {
787
787
expect ( err . ramlValidation ) . to . equal ( true )
788
788
expect ( err . requestErrors [ 0 ] ) . to . deep . equal ( {
789
- type : 'body ' ,
789
+ type : 'json ' ,
790
790
keyword : 'minProperties' ,
791
791
dataPath : '' ,
792
792
message : 'should NOT have fewer than 2 properties' ,
@@ -821,7 +821,7 @@ describe('osprey method handler', function () {
821
821
app . use ( function ( err , req , res , next ) {
822
822
expect ( err . ramlValidation ) . to . equal ( true )
823
823
expect ( err . requestErrors [ 0 ] ) . to . deep . equal ( {
824
- type : 'body ' ,
824
+ type : 'json ' ,
825
825
keyword : 'maxProperties' ,
826
826
dataPath : '' ,
827
827
message : 'should NOT have more than 1 properties' ,
@@ -857,7 +857,7 @@ describe('osprey method handler', function () {
857
857
app . use ( function ( err , req , res , next ) {
858
858
expect ( err . ramlValidation ) . to . equal ( true )
859
859
expect ( err . requestErrors [ 0 ] ) . to . deep . equal ( {
860
- type : 'body ' ,
860
+ type : 'json ' ,
861
861
keyword : 'additionalProperties' ,
862
862
dataPath : '/baz' ,
863
863
message : 'is an invalid additional property' ,
0 commit comments