1
0
mirror of https://github.com/Unleash/unleash.git synced 2026-01-05 20:06:22 +01:00

feat: export project specific context fields

This commit is contained in:
kwasniew 2025-12-17 10:32:48 +01:00
parent 7a25d724be
commit 09d1374db3
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560
2 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@ export interface IContextFieldDto {
usedInProjects?: number | null;
usedInFeatures?: number | null;
legalValues?: ILegalValue[];
project?: string;
project?: string | null;
}
export interface ILegalValue {

View File

@ -35,6 +35,12 @@ export const updateContextFieldSchema = {
$ref: '#/components/schemas/legalValueSchema',
},
},
project: {
description:
'The project this context field belongs to (if it is project-specific)',
type: 'string',
example: 'my-project',
},
},
components: {
schemas: {