You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm enjoying json_expressions very much so far, but have a simple question (I hope!).
I have the following json for the home page of a store which I need to validate. At present, I am not sure how to specify that I want an array to be allowed to "repeat" 1 or more times. There are presently 12 entries, but there could easily be more or less.
Thanks for the feedback @matthew-bb! I think this is totally valid. I don't think there's an easy way to do this right now. If you just want match exactly N of these, it should be possible with:
Hello -
I'm enjoying json_expressions very much so far, but have a simple question (I hope!).
I have the following json for the home page of a store which I need to validate. At present, I am not sure how to specify that I want an array to be allowed to "repeat" 1 or more times. There are presently 12 entries, but there could easily be more or less.
{
title: "Shop Outdoor Gear",
categories: [
{
id: "3707807",
href: "/categories/3707807",
title: "Men's Clothing"
},
{
id: "3677318",
href: "/categories/3677318",
title: "Women's Clothing"
},
{...
Also, my pattern, in a very basic (albeit non-working) form:
Is there a way in which this can be accomplished? Thank you kindly in advance.
The text was updated successfully, but these errors were encountered: