Skip to content

Commit

Permalink
even more camelCase vs lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 4, 2024
1 parent 82e2215 commit 0c0e25a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ving/generator/vingschema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@ export const generateSchema = (params) => {
const context = { ...getContext({}), ...params };
return Promise.resolve(context)
.then(renderTemplate(schemaTemplate(context), toFile(`ving/schema/schemas/${context.name}.mjs`)))
.then(inject(`import { ${context.name.toLowerCase()}Schema } from "#ving/schema/schemas/${context.name}.mjs";`, after('import { apikeySchema } from "#ving/schema/schemas/APIKey.mjs";'), toFile('ving/schema/map.mjs')))
.then(inject(` ${context.name.toLowerCase()}Schema,`, after(' apikeySchema,'), toFile('ving/schema/map.mjs')));
.then(inject(`import { ${camelCase(context.name)}Schema } from "#ving/schema/schemas/${context.name}.mjs";`, after('import { apikeySchema } from "#ving/schema/schemas/APIKey.mjs";'), toFile('ving/schema/map.mjs')))
.then(inject(` ${camelCase(context.name)}Schema,`, after(' apikeySchema,'), toFile('ving/schema/map.mjs')));
}

0 comments on commit 0c0e25a

Please sign in to comment.