Skip to content

Commit 811161e

Browse files
committed
fix(CS): regenerate with new AnyOfSystemJsonConverter attribute
1 parent 3b759f2 commit 811161e

10 files changed

+27
-3
lines changed

src/CSharpSDK/DragonflySchema.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0</TargetFrameworks>
55
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
6-
<Version>1.1501.3</Version>
6+
<Version>1.1501.4</Version>
77
<Authors>Ladybug Tools</Authors>
88
<Description>This is the .Net version of Dragonfly Schema</Description>
99
<Copyright>Copyright © 2025 Ladybug Tools LLC</Copyright>

src/CSharpSDK/Model/GriddedSkylightArea.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public GriddedSkylightArea
7777
[Summary(@"A number for the spacing between the centers of each grid cell. This should be less than a third of the dimension of the Roof geometry if multiple, evenly-spaced skylights are desired. If Autocalculate, a spacing of one third the smaller dimension of the parent Roof will be automatically assumed.")]
7878
[DataMember(Name = "spacing")] // For Newtonsoft.Json
7979
[System.Text.Json.Serialization.JsonPropertyName("spacing")] // For System.Text.Json
80+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
81+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
8082
public AnyOf<Autocalculate, double> Spacing { get; set; } = new Autocalculate();
8183

8284

src/CSharpSDK/Model/GriddedSkylightRatio.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public GriddedSkylightRatio
7777
[Summary(@"A number for the spacing between the centers of each grid cell. This should be less than a third of the dimension of the Roof geometry if multiple, evenly-spaced skylights are desired. If Autocalculate, a spacing of one third the smaller dimension of the parent Roof will be automatically assumed.")]
7878
[DataMember(Name = "spacing")] // For Newtonsoft.Json
7979
[System.Text.Json.Serialization.JsonPropertyName("spacing")] // For System.Text.Json
80+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
81+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
8082
public AnyOf<Autocalculate, double> Spacing { get; set; } = new Autocalculate();
8183

8284

src/CSharpSDK/Model/Room2D.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public Room2D
235235
[Summary(@"A SkylightParameter object describing how to generate skylights. If None, no skylights will exist on the Room2D.")]
236236
[DataMember(Name = "skylight_parameters")] // For Newtonsoft.Json
237237
[System.Text.Json.Serialization.JsonPropertyName("skylight_parameters")] // For System.Text.Json
238+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
239+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
238240
public AnyOf<GriddedSkylightArea, GriddedSkylightRatio, DetailedSkylights> SkylightParameters { get; set; }
239241

240242

src/CSharpSDK/Model/Room2DComparisonProperties.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public Room2DComparisonProperties
9696
[Summary(@"A SkylightParameter object for the Room2D to which the host Room2D is being compared.")]
9797
[DataMember(Name = "comparison_skylight")] // For Newtonsoft.Json
9898
[System.Text.Json.Serialization.JsonPropertyName("comparison_skylight")] // For System.Text.Json
99+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
100+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
99101
public AnyOf<GriddedSkylightArea, GriddedSkylightRatio, DetailedSkylights> ComparisonSkylight { get; set; }
100102

101103

src/CSharpSDK/Model/Room2DDoe2Properties.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public Room2DDoe2Properties
7474
[Summary(@"A number for the design supply air flow rate for the zone the Room is assigned to (cfm). This establishes the minimum allowed design air flow. Note that the actual design flow may be larger. If Autocalculate, this parameter will not be written into the INP.")]
7575
[DataMember(Name = "assigned_flow")] // For Newtonsoft.Json
7676
[System.Text.Json.Serialization.JsonPropertyName("assigned_flow")] // For System.Text.Json
77+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
78+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
7779
public AnyOf<Autocalculate, double> AssignedFlow { get; set; } = new Autocalculate();
7880

7981
/// <summary>
@@ -82,6 +84,8 @@ public Room2DDoe2Properties
8284
[Summary(@"A number for the design supply air flow rate to the zone per unit floor area (cfm/ft2). If Autocalculate, this parameter will not be written into the INP.")]
8385
[DataMember(Name = "flow_per_area")] // For Newtonsoft.Json
8486
[System.Text.Json.Serialization.JsonPropertyName("flow_per_area")] // For System.Text.Json
87+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
88+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
8589
public AnyOf<Autocalculate, double> FlowPerArea { get; set; } = new Autocalculate();
8690

8791
/// <summary>
@@ -90,6 +94,8 @@ public Room2DDoe2Properties
9094
[Summary(@"A number between 0 and 1 for the minimum allowable zone air supply flow rate, expressed as a fraction of design flow rate. Applicable to variable-volume type systems only. If Autocalculate, this parameter will not be written into the INP.")]
9195
[DataMember(Name = "min_flow_ratio")] // For Newtonsoft.Json
9296
[System.Text.Json.Serialization.JsonPropertyName("min_flow_ratio")] // For System.Text.Json
97+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
98+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
9399
public AnyOf<Autocalculate, double> MinFlowRatio { get; set; } = new Autocalculate();
94100

95101
/// <summary>
@@ -98,6 +104,8 @@ public Room2DDoe2Properties
98104
[Summary(@"A number for the minimum air flow per square foot of floor area (cfm/ft2). This is an alternative way of specifying the min_flow_ratio. If Autocalculate, this parameter will not be written into the INP.")]
99105
[DataMember(Name = "min_flow_per_area")] // For Newtonsoft.Json
100106
[System.Text.Json.Serialization.JsonPropertyName("min_flow_per_area")] // For System.Text.Json
107+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
108+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
101109
public AnyOf<Autocalculate, double> MinFlowPerArea { get; set; } = new Autocalculate();
102110

103111
/// <summary>
@@ -106,6 +114,8 @@ public Room2DDoe2Properties
106114
[Summary(@"A number between 0 and 1 for the ratio of the maximum (or fixed) heating airflow to the cooling airflow. The specific meaning varies according to the type of zone terminal. If Autocalculate, this parameter will not be written into the INP.")]
107115
[DataMember(Name = "hmax_flow_ratio")] // For Newtonsoft.Json
108116
[System.Text.Json.Serialization.JsonPropertyName("hmax_flow_ratio")] // For System.Text.Json
117+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
118+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
109119
public AnyOf<Autocalculate, double> HmaxFlowRatio { get; set; } = new Autocalculate();
110120

111121

src/CSharpSDK/Model/RoomRadialGridParameter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public RoomRadialGridParameter
9090
[Summary(@"An optional number to override the radius of the meshes generated around each sensor. If Autocalculate, it will be equal to 45 percent of the grid dimension.")]
9191
[DataMember(Name = "mesh_radius")] // For Newtonsoft.Json
9292
[System.Text.Json.Serialization.JsonPropertyName("mesh_radius")] // For System.Text.Json
93+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
94+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
9395
public AnyOf<Autocalculate, double> MeshRadius { get; set; } = new Autocalculate();
9496

9597

src/CSharpSDK/Model/Story.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public Story
9999
[Summary(@"A number for the distance from the floor plate of this story to the floor of the story above this one (if it exists). If Autocalculate, this value will be the maximum floor_to_ceiling_height of the input room_2ds.")]
100100
[DataMember(Name = "floor_to_floor_height")] // For Newtonsoft.Json
101101
[System.Text.Json.Serialization.JsonPropertyName("floor_to_floor_height")] // For System.Text.Json
102+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
103+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
102104
public AnyOf<Autocalculate, double> FloorToFloorHeight { get; set; } = new Autocalculate();
103105

104106
/// <summary>
@@ -107,6 +109,8 @@ public Story
107109
[Summary(@"A number to indicate the height of the floor plane in the Z axis.If Autocalculate, this will be the minimum floor height of all the room_2ds, which is suitable for cases where there are no floor plenums.")]
108110
[DataMember(Name = "floor_height")] // For Newtonsoft.Json
109111
[System.Text.Json.Serialization.JsonPropertyName("floor_height")] // For System.Text.Json
112+
[LBTNewtonSoft.Newtonsoft.Json.JsonConverter(typeof(AnyOfJsonConverter))] // For Newtonsoft.Json
113+
[System.Text.Json.Serialization.JsonConverter(typeof(AnyOfSystemJsonConverter))] // For System.Text.Json
110114
public AnyOf<Autocalculate, double> FloorHeight { get; set; } = new Autocalculate();
111115

112116
/// <summary>

src/TypeScriptSDK/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dragonfly-schema",
33
"license": "MIT",
4-
"version": "0.0.1",
4+
"version": "1.1501.4",
55
"description": "Dragonfly Schema's typescript version",
66
"author": "Ladybug Tools",
77
"type": "module",

0 commit comments

Comments
 (0)