Skip to content

Expected type string but found type integer #350

@puneetakhouri

Description

@puneetakhouri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions