1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

fix: add new schemas to the snapshot

This commit is contained in:
Thomas Heartman 2022-06-28 13:30:03 +02:00
parent 7623964506
commit aa6708f7e8

View File

@ -615,6 +615,73 @@ Object {
], ],
"type": "object", "type": "object",
}, },
"eventSchema": Object {
"additionalProperties": false,
"properties": Object {
"createdAt": Object {
"format": "date-time",
"type": "string",
},
"createdBy": Object {
"type": "string",
},
"data": Object {},
"environment": Object {
"nullable": true,
"type": "string",
},
"featureName": Object {
"nullable": true,
"type": "string",
},
"id": Object {
"minimum": 1,
"type": "integer",
},
"preData": Object {},
"project": Object {
"nullable": true,
"type": "string",
},
"tags": Object {
"items": Object {
"$ref": "#/components/schemas/tagSchema",
},
"nullable": true,
"type": "array",
},
"type": Object {
"type": "string",
},
},
"required": Array [
"id",
"createdAt",
"type",
"createdBy",
],
"type": "object",
},
"eventsSchema": Object {
"additionalProperties": false,
"properties": Object {
"events": Object {
"items": Object {
"$ref": "#/components/schemas/eventSchema",
},
"type": "array",
},
"version": Object {
"minimum": 1,
"type": "integer",
},
},
"required": Array [
"version",
"events",
],
"type": "object",
},
"exportParametersSchema": Object { "exportParametersSchema": Object {
"properties": Object { "properties": Object {
"download": Object { "download": Object {
@ -743,6 +810,25 @@ Object {
], ],
"type": "object", "type": "object",
}, },
"featureEventsSchema": Object {
"additionalProperties": false,
"properties": Object {
"events": Object {
"items": Object {
"$ref": "#/components/schemas/eventSchema",
},
"type": "array",
},
"toggleName": Object {
"type": "string",
},
},
"required": Array [
"toggleName",
"events",
],
"type": "object",
},
"featureMetricsSchema": Object { "featureMetricsSchema": Object {
"additionalProperties": false, "additionalProperties": false,
"properties": Object { "properties": Object {
@ -2873,6 +2959,56 @@ Object {
], ],
}, },
}, },
"/api/admin/events": Object {
"get": Object {
"operationId": "getEvents",
"responses": Object {
"200": Object {
"content": Object {
"application/json": Object {
"schema": Object {
"$ref": "#/components/schemas/eventsSchema",
},
},
},
"description": "eventsSchema",
},
},
"tags": Array [
"admin",
],
},
},
"/api/admin/events/{name}": Object {
"get": Object {
"operationId": "getEventsForToggle",
"parameters": Array [
Object {
"in": "path",
"name": "name",
"required": true,
"schema": Object {
"type": "string",
},
},
],
"responses": Object {
"200": Object {
"content": Object {
"application/json": Object {
"schema": Object {
"$ref": "#/components/schemas/featureEventsSchema",
},
},
},
"description": "featureEventsSchema",
},
},
"tags": Array [
"admin",
],
},
},
"/api/admin/feature-types": Object { "/api/admin/feature-types": Object {
"get": Object { "get": Object {
"operationId": "getAllFeatureTypes", "operationId": "getAllFeatureTypes",