@@ -97,37 +97,37 @@ public string Description
97
97
}
98
98
99
99
/// <inheritdoc/>
100
- public bool Required { get => Target . Required ; }
100
+ public bool Required { get => Target ? . Required ?? default ; }
101
101
102
102
/// <inheritdoc/>
103
- public bool Deprecated { get => Target . Deprecated ; }
103
+ public bool Deprecated { get => Target ? . Deprecated ?? default ; }
104
104
105
105
/// <inheritdoc/>
106
- public bool AllowEmptyValue { get => Target . AllowEmptyValue ; }
106
+ public bool AllowEmptyValue { get => Target ? . AllowEmptyValue ?? default ; }
107
107
108
108
/// <inheritdoc/>
109
- public OpenApiSchema Schema { get => Target . Schema ; }
109
+ public OpenApiSchema Schema { get => Target ? . Schema ; }
110
110
111
111
/// <inheritdoc/>
112
- public ParameterStyle ? Style { get => Target . Style ; }
112
+ public ParameterStyle ? Style { get => Target ? . Style ; }
113
113
114
114
/// <inheritdoc/>
115
- public bool Explode { get => Target . Explode ; }
115
+ public bool Explode { get => Target ? . Explode ?? default ; }
116
116
117
117
/// <inheritdoc/>
118
- public bool AllowReserved { get => Target . AllowReserved ; }
118
+ public bool AllowReserved { get => Target ? . AllowReserved ?? default ; }
119
119
120
120
/// <inheritdoc/>
121
- public JsonNode Example { get => Target . Example ; }
121
+ public JsonNode Example { get => Target ? . Example ; }
122
122
123
123
/// <inheritdoc/>
124
- public IDictionary < string , IOpenApiExample > Examples { get => Target . Examples ; }
124
+ public IDictionary < string , IOpenApiExample > Examples { get => Target ? . Examples ; }
125
125
126
126
/// <inheritdoc/>
127
- public IDictionary < string , OpenApiMediaType > Content { get => Target . Content ; }
127
+ public IDictionary < string , OpenApiMediaType > Content { get => Target ? . Content ; }
128
128
129
129
/// <inheritdoc/>
130
- public IDictionary < string , IOpenApiExtension > Extensions { get => Target . Extensions ; }
130
+ public IDictionary < string , IOpenApiExtension > Extensions { get => Target ? . Extensions ; }
131
131
132
132
/// <inheritdoc/>
133
133
public void SerializeAsV31 ( IOpenApiWriter writer )
0 commit comments