Ich möchte certificate
und privateKey
definieren, wenn secure
Flag auf True gesetzt ist. Ist das möglich?Eine optionale Option erforderlich machen, wenn eine andere im JSON-Schema definiert wird
{
type: 'object',
properties: {
'secure': {
title: 'Serve files over HTTPS',
description: 'Flag telling whether to serve contents over HTTPS and WSS',
type: 'boolean',
default: false
},
'certificate': {
title: 'Certificate file',
description: 'Location of the certificate file',
type: 'string'
},
'privateKey': {
title: 'Private key file',
description: 'Location of the private key file',
type: 'string'
}
}