From adeadf599607fb34cf4342da287191e5de753a68 Mon Sep 17 00:00:00 2001 From: Breban Sergiu Date: Tue, 20 Jan 2026 11:14:13 +0200 Subject: [PATCH 1/2] refactor: adds optional featureFlag field to the manifest schema --- .../manifest-validator/src/schema/schema.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/manifest-validator/src/schema/schema.ts b/packages/manifest-validator/src/schema/schema.ts index f64caef0..7f7ed296 100644 --- a/packages/manifest-validator/src/schema/schema.ts +++ b/packages/manifest-validator/src/schema/schema.ts @@ -213,6 +213,25 @@ export const schema = { params: { type: "object", }, + featureFlags: { + oneOf: [ + { + type: "array", + uniqueItems: true, + items: { + type: "string", + }, + }, + { + type: "string", + const: "*", + }, + ], + errorMessage: { + oneOf: + 'Must be type of array with a least 1 value or a string equal to "*"', + }, + }, }, if: { properties: { From 67af06367abef1ade54d80f042f3bb4eee2361d0 Mon Sep 17 00:00:00 2001 From: Breban Sergiu Date: Tue, 20 Jan 2026 11:16:03 +0200 Subject: [PATCH 2/2] chore: adds changeset --- .changeset/giant-fireants-perform.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/giant-fireants-perform.md diff --git a/.changeset/giant-fireants-perform.md b/.changeset/giant-fireants-perform.md new file mode 100644 index 00000000..6d888183 --- /dev/null +++ b/.changeset/giant-fireants-perform.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/wallet-api-manifest-validator": patch +--- + +adds optional featureFlag field to the manifest schema