Skip to content

Commit

Permalink
Include name in config
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Oct 1, 2024
1 parent 5d737cc commit 64fa18e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/cli/models/extensions/specification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export function createContractBasedModuleSpecification<TConfiguration extends Ba
deployConfig: async (config, _) => {
// 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
},
})
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/cli/utilities/json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64fa18e

Please sign in to comment.