summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/feature_flag.json
blob: 45b704e4b8492c3fc939f5a3279a202bd658bda7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "type": "object",
  "required" : [
    "id",
    "name"
  ],
  "properties" : {
    "id": { "type": "integer" },
    "iid": { "type": ["integer", "null"] },
    "version": { "type": "string" },
    "created_at": { "type": "string", "format": "date-time" },
    "updated_at": { "type": "string", "format": "date-time" },
    "name": { "type": "string" },
    "active": { "type": "boolean" },
    "description": { "type": ["string", "null"] },
    "edit_path": { "type": ["string", "null"] },
    "update_path": { "type": ["string", "null"] },
    "destroy_path": { "type": ["string", "null"] },
    "scopes": { "type": "array", "items": { "$ref": "feature_flag_scope.json" } },
    "strategies": { "type": "array", "items": { "$ref": "feature_flag_strategy.json" } }
  },
  "additionalProperties": false
}