mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 04:24:43 -04:00
refactor(backend): config validation joi to zod
Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
91ebd519a8
commit
926f7a5e49
37 changed files with 1299 additions and 994 deletions
|
@ -67,11 +67,11 @@ describe('FrontendConfigService', () => {
|
|||
identifier: 'oidcTestIdentifier',
|
||||
providerName: 'oidcTestProviderName',
|
||||
issuer: 'oidcTestIssuer',
|
||||
clientID: 'oidcTestId',
|
||||
clientId: 'oidcTestId',
|
||||
clientSecret: 'oidcTestSecret',
|
||||
scope: 'openid profile email',
|
||||
userIdField: '',
|
||||
userNameField: '',
|
||||
usernameField: '',
|
||||
displayNameField: '',
|
||||
profilePictureField: '',
|
||||
emailField: '',
|
||||
|
@ -82,7 +82,7 @@ describe('FrontendConfigService', () => {
|
|||
const appConfig: AppConfig = {
|
||||
baseUrl: domain,
|
||||
rendererBaseUrl: 'https://renderer.example.org',
|
||||
port: 3000,
|
||||
backendPort: 3000,
|
||||
loglevel: Loglevel.ERROR,
|
||||
showLogTimestamp: false,
|
||||
persistInterval: 10,
|
||||
|
@ -182,7 +182,7 @@ describe('FrontendConfigService', () => {
|
|||
const appConfig: AppConfig = {
|
||||
baseUrl: domain,
|
||||
rendererBaseUrl: 'https://renderer.example.org',
|
||||
port: 3000,
|
||||
backendPort: 3000,
|
||||
loglevel: Loglevel.ERROR,
|
||||
showLogTimestamp: false,
|
||||
persistInterval: 10,
|
||||
|
@ -207,7 +207,7 @@ describe('FrontendConfigService', () => {
|
|||
},
|
||||
};
|
||||
const externalServicesConfig: ExternalServicesConfig = {
|
||||
plantUmlServer: plantUmlServer,
|
||||
plantumlServer: plantUmlServer,
|
||||
imageProxy: imageProxy,
|
||||
};
|
||||
const noteConfig: NoteConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue