-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
8.15.6 - ExtendedBounds -> ExtendedBoundsDate needs implicit convertors for anchored DateTime #8338
Comments
Hi @niemyjski, this is actually a bug in the code generator. export type FieldDateMath = DateMath | double The correct output declaration should be: public sealed partial class FieldDateMath : Union<DateMath, double>
{
public FieldDateMath(DateMath expr) : base(expr) { }
public FieldDateMath(double value) : base(value) { }
} ^ This would at least allow you to initialize the Currently, public sealed partial class FieldDateMath : Union<string, double>
{
public FieldDateMath(string Expr) : base(Expr) { }
public FieldDateMath(double Value) : base(Value) { }
} |
Thanks! That would be great! |
Any idea when the code gen will be updated? I saw lots of code gen improvements in latest releases but this is still an issue. |
@niemyjski did you figure out what values to provide, or are you still stuck? |
I updated to the latest release and still had problems with the existing values. Was this addressed? |
@niemyjski no, I have the latest package. It's still broken. |
Elastic.Clients.Elasticsearch version: 8.15.6
Elasticsearch version: 8.15.1
.NET runtime version: 8.x
Operating system version: Any
Description of the problem including expected versus actual behavior:
We had the following code which is somewhat straightforward to convert but the FieldDateMath type seem to have a huge gap when it comes to working with DateTimes. It's not intuitive what I should pass to
new FieldDateMath()
.Expected behavior
Should be able to quickly do a bounds using dates.
Reference: FoundatioFx/Foundatio.Parsers#84
The text was updated successfully, but these errors were encountered: