Skip to content

Ruby model syntax error #242

@xhh

Description

@xhh

As shown in the petstore sample:

if self.class.attribute_map[:"photo_urls"]
  if (value = attributes["photoUrls"]).is_a?(Array)
      @photo_urls = valueend # <=== the "end" keyword concatenates with "value"
  end

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