Issue: Validation error when using multiple images in frontmatter #769

Closed
opened 2026-10-05 03:04:30 +02:00 by adam · 6 comments
Owner

Describe the bug

I am using multiple images for by blogposts, well I use "images": [], however the validation states Field 'images' must be of type string. Is this an error, or me doing something wrong.

This is the used frontmatter (I do not use image:

images:
  - img/image_5851.webp
  - img/image_5857.webp

I use this setting in the frontmatter.json

{
  "title": "Images",
  "name": "images",
  "type": "image",
  "default": [],
  "multiple": true,
  "isPreviewImage": true
},

To Reproduce
Steps to reproduce the behavior:

  1. Add the following to a post frontmatter:
images:
  - img/image_5851.webp
  - img/image_5857.webp

Expected behavior
validating / allowing multiple images

Screenshot

Image

--Jesper

**Describe the bug** I am using multiple images for by blogposts, well I use "images": [], however the validation states `Field 'images' must be of type string`. Is this an error, or me doing something wrong. This is the used frontmatter (I do not use `image`: ``` images: - img/image_5851.webp - img/image_5857.webp ``` I use this setting in the frontmatter.json ``` { "title": "Images", "name": "images", "type": "image", "default": [], "multiple": true, "isPreviewImage": true }, ``` **To Reproduce** Steps to reproduce the behavior: 1. Add the following to a post frontmatter: ``` images: - img/image_5851.webp - img/image_5857.webp ``` **Expected behavior** validating / allowing multiple images **Screenshot** <img width="534" height="84" alt="Image" src="https://github.com/user-attachments/assets/cdfde033-175b-4616-8815-9393dca43197" /> --Jesper <!-- github-sync-id:4217122793 -->
adam closed this issue 2026-10-05 03:04:30 +02:00
Author
Owner

I also experiencing keywords as matched against tags and categories, is this by design?

I also experiencing `keywords` as matched against `tags` and `categories`, is this by design? <!-- github-comment-id:4198507237 -->
Author
Owner

This might be due to the new validator. You can temporarily disable it by setting the frontMatter.validation.enabled to false.

This might be due to the new validator. You can temporarily disable it by setting the `frontMatter.validation.enabled` to `false`. <!-- github-comment-id:4199399175 -->
Author
Owner

I also experiencing keywords as matched against tags and categories, is this by design?

How is your keywords field configured?

> I also experiencing keywords as matched against tags and categories, is this by design? How is your `keywords` field configured? <!-- github-comment-id:4199444685 -->
Author
Owner

In the latest BETA version of the extension, the image field issue should have been solved.

In the latest BETA version of the extension, the image field issue should have been solved. <!-- github-comment-id:4199477032 -->
Author
Owner

I also experiencing keywords as matched against tags and categories, is this by design?

How is your keywords field configured?

Uhh, I have actually added the error my self, as the Keywords is type: tag, I have changes to List, and everything is working, sorry!!

> > I also experiencing keywords as matched against tags and categories, is this by design? > > How is your `keywords` field configured? Uhh, I have actually added the error my self, as the Keywords is type: tag, I have changes to List, and everything is working, sorry!! <!-- github-comment-id:4205834846 -->
Author
Owner

Released in the main version 10.10.1

Released in the main version 10.10.1 <!-- github-comment-id:4311616777 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#769