Skip to content

Import multiple asset folder of images #252

@KulakovaE

Description

@KulakovaE

Hi,
This is more of a question about support rather than an issue.

Currently, we import icons and images, and we received a request to import another group of images called "shapes." We’re setting it up as follows:

icons:
    format: pdf
    assetsFolder: Icons
    nameStyle: camelCase
    preservesVectorRepresentation:
    - regularUser
    imageSwift: "-path-"

  images:
    illustrations:
      assetsFolder: Illustrations
      nameStyle: camelCase
      figmaFrameName: Illustrations
      imageSwift: "-path-"

    shapes:
      assetsFolder: Shapes
      format: pdf
      nameStyle: camelCase
      figmaFrameName: Shapes
      nameValidateRegexp: '^shape[/a-z0-9_]*$'
      imageSwift: "-path-"

We initially tried structuring "illustrations" and "shapes" as a list, but this caused parsing issues when exporting icons, which seemed unexpected.
The error we get:

typeMismatch(Yams.Node.Mapping, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "ios", intValue: nil), CodingKeys(stringValue: "images", intValue: nil)], debugDescription: "Expected to decode Mapping but found Node instead.", underlyingError: nil))

Do you know how we can resolve this? Any insights would be greatly appreciated!

Thanks,
Elena

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