mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-08-10 18:19:55 +02:00
with proper optional types
This commit is contained in:
@@ -32,8 +32,8 @@ pub fn is_input_object_type(t: &FullType) -> bool {
|
||||
|
||||
pub fn is_required_type(t: &FullTypeInputFields) -> bool {
|
||||
match t.input_value.type_.kind {
|
||||
Some(__TypeKind::NON_NULL) => return false,
|
||||
Some(_) => return true,
|
||||
Some(__TypeKind::NON_NULL) => return true,
|
||||
Some(_) => return false,
|
||||
_ => return false,
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ pub fn is_required_type_ref(t: &TypeRef) -> bool {
|
||||
match t.kind {
|
||||
Some(__TypeKind::NON_NULL) => return true,
|
||||
Some(_) => return false,
|
||||
_ => return true,
|
||||
_ => return false,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user