From 64fa18ef141f98603b563f9bac6171f04145c084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20Rold=C3=A1n?= Date: Tue, 1 Oct 2024 11:03:00 +0200 Subject: [PATCH] Include name in config --- packages/app/src/cli/models/extensions/specification.ts | 2 +- packages/app/src/cli/utilities/json-schema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/cli/models/extensions/specification.ts b/packages/app/src/cli/models/extensions/specification.ts index 52694ca3a9..50eac5142a 100644 --- a/packages/app/src/cli/models/extensions/specification.ts +++ b/packages/app/src/cli/models/extensions/specification.ts @@ -274,7 +274,7 @@ export function createContractBasedModuleSpecification { // These are loaded automatically for all modules, but are considered "first class" and not part of extension contracts // If a module needs them, they can access them from the manifest. - const {type, handle, uid, name, ...configWithoutFirstClassFields} = config + const {type, handle, uid, ...configWithoutFirstClassFields} = config return configWithoutFirstClassFields }, }) diff --git a/packages/app/src/cli/utilities/json-schema.ts b/packages/app/src/cli/utilities/json-schema.ts index 74f9c728eb..2063c0d001 100644 --- a/packages/app/src/cli/utilities/json-schema.ts +++ b/packages/app/src/cli/utilities/json-schema.ts @@ -30,7 +30,7 @@ export async function unifiedConfigurationParserFactory( // These are loaded automatically for all modules, but are considered "first class" and not part of extension contracts // If a module needs them, they can access them from the manifest. - const {type, handle, uid, name, ...subjectForAjvWithoutFirstClassFields} = subjectForAjv + const {type, handle, uid, ...subjectForAjvWithoutFirstClassFields} = subjectForAjv const jsonSchemaParse = jsonSchemaValidate(subjectForAjvWithoutFirstClassFields, contract) // Finally, we de-duplicate the error set from both validations -- identical messages for identical paths are removed