Commit 0fd3f91f authored by Kamil Trzciński's avatar Kamil Trzciński

Add Unleash json schema

parent 75c459e6
{
"additionalProperties": false,
"properties": {
"features": {
"items": {
"$ref": "unleash_feature.json"
},
"minItems": 0,
"type": "array"
},
"version": {
"type": "integer"
}
},
"required": [
"version",
"features"
],
"type": "object"
}
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"enabled"
],
"properties": {
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"description": {
"type": "string"
}
}
}
......@@ -75,8 +75,7 @@ describe API::Unleash do
subject
expect(response).to have_gitlab_http_status(:ok)
# TODO: match schema
expect(response).to match_response_schema('unleash/unleash', dir: 'ee')
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment