Skip to content

Use of AdministrableProductProperty text and quantity #692

@ASL-rmarshall

Description

@ASL-rmarshall

In AdministrableProductProperty, the text attribute is required and the quantity attribute is optional. This means that you always have to provide a text value, even if the property value is a quantity. Should text be made optional with a rule indicating that a value is expected for either text or quantity?

This question was raised in this comment (3rd to last bullet), but was not addressed.

Currently, the only defined terminology for AdministrableProductProperty.type is "pH". As it's a number, I assume the value for the "pH" property would be represented as in quantity.value without a unit. However, for the instance to be valid, the number would also have to be represented in text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions