Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8fc04867cff32bda307ac8d98b3d79d1e5bb3f3b 1 parent d5b53da
@Marak Marak authored
Showing with 17 additions and 14 deletions.
  1. +17 −14 test/resourceful-methods-test.js
View
31 test/resourceful-methods-test.js
@@ -43,20 +43,23 @@ function describeResourceWithMethods(){
"description": "fires a lazer at a certain power and direction",
"properties": {
"options": {
- "power": {
- "type": "number",
- "default": 1,
- "required": true
- },
- "direction": {
- "type": "string",
- "enum": ["up", "down", "left", "right"],
- "required": true,
- "default": "up"
- },
- "callback": {
- "type": "function",
- "required": false
+ "type": "object",
+ "properties": {
+ "power": {
+ "type": "number",
+ "default": 1,
+ "required": true
+ },
+ "direction": {
+ "type": "string",
+ "enum": ["up", "down", "left", "right"],
+ "required": true,
+ "default": "up"
+ },
+ "callback": {
+ "type": "function",
+ "required": false
+ }
}
}
}});
Please sign in to comment.
Something went wrong with that request. Please try again.