Repository navigation
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
- Coverage 89.01% 88.97% -0.05%
==========================================
Files 13 13
Lines 1812 1832 +20
==========================================
+ Hits 1613 1630 +17
- Misses 142 144 +2
- Partials 57 58 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hi @HARDY8118 Thanks for the idea. I don't see any harm having the nested (yet). And wondering from user experience, will this okay? As you can see from the issue, people expect it differently 🤔 |
|
Hi @bxcodec As I mentioned initially in the PR, the idea is still a work in progress, I created this PR to get some initial thoughts on the overall idea of having such feature. As you can notice from the code change, currently I have implemented the changes just for slice of strings just to get some comments on the idea and have a discussion about it (while we are discussing on this PR I am drafting some more changes and adding tests for more use cases). From user experience standpoint I think this is am okayish approach as it clearly defines what the user expects in both the contexts, first being from the context of slice (properties like However I would love to hear from you and others as well on what can be done better for improving the user experience. |
|
@rubemlrm any opinion from your side? |
As pointed out in the issue #37 (faker slice of urls don't work), struct fields do not support faker tags for the underlying field data type in case of slices. Taking a subsection of the mentioned issue
In the above code taken from issue #37 the
Urisslice will not take into account theurltag.For the mentioned issue, I suggest an extension to the faker struct tags syntax to allow nested tags with following syntax:
The PR is still a work in progress but I would like to hear more and discuss on the idea of using nested tags.