Make keys optional
This commit is contained in:
parent
f09bfe9db3
commit
c3c65493b7
4 changed files with 10 additions and 10 deletions
|
|
@ -3,6 +3,6 @@ amends "pkl:Project"
|
|||
package {
|
||||
name = "emgauwa"
|
||||
baseUri = "package://emgauwa.app/pkl/\(name)"
|
||||
version = "0.2.2"
|
||||
version = "0.2.3"
|
||||
packageZipUrl = "https://emgauwa.app/pkl/\(name)@\(version).zip"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ module emgauwa.controller
|
|||
|
||||
import "./common.pkl"
|
||||
|
||||
server: common.ServerConfig
|
||||
server: common.ServerConfig?
|
||||
|
||||
database: String
|
||||
|
||||
permissions: common.PermissionsConfig
|
||||
permissions: common.PermissionsConfig?
|
||||
|
||||
logging: common.LoggingConfig
|
||||
logging: common.LoggingConfig?
|
||||
|
||||
midnight: String(matches(Regex(#"([01]?[0-9]|2[0-3]):[0-5][0-9]"#)))
|
||||
midnight: String(matches(Regex(#"([01]?[0-9]|2[0-3]):[0-5][0-9]"#)))?
|
||||
|
||||
class RelayConfig {
|
||||
number: Number
|
||||
|
|
|
|||
8
core.pkl
8
core.pkl
|
|
@ -2,13 +2,13 @@ module emgauwa.core
|
|||
|
||||
import "./common.pkl"
|
||||
|
||||
server: common.ServerConfig
|
||||
server: common.ServerConfig?
|
||||
|
||||
database: String
|
||||
|
||||
permissions: common.PermissionsConfig
|
||||
permissions: common.PermissionsConfig?
|
||||
|
||||
logging: common.LoggingConfig
|
||||
logging: common.LoggingConfig?
|
||||
|
||||
/// Leave empty to allow all origins (will always respond with Origin and not "*")
|
||||
origins: Listing<String>
|
||||
origins: Listing<String>?
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
amends "pkl:DocPackageInfo"
|
||||
|
||||
name = "Emgauwa"
|
||||
version = "0.2.2"
|
||||
version = "0.2.3"
|
||||
importUri = "https://emgauwa.app/"
|
||||
|
||||
sourceCode = "https://git.serguzim.me/emgauwa/pkl"
|
||||
|
|
|
|||
Loading…
Reference in a new issue