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

Add coerce and output format options for numeric fields #3704

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

guilload
Copy link
Member

@guilload guilload commented Aug 2, 2023

Description

  • Add coerce option to convert string values to numeric values for numerics fields by default.
  • Add output_format option to output numeric values as strings

I will update the doc when we agree on the spec.

How was this PR tested?

Add unit tests

@guilload guilload force-pushed the guilload/int-input-output-format branch from 3b7aec6 to 407f1cc Compare August 2, 2023 19:40
Copy link
Contributor

@fulmicoton fulmicoton left a comment

Choose a reason for hiding this comment

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

approved but need update on regression tests and doc I assume.

(I'm ok with this spec.)

@guilload guilload force-pushed the guilload/int-input-output-format branch from 407f1cc to dbcc041 Compare August 3, 2023 21:11
@guilload guilload marked this pull request as ready for review August 3, 2023 21:59
@guilload guilload merged commit 8c2caf5 into main Aug 3, 2023
3 checks passed
@guilload guilload deleted the guilload/int-input-output-format branch August 3, 2023 22:00
@guilload
Copy link
Member Author

guilload commented Aug 4, 2023

Maybe I should have named the parameter output_type instead of output_format. Opinions?

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