okapi 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/okapi/outputs/base.rb +3 -3
- data/lib/okapi/version.rb +1 -1
- data/test_files/apiary.apib +2 -0
- metadata +3 -3
data/lib/okapi/outputs/base.rb
CHANGED
@@ -71,13 +71,13 @@ module Apiary
|
|
71
71
|
res << result.schema_res["errors"][i.to_s]["message"]
|
72
72
|
}
|
73
73
|
else
|
74
|
-
if not result.header_pass
|
75
|
-
res << 'Headers does not match'
|
76
|
-
end
|
77
74
|
if not result.body_pass
|
78
75
|
res << 'Body does not match'
|
79
76
|
end
|
80
77
|
end
|
78
|
+
if not result.header_pass
|
79
|
+
res << 'Headers does not match'
|
80
|
+
end
|
81
81
|
res
|
82
82
|
end
|
83
83
|
|
data/lib/okapi/version.rb
CHANGED
data/test_files/apiary.apib
CHANGED
@@ -22,9 +22,11 @@ GET /shopping-cart/{id}
|
|
22
22
|
Save new products in your shopping cart
|
23
23
|
POST /shopping-cart/{id2}
|
24
24
|
> Content-Type: application/json
|
25
|
+
> CCC: aaa
|
25
26
|
{ "product":"1AB23ORM", "quantity": 2 }
|
26
27
|
< 201
|
27
28
|
< Content-Type: application/json
|
29
|
+
< CCC: aaa
|
28
30
|
{ "status": "created", "url": "/shopping-cart/2" }
|
29
31
|
|
30
32
|
-- Payment Resources --
|
metadata
CHANGED