Skip to content

Commit 7da4cf4

Browse files
Update data models (#9)
1 parent 5f408eb commit 7da4cf4

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

OpenActive.NET.Generator/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenActive.NET.Generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "Nick Evans",
1212
"license": "MIT",
1313
"dependencies": {
14-
"@openactive/data-models": "^2.0.164",
14+
"@openactive/data-models": "^2.0.166",
1515
"fs-extra": "^7.0.1",
1616
"sync-request": "^6.0.0"
1717
}

OpenActive.NET/models/OpeningHoursSpecification.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public override string ToString()
4848

4949

5050
/// <summary>
51-
/// The closing time.
51+
/// The closing time. Set "00:00" for the value of `opens` and `closes` to indicated the `Place` is closed on the specified days.
5252
/// </summary>
5353
/// <example>
5454
/// <code>
@@ -61,20 +61,23 @@ public override string ToString()
6161

6262

6363
/// <summary>
64-
/// Defines the day of the week upon which the Place is open
64+
/// Defines the days of the week upon which the `opens` and `closes` values are specified.
6565
/// </summary>
6666
/// <example>
6767
/// <code>
68-
/// "dayOfWeek": "https://schema.org/Monday"
68+
/// "dayOfWeek": [
69+
/// "https://schema.org/Saturday",
70+
/// "https://schema.org/Sunday"
71+
/// ]
6972
/// </code>
7073
/// </example>
7174
[DataMember(Name = "dayOfWeek", EmitDefaultValue = false, Order = 8)]
7275
[JsonConverter(typeof(ValuesConverter))]
73-
public new virtual Schema.NET.DayOfWeek? DayOfWeek { get; set; }
76+
public new virtual List<Schema.NET.DayOfWeek> DayOfWeek { get; set; }
7477

7578

7679
/// <summary>
77-
/// The opening time.
80+
/// The opening time. Set "00:00" for the value of `opens` and `closes` to indicated the `Place` is closed on the specified days.
7881
/// </summary>
7982
/// <example>
8083
/// <code>

0 commit comments

Comments
 (0)