1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +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 = {
type: 'object',
required: ['name', 'replaceGroupId'],
required: ['name'],
properties: {
name: {
type: 'string',

View File

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

View File

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