Using yamlbeans-1.09.jar to convert my Java objects into yml. For the specific case of creating tag swagger: 2.0, I enter it as a string in my Map in Java like the other objects, all the other objects are rendered without any problem except for this tag wherein it gives the following two errors:
-Expected type string but found type integer
-No enum match for: 2
All the other variables are picked up fine except for the version where it identifies the String as integer and I have no clue why. While validating the yml using www.yamllint.com, it turns out to be valid but does not work here. Any help or leads will be appreciated.
Using yamlbeans-1.09.jar to convert my Java objects into yml. For the specific case of creating tag swagger: 2.0, I enter it as a string in my Map in Java like the other objects, all the other objects are rendered without any problem except for this tag wherein it gives the following two errors:
-Expected type string but found type integer
-No enum match for: 2
All the other variables are picked up fine except for the version where it identifies the String as integer and I have no clue why. While validating the yml using www.yamllint.com, it turns out to be valid but does not work here. Any help or leads will be appreciated.