Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Config.json data is generated for the relevant Array schema Locally #79

Open
Casdak7 opened this issue Dec 30, 2021 · 1 comment
Open

Comments

@Casdak7
Copy link

Casdak7 commented Dec 30, 2021

When we utilize an array in the schema.json, the relevant config is not generated and therefore no data is produced and is not available locally. When we publish it to the store, everything works correctly, but this is a problem for local development, as we cannot preview the html that uses array data locally.

Has anyone found this problem as well or am I misunderstanding something?

Thanks in advance!

@darrenbelding
Copy link

Hi @Casdak7, I initially experienced some issues around config.json data as well. I cannot speak specifically about your widget(s) but hopefully the following is helpful to you:

  • Block config data for arrays is generated based on the defaultCount attribute specified in your schema
  • Only properties with default values will be added to the resulting config.json. Both the key needs to exist and it be a truthy value i.e. "default": "" or "default": false will not lead to the property being added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants