Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better errors for schema merging #607

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
5 changes: 4 additions & 1 deletion typify-impl/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@ impl TypeSpace {
Ok((type_entry, &None))
}

Err(_) => self.convert_never(type_name, original_schema),
Err(e) => {
debug!("failed to merge schemas in convert_schema_object: {:#?}", e);
self.convert_never(type_name, original_schema)
}
}
}

Expand Down
Loading