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

[enhancement] Support Unit Conversions for All Data Types #23

Open
1 of 5 tasks
wilyle opened this issue Jul 27, 2023 · 0 comments
Open
1 of 5 tasks

[enhancement] Support Unit Conversions for All Data Types #23

wilyle opened this issue Jul 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@wilyle
Copy link
Contributor

wilyle commented Jul 27, 2023

Description

Support conversions for all relevant data types. Currently a conversion is only supported when the data type can be parsed as f32. Note that this may require additional work to handle other data types, as currently all data are read as a string

Acceptance criteria

Conversions should be supported for the following DTDL schema types:

  • double (f64)
  • float (f32)
  • integer (i32)
  • long (i64)
  • Array with elementSchema in the above list

The following types will not support conversions by design:

  • boolean
  • date
  • dateTime
  • duration
  • string
  • time
  • Array with an unsupported elementSchema
  • Enum
  • Map
  • Object
  • Geospatial schemas

Note: these two lists encompass all of the schemas supported by DTDL v3, so the above lists are complete

@wilyle wilyle added the enhancement New feature or request label Jul 27, 2023
@wilyle wilyle changed the title [enhancement] [enhancement] Support Unit Conversions for All Data Types Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant