Skip to content

Commit

Permalink
fix(generators): Generated app does not start when choosing JSON sche…
Browse files Browse the repository at this point in the history
…ma (#3034)
  • Loading branch information
w3cj authored Jan 31, 2023
1 parent 71942f4 commit 7b8250b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/generators/src/app/templates/configuration.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import type { FromSchema } from '@feathersjs/schema'
import { dataValidator } from './validators'
export const configurationSchema = {
$id: 'configuration',
type: 'object',
additionalProperties: false,
required: [ 'host', 'port', 'public' ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ${camelName}DataResolver = resolve<${upperName}Data, HookContext>({
})
// Schema for updating existing users
export const ${camelName}DataSchema = {
export const ${camelName}PatchSchema = {
$id: '${upperName}Patch',
type: 'object',
additionalProperties: false,
Expand Down

0 comments on commit 7b8250b

Please sign in to comment.