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

feat: handle nullable sdk type (#9872)

This commit is contained in:
Mateusz Kwasniewski 2025-04-30 12:36:18 +02:00 committed by GitHub
parent 691a9e6e57
commit 3ef32dca93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -303,6 +303,7 @@ describe('bulk metrics', () => {
instanceId: 'instance5678',
environment: 'development',
sdkVersion: 'unleash-client-java',
sdkType: null,
started: '1952-03-11T12:00:00.000Z',
interval: 15000,
};

View File

@ -74,7 +74,8 @@ export const bulkRegistrationSchema = {
description: 'The sdk type',
example: 'backend',
type: 'string',
enum: ['frontend', 'backend'],
enum: ['frontend', 'backend', null],
nullable: true,
},
},
components: {

View File

@ -488,7 +488,7 @@ export interface IClientApp {
platformVersion?: string;
yggdrasilVersion?: string;
specVersion?: string;
sdkType?: 'frontend' | 'backend';
sdkType?: 'frontend' | 'backend' | null;
}
export interface IAppFeature {