grim/resticide
Clone
Summary
Browse
Changes
Graph
Add query string support
develop
2015-11-09, Gary Kramlich
265502e6688c
Add query string support
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"definitions"
:
{
"headers"
:
{
"type"
:
"object"
,
"additionalProperties"
:
{
"type"
:
"string"
}
},
"body"
:
{
"type"
:
"string"
},
"json-schema"
:
{
"type"
:
"object"
,
"additionalProperties"
:
true
},
"response"
:
{
"type"
:
"object"
,
"properties"
:
{
"statuscode"
:
{
"type"
:
"integer"
},
"headers"
:
{
"oneOf"
:
[{
"$ref"
:
"#/definitions/headers"
},
{
"type"
:
"null"
}]
},
"body"
:
{
"$ref"
:
"#/definitions/body"
},
"json-schema"
:
{
"oneOf"
:
[{
"$ref"
:
"#/definitions/json-schema"
},
{
"type"
:
"null"
}]
}
},
"anyOf"
:
[{
"required"
:
[
"statuscode"
,
"body"
]
},
{
"required"
:
[
"status_code"
,
"json-schema"
]
},
{
"required"
:
[
"statuscode"
]
}],
"additionalProperties"
:
false
},
"request"
:
{
"type"
:
"object"
,
"properties"
:
{
"path"
:
{
"type"
:
"string"
},
"query"
:
{
"type"
:
[
"object"
,
"null"
,
"string"
]},
"headers"
:
{
"oneOf"
:
[{
"$ref"
:
"#/definitions/headers"
},
{
"type"
:
"null"
}]
},
"method"
:
{
"type"
:
"string"
},
"body"
:
{
"oneOf"
:
[{
"$ref"
:
"#/definitions/body"
},
{
"type"
:
"null"
}]
},
"response"
:
{
"$ref"
:
"#/definitions/response"
}
},
"required"
:
[
"path"
,
"response"
],
"additionalProperties"
:
false
},
"requests"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/request"
}
}
},
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"request"
:
{
"oneOf"
:
[{
"$ref"
:
"#/definitions/request"
},
{
"type"
:
"null"
}]
},
"requests"
:
{
"oneOf"
:
[{
"$ref"
:
"#/definitions/requests"
},
{
"type"
:
"null"
}]
}
},
"anyOf"
:
[{
"required"
:
[
"name"
,
"request"
]
},
{
"required"
:
[
"name"
,
"requests"
]
}]
}