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

fix: fix handling of URI variables #82

Merged
merged 2 commits into from
Dec 19, 2023
Merged

fix: fix handling of URI variables #82

merged 2 commits into from
Dec 19, 2023

Conversation

JKRhb
Copy link
Member

@JKRhb JKRhb commented Dec 19, 2023

So far, URI variables have not been handled correctly, leading to an error if an "optional" URI variable was defined for an interaction afordance (i.e., no DataSchema was provided for its usage) and the value was provided for the URI variable in question.

This aspect needs to be revisited in later PRs (and better covered by tests), but for now, this PR makes it possible to interact with the node-wot counter example (again).

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (c33be91) 52.33% compared to head (3c1a0b1) 52.49%.

Files Patch % Lines
lib/src/definitions/form.dart 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #82      +/-   ##
==========================================
+ Coverage   52.33%   52.49%   +0.16%     
==========================================
  Files          69       69              
  Lines        2188     2185       -3     
==========================================
+ Hits         1145     1147       +2     
+ Misses       1043     1038       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This currently a workaround that requires a proper reimplementation.
@JKRhb JKRhb marked this pull request as ready for review December 19, 2023 08:33
@JKRhb JKRhb enabled auto-merge December 19, 2023 08:33
@JKRhb JKRhb merged commit 3be4625 into main Dec 19, 2023
4 checks passed
@JKRhb JKRhb deleted the fix-uri-variables branch December 19, 2023 08:34
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.

2 participants