|
1 |
| -using System.ComponentModel.DataAnnotations; |
2 |
| -using System.Diagnostics.CodeAnalysis; |
3 | 1 | using System.Reflection;
|
4 | 2 | using YamlDotNet.Serialization;
|
5 | 3 | using YamlDotNet.Serialization.NamingConventions;
|
@@ -229,31 +227,25 @@ Restriction Name | Restriction Default | Restriction Number
|
229 | 227 |
|
230 | 228 | class Schema
|
231 | 229 | {
|
232 |
| - [AllowNull] |
233 |
| - public string Name { get; set; } |
234 |
| - public string? Description { get; set; } |
235 |
| - public string? Custom { get; set; } |
236 |
| - public string? Table { get; set; } |
237 |
| - public int IdentifierPartCount { get; set; } |
238 |
| - [AllowNull] |
239 |
| - public List<Column> Columns { get; set; } |
240 |
| - public List<Restriction>? Restrictions { get; set; } |
| 230 | + public required string Name { get; init; } |
| 231 | + public string? Description { get; init; } |
| 232 | + public string? Custom { get; init; } |
| 233 | + public string? Table { get; init; } |
| 234 | + public int IdentifierPartCount { get; init; } |
| 235 | + public required List<Column> Columns { get; init; } |
| 236 | + public List<Restriction>? Restrictions { get; init; } |
241 | 237 | }
|
242 | 238 |
|
243 | 239 | class Column
|
244 | 240 | {
|
245 |
| - [AllowNull] |
246 |
| - public string Name { get; set; } |
247 |
| - [AllowNull] |
248 |
| - public string Type { get; set; } |
249 |
| - public string? Description { get; set; } |
250 |
| - public bool Optional { get; set; } |
| 241 | + public required string Name { get; init; } |
| 242 | + public required string Type { get; init; } |
| 243 | + public string? Description { get; init; } |
| 244 | + public bool Optional { get; init; } |
251 | 245 | }
|
252 | 246 |
|
253 | 247 | class Restriction
|
254 | 248 | {
|
255 |
| - [AllowNull] |
256 |
| - public string Name { get; set; } |
257 |
| - [AllowNull] |
258 |
| - public string Default { get; set; } |
| 249 | + public required string Name { get; init; } |
| 250 | + public required string Default { get; init; } |
259 | 251 | }
|
0 commit comments