git » gofer » commit 68843b7

etc: Update cue schema to the newer syntax

author Alberto Bertogli
2022-09-24 23:14:39 UTC
committer Alberto Bertogli
2022-10-07 10:59:37 UTC
parent 7b8885a648a8475afa6fc6849513a79861ae1f58

etc: Update cue schema to the newer syntax

The latest cue versions don't support the comparison with null, and a
comparison with _|_ must be used instead.

etc/gofer.schema.cue +4 -4

diff --git a/etc/gofer.schema.cue b/etc/gofer.schema.cue
index 4b4ba51..239d528 100644
--- a/etc/gofer.schema.cue
+++ b/etc/gofer.schema.cue
@@ -24,9 +24,9 @@ https?:
 
 #http: {
 	routes: [string]: {
-		dir?: string
-		file?: string
-		proxy?: string
+		dir?:      string
+		file?:     string
+		proxy?:    string
 		redirect?: string
 		cgi?: [string, ...string]
 		status?: int
@@ -39,7 +39,7 @@ https?:
 		}
 
 		// If diropts is set, then dir must be set too.
-		if diropts != null {
+		if diropts != _|_ {
 			dir: string
 		}