Browse files

more explicit names

  • Loading branch information...
1 parent 2f0f999 commit d26bbba5c1a46162695b950ed045f0c3057f8077 @fperrad fperrad committed Oct 15, 2010
Showing with 8 additions and 8 deletions.
  1. +3 −3 spore_validation.rx
  2. +1 −1 uml/api.dot
  3. +4 −4 uml/api.lua
  4. BIN uml/api.png
View
6 spore_validation.rx
@@ -28,18 +28,18 @@
"path": "//str"
},
"optional": {
- "expected": {
+ "expected_status": {
"type" : "//arr",
"contents": {
"type": "//int"
}
},
- "required": {
+ "required_params": {
"type" : "//arr",
"contents": {
"type": "//str"
},
- "optional": {
+ "optional_params": {
"type": "//arr",
"contents": {
"type": "//str"
View
2 uml/api.dot
@@ -3,7 +3,7 @@ digraph {
node [shape=record];
"Method"
- [label="{\N|authentication : boolean\lbase_url : string\ldescription : string\lexpected : table<number>\lformat : table<string>\lmethod : string\loptional : table<string>\lpath : string\lrequired : table<string>\l}"];
+ [label="{\N|authentication : boolean\lbase_url : string\ldescription : string\lexpected_status : table<number>\lformat : table<string>\lmethod : string\loptional_params : table<string>\lpath : string\lrequired_params : table<string>\l}"];
"API"
[label="{\N|authentication : boolean\lauthority : string\lbase_url : string\ldescription : string\lformat : table<string>\lmeta : table<string,string>\lmethods : table<string,Method>\lname : string\lversion : string\l}"];
View
8 uml/api.lua
@@ -6,9 +6,9 @@ class 'Method'
has._method = { is = 'ro', isa = 'string', required = true }
has.path = { is = 'ro', isa = 'string', required = true }
-has.expected = { is = 'ro', isa = 'table<number>' }
-has.required = { is = 'ro', isa = 'table<string>' }
-has.optional = { is = 'ro', isa = 'table<string>' }
+has.expected_status = { is = 'ro', isa = 'table<number>' }
+has.required_params = { is = 'ro', isa = 'table<string>' }
+has.optional_params = { is = 'ro', isa = 'table<string>' }
has.base_url = { is = 'ro', isa = 'string' }
has.description = { is = 'ro', isa = 'string' }
has.authentication = { is = 'ro', isa = 'boolean' }
@@ -22,8 +22,8 @@ has.methods = { is = 'ro', isa = 'table<string,Method>', required = true
has.base_url = { is = 'ro', isa = 'string' }
has.description = { is = 'ro', isa = 'string' }
has.authentication = { is = 'ro', isa = 'boolean' }
+has.format = { is = 'ro', isa = 'table<string>' }
has.version = { is = 'ro', isa = 'string' }
has.authority = { is = 'ro', isa = 'string' }
-has.format = { is = 'ro', isa = 'table<string>' }
has.meta = { is = 'ro', isa = 'table<string,string>' }
View
BIN uml/api.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d26bbba

Please sign in to comment.