Skip to content

Adds support for multiple errors from the resolver #247

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

Open
wants to merge 2 commits into
base: dev-1.0.0
Choose a base branch
from

Conversation

popematt
Copy link
Contributor

Issue #, if available:

#228

Description of changes:

Builds on the work in #246, making the resolve function able to report multiple problems in the schemas that are being resolved.

As an example, here are the errors reported in multiple_errs_can_be_reported test case:

my_schema.isl:5:9 > target type not found for type reference 'bar'
my_schema.isl:7:1 > type 'foo' is defined multiple times
my_schema.isl:9:9 > target type not found for type reference 'baz'

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -111,9 +111,9 @@ impl TypeDefinitionBuilder<ISL_2_0> {
///
/// # Arguments
/// * `modifier` - An [`AnnotationsV2Modifier`] that specifies how the annotations should be applied
/// (e.g., required, closed, or both)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪧 This was a clippy suggestion.

@popematt popematt requested a review from desaikd April 17, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant