Skip to content

How to declare Array of complex object in the mdx frontmatter #3235

Closed Answered by delucis
ezzle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ezzle! Couple things here:

  1. Looks like your schema says that frametype must be frame, but in the frontmatter example it’s set to class, so that might be an issue.

  2. I think you maybe need to make sure there’s a space after each : in the object declarations of own_slot_value:

    - own_slot_value: [{slot_reference:":ROLE", value:[{value_type:"string", value_content: "Abstract"}]}]
    + own_slot_value: [{slot_reference: ":ROLE", value: [{value_type: "string", value_content: "Abstract"}]}]

By the way, we have a friendly Discord server if you’re looking for support in the future. We’d be happy to have you there! https://astro.build/chat

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ezzle
Comment options

Answer selected by delucis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants