Skip to content

Commit aa93e09

Browse files
committed
test: fixed failing test
1 parent 6273a38 commit aa93e09

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/schema_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type SchemaOptions struct {
1717
}
1818

1919
type Field struct {
20-
Type reflect.Kind // Type of the field. Can be any of the reflect.Kind types, or any of the aliases defined in the elemental package such as elemental.ObjectID or a custom reflected type
20+
Type reflect.Kind // Type of the field. Can be of reflect.Kind, an alias defined within elemental such as elemental.String or a custom reflection
2121
Schema *Schema // Defines a subschema for the field if it is a subdocument
2222
Required bool // Whether the field is required or not when creating a new document
2323
Default any // Default value for the field when creating a new document

tests/fixtures/fixtures.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var BestiaryModel = elemental.NewModel[Bestiary]("Bestiary", elemental.NewSchema
141141
Ref: "Monster",
142142
},
143143
"Kingdom": {
144-
Type: elemental.ObjectID,
144+
Type: elemental.Struct,
145145
Ref: "Kingdom",
146146
},
147147
}, elemental.SchemaOptions{

0 commit comments

Comments
 (0)