Skip to content

Add a validation message for an invalid decoder#487

Merged
natecook1000 merged 1 commit into
apple:mainfrom
natecook1000:diagnose_bad_decoder
Sep 9, 2022
Merged

Add a validation message for an invalid decoder#487
natecook1000 merged 1 commit into
apple:mainfrom
natecook1000:diagnose_bad_decoder

Conversation

@natecook1000
Copy link
Copy Markdown
Member

If a ParsableArguments type doesn't implement init(from:) correctly, it isn't decodable by the parser. This improves the validation failure message for such types.

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

If a ParsableArguments type doesn't implement init(from:) correctly,
it isn't decodable by the parser. This improves the validation
failure message for such types.
@natecook1000
Copy link
Copy Markdown
Member Author

@swift-ci Please test

@natecook1000 natecook1000 merged commit 09106ba into apple:main Sep 9, 2022
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