Hi Uma
The correct type for
Error.code is indeed
string, and that's how it is generated into all the swagger files.
But your confusion is understandable. For historical reasons, the Error.schema.json file is
not used when Open API swaggers are generated. Instead the Error definition in the swagger is constructed from strings embedded within the tooling.
I hope that this will be corrected going forward in a new version of the tooling. In the meantime I am correcting the Error schema so that it matches what is actually generated.
Thanks for calling this problem out.
------------------------------
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.
------------------------------
Original Message:
Sent: Jan 26, 2021 23:01
From: Uma Lakshman
Subject: Data Model For Error Schema
Hi there ,
Looking for clarification related to the Error schema .
As per the Error Schema , Error. code is of type integer .
But in example , it is shown as string .
In 630 Part 1 Guideline also , the example has the code as string
Please confirm what should be the right type for Error.code.
cc: @Rati Mehrotra
Thanks & Regards,
------------------------------
Uma Lakshman
Telstra Corporation
------------------------------