Skip to content

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

@wilyle

Description

@wilyle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions