Skip to content

Commit

Permalink
Fix schema type conversion for extension types
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Palacios <accorell@amazon.com>
  • Loading branch information
adpaco-aws committed Mar 6, 2025
1 parent a33231a commit 16f8f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cedar-policy-generators/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ fn schematype_to_type(
json_schema::TypeVariant::Extension { name } => match name.as_ref() {
"ipaddr" => Type::ipaddr(),
"decimal" => Type::decimal(),
"datetime" => Type::decimal(),
"duration" => Type::decimal(),
"datetime" => Type::datetime(),
"duration" => Type::duration(),
_ => panic!("unrecognized extension type: {name:?}"),
},
},
Expand Down

0 comments on commit 16f8f69

Please sign in to comment.