Skip to content

Not able to parse if default attribute is an array #387

@buffe

Description

@buffe

The parser failing to parse the default attribute of a parameter if its an array.

e.g:

      {
          "name" : "status",
          "in" : "query",
          "description" : "Csv of user status for which the search is done. Default is Approved and Active.",
          "required" : false,
          "type" : "array",
          "default" : [ "Approved", "Active" ],
          "items" : {
            "type" : "string",
            "enum" : [ "Approved", "Active" , "New"]
          }

after parsing the object will show null value for the default attribute of the query parameter.

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