Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
noisersup committed Oct 21, 2022
1 parent d44d9df commit e6dbbe2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/types/document_validation.go
Expand Up @@ -40,6 +40,8 @@ func (e *ValidationError) Error() string {
func (d *Document) ValidateData() error {
var idPresent bool

// TODO: make sure that `_id` is the first item in the map
//
// The following block should be used to checks that keys are valid.
// All further key related validation rules should be added here.
for _, key := range d.keys {
Expand Down

0 comments on commit e6dbbe2

Please sign in to comment.