You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering issues when using the reference type in configurations where the refContent generator is not of type date. Specifically, when refContent uses generators like enum, constant, or int with min and max, the following problems occur:
Field duplication behavior: In the generated JSON, the referenced field appears duplicated with the same value, while the original field name disappears.
Validation failure: Sometimes, the system throws an error claiming that refContent is empty, even though it is properly defined.
Problem Description
I am encountering issues when using the
reference
type in configurations where therefContent
generator is not of typedate
. Specifically, whenrefContent
uses generators likeenum
,constant
, orint
withmin
andmax
, the following problems occur:Field duplication behavior: In the generated JSON, the referenced field appears duplicated with the same value, while the original field name disappears.
Validation failure: Sometimes, the system throws an error claiming that
refContent
is empty, even though it is properly defined.Minimal Reproducible Example
Input Configuration
Configuration file sent to
mgodatagen
:Expected Output
Actual Output
Observed Errors
When
refContent
is not of typedate
,mgodatagen
produces the following error in some cases:In other cases, the generated JSON contains a duplicated field, and the original field is missing.
The text was updated successfully, but these errors were encountered: