Skip to content

Commit

Permalink
Update data models (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
openactive-bot authored Jan 12, 2021
1 parent 5f408eb commit 7da4cf4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions OpenActive.NET.Generator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OpenActive.NET.Generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "Nick Evans",
"license": "MIT",
"dependencies": {
"@openactive/data-models": "^2.0.164",
"@openactive/data-models": "^2.0.166",
"fs-extra": "^7.0.1",
"sync-request": "^6.0.0"
}
Expand Down
13 changes: 8 additions & 5 deletions OpenActive.NET/models/OpeningHoursSpecification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public override string ToString()


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


/// <summary>
/// Defines the day of the week upon which the Place is open
/// Defines the days of the week upon which the `opens` and `closes` values are specified.
/// </summary>
/// <example>
/// <code>
/// "dayOfWeek": "https://schema.org/Monday"
/// "dayOfWeek": [
/// "https://schema.org/Saturday",
/// "https://schema.org/Sunday"
/// ]
/// </code>
/// </example>
[DataMember(Name = "dayOfWeek", EmitDefaultValue = false, Order = 8)]
[JsonConverter(typeof(ValuesConverter))]
public new virtual Schema.NET.DayOfWeek? DayOfWeek { get; set; }
public new virtual List<Schema.NET.DayOfWeek> DayOfWeek { get; set; }


/// <summary>
/// The opening time.
/// The opening time. Set "00:00" for the value of `opens` and `closes` to indicated the `Place` is closed on the specified days.
/// </summary>
/// <example>
/// <code>
Expand Down

0 comments on commit 7da4cf4

Please sign in to comment.