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

LambdaDslObject add support for LocalDate #1530

Open
starlight1985 opened this issue Apr 7, 2022 · 0 comments
Open

LambdaDslObject add support for LocalDate #1530

starlight1985 opened this issue Apr 7, 2022 · 0 comments

Comments

@starlight1985
Copy link

At this moment the Lambda DSL only supports Date's. From Java 7 and higher it is recommended to use LocalDate. You can convert LocalDate to Date but to do that every time isnt that pritty. Can this be added to the Lambda DSL?

It Can be as easy as:

public LambdaDslObject date(String name, String format, LocalDate example) { object.date(name, format, Date.from(example)); return this; }
but it can also be added in the PactDslJsonBody that there is a LocalDate attribute. Depends on how you want to add it

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

No branches or pull requests

3 participants