Skip to content
This repository
Browse code

[tests] [fix] Use correct format for JSON-schema

  • Loading branch information...
commit 8fc04867cff32bda307ac8d98b3d79d1e5bb3f3b 1 parent d5b53da
authored September 06, 2012

Showing 1 changed file with 17 additions and 14 deletions. Show diff stats Hide diff stats

  1. 31  test/resourceful-methods-test.js
31  test/resourceful-methods-test.js
@@ -43,20 +43,23 @@ function describeResourceWithMethods(){
43 43
     "description": "fires a lazer at a certain power and direction",
44 44
     "properties": {
45 45
       "options": {
46  
-        "power": {
47  
-          "type": "number",
48  
-          "default": 1,
49  
-          "required": true
50  
-        },
51  
-        "direction": {
52  
-          "type": "string",
53  
-          "enum": ["up", "down", "left", "right"],
54  
-          "required": true,
55  
-          "default": "up"
56  
-        },
57  
-        "callback": {
58  
-          "type": "function",
59  
-          "required": false
  46
+        "type": "object",
  47
+        "properties": {
  48
+          "power": {
  49
+            "type": "number",
  50
+            "default": 1,
  51
+            "required": true
  52
+          },
  53
+          "direction": {
  54
+            "type": "string",
  55
+            "enum": ["up", "down", "left", "right"],
  56
+            "required": true,
  57
+            "default": "up"
  58
+          },
  59
+          "callback": {
  60
+            "type": "function",
  61
+            "required": false
  62
+          }
60 63
         }
61 64
       }
62 65
   }});

0 notes on commit 8fc0486

Please sign in to comment.
Something went wrong with that request. Please try again.