Hi Saurabh
I'm not sure I fully understand the issue. We have a number of compound data types in the Open API model (these are not sub-resources), such as Money, Duration, TimePeriod, Quanity, and more, to cover data type gaps in the JSON Schema standard.
In ProductTerm (and ProductOfferingTerm at catalog), if the commitment term is a length in time, we want to express the length of time by giving the amount and the units, hence the Duration type. For example; for a term of 2 years, the amount would be
2 and the units would be
years.
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------