Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
fix: define empty object as default for Ajv
Browse files Browse the repository at this point in the history
Otherwise the child properties will not be set as defaults! 鈿狅笍
  • Loading branch information
robertrossmann committed Jul 15, 2018
1 parent 73a3712 commit e9d85be
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/aws/src/service.mjs
Expand Up @@ -5,9 +5,11 @@ class AWS extends Service {
static config = {
type: 'object',
additionalProperties: false,
default: {},
properties: {
globals: {
type: 'object',
default: {},
properties: {
accessKeyId: { type: 'string' },
secretAccessKey: { type: 'string' },
Expand Down
1 change: 1 addition & 0 deletions packages/firebase/src/service.mjs
Expand Up @@ -5,6 +5,7 @@ class Firebase extends Service {
static config = {
type: 'object',
additionalProperties: false,
default: {},
properties: {
name: { type: 'string' },
databaseURL: { type: 'string' },
Expand Down
2 changes: 1 addition & 1 deletion packages/koa/src/context.mjs
Expand Up @@ -4,8 +4,8 @@ import { FrameworkError } from '@atlas.js/errors'
class ContextHook extends Hook {
static config = {
type: 'object',
default: {},
additionalProperties: false,
default: {},
properties: {
module: {
type: 'string',
Expand Down
1 change: 1 addition & 0 deletions packages/koa/src/server.mjs
Expand Up @@ -8,6 +8,7 @@ class KoaService extends Service {
static config = {
type: 'object',
additionalProperties: false,
default: {},
properties: {
middleware: {
type: 'object',
Expand Down
1 change: 1 addition & 0 deletions packages/koa/src/websocket.mjs
Expand Up @@ -16,6 +16,7 @@ class WebsocketHook extends Hook {
middleware: {
type: 'object',
additionalProperties: false,
default: {},
properties: {
module: {
type: 'string',
Expand Down
1 change: 1 addition & 0 deletions packages/mongoose/src/models.mjs
Expand Up @@ -4,6 +4,7 @@ class ModelsHook extends Hook {
static config = {
type: 'object',
additionalProperties: false,
default: {},
properties: {
module: {
type: 'string',
Expand Down
1 change: 1 addition & 0 deletions packages/mongoose/src/service.mjs
Expand Up @@ -5,6 +5,7 @@ class Mongoose extends Service {
static config = {
type: 'object',
additionalProperties: false,
default: {},
properties: {
uri: {
type: 'string',
Expand Down
2 changes: 2 additions & 0 deletions packages/repl/src/action.mjs
Expand Up @@ -9,6 +9,7 @@ class Repl extends Action {
static config = {
type: 'object',
additionalProperties: false,
default: {},
properties: {
historyFile: {
type: 'string',
Expand All @@ -29,6 +30,7 @@ class Repl extends Action {
newlines: {
type: 'object',
additionalProperties: false,
default: {},
properties: {
unix: {
type: 'string',
Expand Down
2 changes: 2 additions & 0 deletions packages/templates/src/action.mjs
Expand Up @@ -7,6 +7,7 @@ export default class Templates extends Action {
static config = {
type: 'object',
additionalProperties: false,
default: {},
properties: {
templates: {
type: 'string',
Expand All @@ -22,6 +23,7 @@ export default class Templates extends Action {
},
locals: {
type: 'object',
default: {},
properties: {
cache: {
type: 'boolean',
Expand Down

0 comments on commit e9d85be

Please sign in to comment.