refactor(core): harden PluginManifest error model

Addresses code quality review of c082ecf:
- Require takes a literal JSON field name, no more fragile PascalCase->camelCase transform
- Parse_MissingRequiredField_Throws asserts exact message, not substring
- Remove unused using System.Text.Json.Serialization
This commit is contained in:
Erik 2026-04-10 09:33:00 +02:00
parent c082ecf36a
commit 99d2702c13
2 changed files with 7 additions and 9 deletions

View file

@ -34,7 +34,7 @@ public class PluginManifestTests
""";
var ex = Assert.Throws<PluginManifestException>(() => PluginManifest.Parse(json));
Assert.Contains("displayName", ex.Message);
Assert.Equal("missing required field: displayName", ex.Message);
}
[Fact]