Skip to content

Commit

Permalink
Fix issue with parsing inner fields
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovai committed Nov 14, 2023
1 parent 0fda57d commit ef28bc0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engine/baml-lib/schema-ast/src/parser/parse_serializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ pub fn parse_serializer(
}
}
Rule::comment_block => pending_value_comment = Some(item),
_ => parsing_catch_all(&item, "serializer"),
Rule::BLOCK_LEVEL_CATCH_ALL => {
diagnostics.push_error(DatamodelError::new_validation_error(
"This line is not valid.",
diagnostics.span(item.as_span()),
))
}
_ => parsing_catch_all(&item, "serializer_content"),
}
}
}
Expand Down

0 comments on commit ef28bc0

Please sign in to comment.