Sha256: ae9805c26297e642f5015af4369b5c7b66acebef7e1cc1307cabfe423cca833a
Contents?: true
Size: 1.59 KB
Versions: 3
Compression:
Stored size: 1.59 KB
Contents
{ "title": "Example Schema", "type": "object", "required": ["request", "response"], "definitions": { "subschema": { "anyOf": [ { "$ref": "http://json-schema.org/draft-03/schema#" }, { "$ref": "http://json-schema.org/draft-04/schema#" } ] } }, "properties": { "name": { "type": "string" }, "request": { "type": "object", "required": ["path"], "properties": { "method": { "_deprecated": true, "type": "string" }, "http_method": { "type": "string" }, "path": { "type": "string" }, "headers": { "type": "object" }, "params": { "type": "object" }, "body": { "description": "body is deprecated, use schema", "$ref": "#/definitions/subschema" }, "schema": { "$ref": "#/definitions/subschema" } } }, "response": { "type": "object", "required": ["status"], "properties": { "status":{ "type": "integer" }, "body": { "description": "body is deprecated, use schema", "$ref": "#/definitions/subschema" }, "schema": { "$ref": "#/definitions/subschema" } } }, "examples": { "type": "object", "additionalProperties": { "type": "object", "required": ["request", "response"], "properties": { "request": { }, "response": { } } } } } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | resources/contract_schema.json |
pacto-0.4.0.rc2 | resources/contract_schema.json |
pacto-0.4.0.rc1 | resources/contract_schema.json |