Hi Varun
You have highlighted a more general issue in the documentation for JSON schema. The "description" attribute with a basic JSON type describes the property. However, when the property is a non-basic type, i.e. "$ref", then any other attributes on the property are ignored, including the "description", since the understanding is that "description" is taken from the referred schema. In your example, the schema for "OrderPrice". See this github issue in JSON schema for a discussion: https://github.com/json-schema-org/json-schema-spec/issues/239
Although our asset-generating tooling ignores the ignore directive and has honored "description" field on "$ref" properties, nevertheless API designers have not always provided a description.
And now to your specific query - OrderPrice is derived from an instantiation of ProductOfferingPrice (from the catalog). So if an order item instantiates a ProductOffering that has multiple ProductOfferingPrice, you would expect to see corresponding itemPrice for each ProductOfferingPrice.
The itemTotalPrice is supposed to aggregate the total prices from all order items contained in this order item, and there will be one itemTotalPrice for each price type (recurring and onetime).
Hope the above makes sense.
------------------------------
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.
------------------------------