we would convert metadata file into openapi spec using an XSL style sheet to work around with out existing code that generates integrations using openapi related libs.
But the graph odata metadata(https://graph.microsoft.com/v1.0/$metadata) does not look to have valid xml contents(annotation tag’s String attribute has special chars like <,& and ” etc..) Because of which, the conversion from metadata to openapi is failing citing invalid xml.
Any inputs as to how to overcome this? using Odata specific librares such as Olingo to read the metdata contents would be the second option in my list. Please suggest.
Escaping the values of Annotaion tag’s String attribute does not seem to be working cause there are dobule quotes in its value in the middle of the text.
Olingo seems to be parsing the contents fine. Not sure if it ignores the ‘valid’ity of the xml contents for EDM files or what?
shivakanth dacharaju is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.