Skip to content

Commit

Permalink
Fix field selection validation
Browse files Browse the repository at this point in the history
  • Loading branch information
DZakh authored and JasoonS committed Dec 19, 2024
1 parent ef5f438 commit 4ef63a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codegenerator/cli/npm/envio/src/Utils.res
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ module Schema = {
items->Js.Array2.forEach(item => {
switch item.schema->S.classify {
// Check for null, since we generate S.null schema for db serializing
// In the future it should be changed to Option
// In the future it should be changed to Option only
| Null(_) => ()
| Option(_) => ()
| _ => acc->Js.Array2.push(item.location)->ignore
}
})
Expand Down

0 comments on commit 4ef63a7

Please sign in to comment.