diff options
| -rw-r--r-- | spore_validation.rx | 4 | ||||
| -rw-r--r-- | uml/api.dot | 4 | ||||
| -rw-r--r-- | uml/api.lua | 4 | ||||
| -rw-r--r-- | uml/api.png | bin | 27700 -> 27747 bytes |
4 files changed, 6 insertions, 6 deletions
diff --git a/spore_validation.rx b/spore_validation.rx index 5d531f4..a6fb6fd 100644 --- a/spore_validation.rx +++ b/spore_validation.rx @@ -6,7 +6,7 @@ "authentication": "//bool", "version": "//str", "authority": "//str", - "format": { + "formats": { "type" : "//arr", "contents": { "type":"//str" } }, @@ -48,7 +48,7 @@ "description": "//str", "authentication": "//bool", "base_url": "//str", - "format": { + "formats": { "type" : "//arr", "contents": { "type":"//str" } } diff --git a/uml/api.dot b/uml/api.dot index 43d92ca..1b81647 100644 --- a/uml/api.dot +++ b/uml/api.dot @@ -3,10 +3,10 @@ digraph { node [shape=record]; "Method" - [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}"]; + [label="{\N|authentication : boolean\lbase_url : string\ldescription : string\lexpected_status : table<number>\lformats : 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}"]; + [label="{\N|authentication : boolean\lauthority : string\lbase_url : string\ldescription : string\lformats : table<string>\lmeta : table<string,string>\lmethods : table<string,Method>\lname : string\lversion : string\l}"]; "API" -> "Method" // attr isa table<string,Method> [label = "methods", arrowhead = none, arrowtail = odiamond]; diff --git a/uml/api.lua b/uml/api.lua index 0cd4596..83f1dd2 100644 --- a/uml/api.lua +++ b/uml/api.lua @@ -12,7 +12,7 @@ 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' } -has.format = { is = 'ro', isa = 'table<string>' } +has.formats = { is = 'ro', isa = 'table<string>' } class 'API' @@ -22,7 +22,7 @@ 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.formats = { is = 'ro', isa = 'table<string>' } has.version = { is = 'ro', isa = 'string' } has.authority = { is = 'ro', isa = 'string' } has.meta = { is = 'ro', isa = 'table<string,string>' } diff --git a/uml/api.png b/uml/api.png Binary files differindex 1334481..2ed711a 100644 --- a/uml/api.png +++ b/uml/api.png |
