Skip to content

Commit

Permalink
fix: missing array as non-primitive type (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Mar 7, 2024
1 parent 77b9402 commit 19a824b
Show file tree
Hide file tree
Showing 3 changed files with 2,739 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/engines/zod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ fn is_primitive_type(type2: &cddl::ast::Type2) -> bool {
type2,
cddl::ast::Type2::Typename { .. }
| cddl::ast::Type2::ParenthesizedType { .. }
| cddl::ast::Type2::Array { .. }
| cddl::ast::Type2::Map { .. }
| cddl::ast::Type2::Unwrap { .. }
| cddl::ast::Type2::ChoiceFromInlineGroup { .. }
Expand Down

0 comments on commit 19a824b

Please sign in to comment.