Dress Code
Leave out venues whose dress code your users don't want, and read the dress code a venue states.
Some venues ask guests to dress up. dressCode lists the dress codes your users are happy with. It is a filter: venues that state any other dress code are left out.
"preferences": {
"dressCode": ["casual", "smart_casual"]
}This example leaves out venues that ask for smart or formal dress.
No dress code always passes
Most venues don't have a stated dress code, and they always pass this filter.
Values
Levels go from least to most formal.
| Value | The venue asks for… |
|---|---|
| casual | Nothing in particular. It says it is casual or has no dress code. |
| smart_casual | Smart casual, or it only bans very casual clothes (sportswear, flip-flops, caps, shorts). |
| smart | Smart or elegant dress, or no jeans or trainers. |
| formal | Jackets, jacket and tie, black tie or formal wear. |
Values not in this list are ignored. If none of the values you send is valid, the filter is not applied.
In responses
Each venue has a dressCode, or null when it has no stated dress code. null doesn't mean the venue is casual: it means there is no dress code to show.
"dressCode": {
"level": "smart_casual",
"label": "Smart casual",
"notes": "No sportswear, caps or flip-flops"
}| Field | Description |
|---|---|
| level | One of the values above. |
| label | The level, ready to show to people. |
| notes | The venue's own rules in short, including when they apply. Left out when it only names a level. |
Dress codes can change, so for a special occasion it is worth checking with the venue.