Skip to content

New valid JSON templates throw 422 Unprocessable Entity error #11

Open
@eballeste

Description

@eballeste

Hi! I've been using this library for years now (thank you) and unfortunately, for some reason, cannot get it to work when trying to upload new Online Store 2.0 JSON template files. It always results in a 422 Unprocessable Entity error.

{
  "layout": "fall-winter-2021",
  "sections": {
    "main": {
      "type": "hero-big-headline"
    }
  },
  "order": [
    "main"
  ]
}

The layout file also exists, the section file hero-big-headline exists, and also saving the same code via the theme's code editor saves just fine. Is it because this lib is expecting these files to be liquid files? Any idea how to spit out the exact error that is causing the error to be triggered? Thanks for any help you might be able to offer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions