Skip to content

Commit

Permalink
Relax the "name" requirement, but require oneOf "brand", "operator", …
Browse files Browse the repository at this point in the history
…"network"

(re: #4034, #3009, #3995)
  • Loading branch information
bhousel committed Sep 22, 2020
1 parent ac7b0a5 commit 124521a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion schema/entries.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
"note": { "not" : {} },
"tags": { "not" : {} }
},
"required": ["name", "brand"]
"oneOf": [
{ "required": ["brand"] },
{ "required": ["operator"] },
{ "required": ["network"] }
]
}
}
}
Expand Down

2 comments on commit 124521a

@UKChris-osm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this update enable the addition of a brand like J Wetherspoon #3009 where each pub usually has its own name??

@bhousel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this update enable the addition of a brand like J Wetherspoon #3009 where each pub usually has its own name??

Yes! I'm doing that now... 🚀

Please sign in to comment.