tangled
alpha
login
or
join now
bnewbold.net
/
user-intents
6
fork
atom
this repo has no description
6
fork
atom
overview
issues
pulls
pipelines
fix allow/value typo
bnewbold.net
7 months ago
c68c40e7
3200ad30
+6
-6
3 changed files
expand all
collapse all
unified
split
declaration.go
lexicons
org.user-intents
demo
declaration.json
main.go
+1
-1
declaration.go
···
16
16
}
17
17
18
18
type DeclarationIntent struct {
19
19
-
Value *bool `json:"value,omitempty"`
19
19
+
Allow *bool `json:"allow,omitempty"`
20
20
UpdatedAt string `json:"updatedAt"`
21
21
}
22
22
+1
-1
lexicons/org.user-intents/demo/declaration.json
···
42
42
"type": "object",
43
43
"required": ["updatedAt"],
44
44
"properties": {
45
45
-
"value": {
45
45
+
"allow": {
46
46
"type": "boolean",
47
47
"description": "indicates user intent for reuse. Note that this field is optional, and thus tri-state (true, false, undefined)"
48
48
},
+4
-4
main.go
···
301
301
Type: "org.user-intents.demo.declaration",
302
302
UpdatedAt: now,
303
303
SyntheticContentGeneration: &DeclarationIntent{
304
304
-
Value: parseTriState(r.PostFormValue("syntheticContentGeneration")),
304
304
+
Allow: parseTriState(r.PostFormValue("syntheticContentGeneration")),
305
305
UpdatedAt: now,
306
306
},
307
307
PublicAccessArchive: &DeclarationIntent{
308
308
-
Value: parseTriState(r.PostFormValue("publicAccessArchive")),
308
308
+
Allow: parseTriState(r.PostFormValue("publicAccessArchive")),
309
309
UpdatedAt: now,
310
310
},
311
311
BulkDataset: &DeclarationIntent{
312
312
-
Value: parseTriState(r.PostFormValue("bulkDataset")),
312
312
+
Allow: parseTriState(r.PostFormValue("bulkDataset")),
313
313
UpdatedAt: now,
314
314
},
315
315
ProtocolBridging: &DeclarationIntent{
316
316
-
Value: parseTriState(r.PostFormValue("protocolBridging")),
316
316
+
Allow: parseTriState(r.PostFormValue("protocolBridging")),
317
317
UpdatedAt: now,
318
318
},
319
319
}