Skip to content

feat: smithy for virtual fields #71

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

Merged
merged 8 commits into from
Mar 27, 2023
Merged

feat: smithy for virtual fields #71

merged 8 commits into from
Mar 27, 2023

Conversation

ajewellamz
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ajewellamz ajewellamz requested a review from lavaleri March 24, 2023 22:00
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 24, 2023 22:00 — with GitHub Actions Inactive
Comment on lines 227 to 232
structure VirtualTransform {
@required
transform : Transform,
numbers : NumberList,
strings : StringList,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The other way to model this would be via a union:

union Transform {
  upper: Upper(),
  lower: Lower(),
  insert: Insert(string str),
  prefix: Prefix(int len),
  suffix: Suffix(int len),
  substring: Substring(int start, int end),
  ...
  
}

I think this is the more "correct" way to model this, as we can exactly express the inputs to each transform.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree completely.

@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz temporarily deployed to ESDK CI March 27, 2023 19:06 — with GitHub Actions Inactive
@ajewellamz ajewellamz merged commit ce43443 into main Mar 27, 2023
@ajewellamz ajewellamz deleted the virtual-smithy branch March 27, 2023 19:42
seebees pushed a commit that referenced this pull request Mar 27, 2023
* feat: smithy for virtual fields

* use union for Transform

* zero-based plus GetSegments
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