Hi António
You can see that regular Swagger from GitHub
https://github.com/tmforum-apis/TMF620_ProductCatalog is uploaded in March 2018, and "TMF620_Product_Catalog_Management_API_REST_Specification_R17.5.0" created in January 2018. So, Swagger file is more relevant in my view.
Document ProductOfferingPrice contains a
"Price" object, which consist of
taxIncludedAmount,
dutyFreeAmount,
taxRate and
percentage attributes (See the screenshot in attachments).
Swagger file ProductOfferingPrice has a "
tax" collection.
"tax": {
"type": "array",
"items": {
"$ref": "#/definitions/Tax"
}
}
"Tax": {
"type": "object",
"description": "An amount of money levied on the price of a Product by a legislative body.",
"properties": {
"taxAmount": {
"$ref": "#/definitions/Money",
"description": "tax amount"
},
"taxCategory": {
"$ref": "#/definitions/Money",
"description": "A categorization of the tax rate."
},
"taxRate": {
"type": "number",
"format": "float",
"description": "Tax rate"
}
}
And ProductOfferingPrice has no more
"Price" object.
I think you should follow the Swagger file. Also I create Swagger version control in my project to help track changes in Swaggers.
------------------------------
Artyom Valeev
Mobile TeleSystems OJSC
------------------------------