diff --git a/OpenActive.NET.Generator/package-lock.json b/OpenActive.NET.Generator/package-lock.json index 8835913..ad47b25 100644 --- a/OpenActive.NET.Generator/package-lock.json +++ b/OpenActive.NET.Generator/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@openactive/data-models": { - "version": "2.0.164", - "resolved": "https://registry.npmjs.org/@openactive/data-models/-/data-models-2.0.164.tgz", - "integrity": "sha512-XMd6++n+3Vkej5KIK2gBeo7zYIkrEyP7dRhDpwQqTMU8WuTp29UVGyP4YzKYkKU+9pEQ7+5cDRLpDSzSuG1m8w==" + "version": "2.0.166", + "resolved": "https://registry.npmjs.org/@openactive/data-models/-/data-models-2.0.166.tgz", + "integrity": "sha512-yx9QhdbGIntozRBJpJjPAGtXNeLDeFT6I9dBZQv0q6w/h5E36mHTuLvR7JedZI7AFF9VocGfLEGydmjca0cVUQ==" }, "@types/concat-stream": { "version": "1.6.0", diff --git a/OpenActive.NET.Generator/package.json b/OpenActive.NET.Generator/package.json index 4e811d8..31aa40d 100644 --- a/OpenActive.NET.Generator/package.json +++ b/OpenActive.NET.Generator/package.json @@ -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" } diff --git a/OpenActive.NET/models/OpeningHoursSpecification.cs b/OpenActive.NET/models/OpeningHoursSpecification.cs index 944d71f..493f6e1 100644 --- a/OpenActive.NET/models/OpeningHoursSpecification.cs +++ b/OpenActive.NET/models/OpeningHoursSpecification.cs @@ -48,7 +48,7 @@ public override string ToString() /// - /// 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. /// /// /// @@ -61,20 +61,23 @@ public override string ToString() /// - /// 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. /// /// /// - /// "dayOfWeek": "https://schema.org/Monday" + /// "dayOfWeek": [ + /// "https://schema.org/Saturday", + /// "https://schema.org/Sunday" + /// ] /// /// [DataMember(Name = "dayOfWeek", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] - public new virtual Schema.NET.DayOfWeek? DayOfWeek { get; set; } + public new virtual List DayOfWeek { get; set; } /// - /// 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. /// /// ///