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

fix: the replaceGroupId field should be optional (#1608)

This commit is contained in:
olav 2022-05-20 11:07:30 +02:00 committed by GitHub
parent 16860c1469
commit a8d34d6268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { createSchemaObject, CreateSchemaType } from '../types';
const schema = { const schema = {
type: 'object', type: 'object',
required: ['name', 'replaceGroupId'], required: ['name'],
properties: { properties: {
name: { name: {
type: 'string', type: 'string',

View File

@ -359,7 +359,7 @@ export default class ProjectFeaturesController extends Controller {
featureName, featureName,
projectId, projectId,
name, name,
Boolean(replaceGroupId), replaceGroupId,
userName, userName,
); );
res.status(201).json(created); res.status(201).json(created);

View File

@ -62,7 +62,6 @@ Object {
}, },
"required": Array [ "required": Array [
"name", "name",
"replaceGroupId",
], ],
"type": "object", "type": "object",
}, },