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

Support external input parsing in sdk-common #1143

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

danielgranhao
Copy link
Contributor

Needed for breez/breez-sdk-liquid#535.

Adds support for external parsers to sdk-common. The immediate need is to have this in the liquid SDK, but it would be nice to have it in the common parse implementation to make it easy to use in the greenlight version later.

@danielgranhao danielgranhao force-pushed the external-input-parsing branch 2 times, most recently from 8ec95f0 to 98e7994 Compare December 11, 2024 16:58
Copy link
Member

@roeierez roeierez left a comment

Choose a reason for hiding this comment

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

LGTM! added a small NIT.

) -> Result<InputType> {
for parser in external_input_parsers {
// Check regex
let re = Regex::new(&parser.input_regex).context("Couldn't parse regex")?;
Copy link
Member

Choose a reason for hiding this comment

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

NIT: perhaps also it is useful to add the provider_id to the error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added in 86ee6e0

Copy link
Collaborator

@dangeross dangeross left a comment

Choose a reason for hiding this comment

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

LGTM

@danielgranhao danielgranhao merged commit 20ec44c into main Dec 12, 2024
9 checks passed
@danielgranhao danielgranhao deleted the external-input-parsing branch December 12, 2024 10:18
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.

3 participants