Skip to content

Commit 414fa35

Browse files
author
Ivan Dlugos
committed
supported annotations - order alphabetically
1 parent 6ec9a9f commit 414fa35

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

internal/generator/c/schema-reader.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ import (
3131
)
3232

3333
var supportedEntityAnnotations = map[string]bool{
34-
"transient": true,
3534
"name": true,
36-
"uid": true,
3735
"relation": true, // to-many, standalone
3836
"sync": true,
37+
"transient": true,
38+
"uid": true,
3939
}
4040

4141
var supportedPropertyAnnotations = map[string]bool{
42-
"transient": true,
4342
"date": true,
4443
"date-nano": true,
4544
"id": true,
45+
"id-companion": true,
4646
"index": true,
47-
"relation": true, // to-one
4847
"name": true,
48+
"optional": true,
49+
"relation": true, // to-one
50+
"transient": true,
4951
"uid": true,
5052
"unique": true,
51-
"id-companion": true,
52-
"optional": true,
5353
}
5454

5555
// fbSchemaReader reads FlatBuffers schema and populates a model

internal/generator/go/ast-reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ type uid = uint64
3838
type id = uint32
3939

4040
var supportedEntityAnnotations = map[string]bool{
41-
"transient": true,
4241
"name": false, // TODO
43-
"uid": true,
4442
"sync": true,
43+
"transient": true,
44+
"uid": true,
4545
}
4646

4747
var supportedPropertyAnnotations = map[string]bool{

0 commit comments

Comments
 (0)