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:
parent
16860c1469
commit
a8d34d6268
@ -2,7 +2,7 @@ import { createSchemaObject, CreateSchemaType } from '../types';
|
||||
|
||||
const schema = {
|
||||
type: 'object',
|
||||
required: ['name', 'replaceGroupId'],
|
||||
required: ['name'],
|
||||
properties: {
|
||||
name: {
|
||||
type: 'string',
|
||||
|
@ -359,7 +359,7 @@ export default class ProjectFeaturesController extends Controller {
|
||||
featureName,
|
||||
projectId,
|
||||
name,
|
||||
Boolean(replaceGroupId),
|
||||
replaceGroupId,
|
||||
userName,
|
||||
);
|
||||
res.status(201).json(created);
|
||||
|
@ -62,7 +62,6 @@ Object {
|
||||
},
|
||||
"required": Array [
|
||||
"name",
|
||||
"replaceGroupId",
|
||||
],
|
||||
"type": "object",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user