Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-4274

Numeric constraint values generated as strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • None
    • None
    • None

      Import a VFC with a property like:

            int_with_greaterThanEqual5:
              type: integer
              required: false
              constraints:
              - greater_or_equal: 5
       

      Export the VFC. In the geneated tosca, the constraint value is represented as a string but should be an integer value:

            int_with_greaterThanEqual5:
              type: integer
              required: false
              constraints:
              - greater_or_equal: '5'
       

       

      Not the value type will not always be numeric, it depends on the type of the property. It should be an integer in this example because the property is an integer. It is the same problem for other types (e.g. float). If the property was a string then the behaviour is ok. 

      The same behaviour is seen for other constraints where the type of the value is dependent on the type of the property

            JvD_Ericsson JEFF VAN DAM
            JvD_Ericsson JEFF VAN DAM
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: