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.
------------------------------