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

[NOTICE] Plan to deprecate and remove support for the unitPrefix attribute #282

Open
VisLab opened this issue Nov 11, 2024 · 0 comments
Open

Comments

@VisLab
Copy link
Member

VisLab commented Nov 11, 2024

The unixPrefix is an attribute of Unit indicating that the unit appears before the value. There is only one unit that has this attribute. It is the $ which has a unit class of currencyUnits. No tag in any existing schema has a unit class of currencyUnits so no existing tag can use this unit.

Proposal for 8.4.0:

  1. Create a new unit class called deprecatedUnits. Move $ under this from currencyUnits.
  2. Do not allow any future schemas to use any deprecatedUnits.
  3. Currently validators will treat using $5 as an error anyway because there won't be a valid unit class.
  4. Future validators will flag the value as invalid if the value is expected to be numeric.
  5. Users can still use 5 dollars as a value for items that have unit class currencyUnits.

This is a request for comments on this proposal. We will need to add some additional data value tags to allow currency.

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

1 participant