GeWuYou a8cb82e2f1 feat(config): 添加配置验证功能支持枚举对象和数组
- 实现 parseSchemaContent 函数解析对象和数组枚举元数据
- 添加 validateParsedConfig 验证对象值是否在枚举声明范围内
- 支持数组枚举候选项的顺序敏感比较
- 优化诊断信息避免父对象枚举不匹配的重复报告
- 添加测试用例验证枚举对象和数组的解析与验证功能
- 实现可编辑字段收集功能支持批量编辑器更新
- 添加 YAML 解析和注释提取功能用于表单预览
- 实现配置验证诊断生成功能支持本地化消息
- 添加格式化和规范化函数支持不同数据类型的处理
2026-04-16 14:50:46 +08:00

30 lines
1.0 KiB
Plaintext

// <auto-generated />
#nullable enable
namespace GFramework.Game.Config.Generated;
/// <summary>
/// Auto-generated config type for schema file 'monster.schema.json'.
/// This type is generated from JSON schema so runtime loading and editor tooling can share the same contract.
/// </summary>
public sealed partial class MonsterConfig
{
/// <summary>
/// Gets or sets the value mapped from schema property path 'id'.
/// </summary>
/// <remarks>
/// Schema property path: 'id'.
/// </remarks>
public int Id { get; set; }
/// <summary>
/// Gets or sets the value mapped from schema property path 'dropItemIds'.
/// </summary>
/// <remarks>
/// Schema property path: 'dropItemIds'.
/// Allowed values: fire, ice, earth.
/// Generated default initializer: = global::System.Array.Empty&lt;string&gt;();
/// </remarks>
public global::System.Collections.Generic.IReadOnlyList<string> DropItemIds { get; set; } = global::System.Array.Empty<string>();
}