Fix schema.
This commit is contained in:
parent
45681e645b
commit
97e0a983f1
@ -24,12 +24,13 @@ export const configurationSchema = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
additionalProperties: true,
|
additionalProperties: false,
|
||||||
required: ['address']
|
required: ['address']
|
||||||
},
|
},
|
||||||
|
|
||||||
transport: {
|
transport: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
|
||||||
properties: {
|
properties: {
|
||||||
host: {
|
host: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -43,30 +44,43 @@ export const configurationSchema = {
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
description: 'whether the connection should use SSL'
|
description: 'whether the connection should use SSL'
|
||||||
},
|
},
|
||||||
auth: {
|
|
||||||
type: 'object',
|
|
||||||
properties: {
|
|
||||||
user: {
|
|
||||||
type: 'string',
|
|
||||||
description: 'name to use to authenticate'
|
|
||||||
},
|
|
||||||
pass: {
|
|
||||||
type: 'string',
|
|
||||||
description: 'password to use to authenticate'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
additionalProperties: true,
|
// FIXME: xo-web does not support edition of too nested
|
||||||
required: ['user', 'pass']
|
user: {
|
||||||
|
type: 'string',
|
||||||
|
description: 'name to use to authenticate'
|
||||||
},
|
},
|
||||||
|
pass: {
|
||||||
|
type: 'string',
|
||||||
|
description: 'password to use to authenticate'
|
||||||
|
}
|
||||||
|
// properties.
|
||||||
|
// auth: {
|
||||||
|
// type: 'object',
|
||||||
|
|
||||||
additionalProperties: true
|
// properties: {
|
||||||
}
|
// user: {
|
||||||
|
// type: 'string',
|
||||||
|
// description: 'name to use to authenticate'
|
||||||
|
// },
|
||||||
|
// pass: {
|
||||||
|
// type: 'string',
|
||||||
|
// description: 'password to use to authenticate'
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
|
||||||
|
// additionalProperties: false,
|
||||||
|
// required: ['user', 'pass']
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
|
||||||
|
additionalProperties: false,
|
||||||
|
required: ['host', 'user', 'pass']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
additionalProperties: true,
|
additionalProperties: false,
|
||||||
required: ['host', 'auth']
|
required: ['transport']
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user