summaryrefslogtreecommitdiff
path: root/node_modules/json-schema/draft-03/examples/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/json-schema/draft-03/examples/interfaces')
-rw-r--r--node_modules/json-schema/draft-03/examples/interfaces23
1 files changed, 23 insertions, 0 deletions
diff --git a/node_modules/json-schema/draft-03/examples/interfaces b/node_modules/json-schema/draft-03/examples/interfaces
new file mode 100644
index 0000000..b8532f2
--- /dev/null
+++ b/node_modules/json-schema/draft-03/examples/interfaces
@@ -0,0 +1,23 @@
+{
+ "extends":"http://json-schema.org/hyper-schema",
+ "description":"A schema for schema interface definitions that describe programmatic class structures using JSON schema syntax",
+ "properties":{
+ "methods":{
+ "type":"object",
+ "description":"This defines the set of methods available to the class instances",
+ "additionalProperties":{
+ "type":"object",
+ "description":"The definition of the method",
+ "properties":{
+ "parameters":{
+ "type":"array",
+ "description":"The set of parameters that should be passed to the method when it is called",
+ "items":{"$ref":"#"},
+ "required": true
+ },
+ "returns":{"$ref":"#"}
+ }
+ }
+ }
+ }
+}