Service Virtualization

 View Only
  • 1.  How to convert JSON swaggers to YAML

    Posted Dec 17, 2018 07:38 AM

    Hi All,

     

    I am working on converting json swaggers to corresponding yaml, however while doing so, using java, i am facing issues with incorrect indentation and hence yaml validation is failing. Is there a way i can get the yaml format for a json file, using any feature in DevTest 10.X?



  • 2.  Re: How to convert JSON swaggers to YAML

    Broadcom Employee
    Posted Dec 28, 2018 11:35 AM

    Are you trying to do this in a TestCase or VSE ?  



  • 3.  Re: How to convert JSON swaggers to YAML

    Broadcom Employee
    Posted Jan 02, 2019 11:49 AM

    I found a couple of links to convert JSON to YAML:

     

    https://codebeautify.org/json-to-yaml

    Convert JSON to YAML 

    How do I convert from YAML to JSON in Java? - Stack Overflow 

     

    Let me know if this helps.