< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Generators.ObjectPropertyInfo
Assembly: NexusLabs.Needlr.AgentFramework.Generators
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Generators/Models/ObjectPropertyInfo.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 29
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_CSharpName()100%11100%
get_JsonName()100%11100%
get_SchemaType()100%11100%
get_IsNullable()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Generators/Models/ObjectPropertyInfo.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Generators;
 2
 3/// <summary>
 4/// Describes a single property of a complex object type used as an array element
 5/// in an agent function parameter. Used for AOT-safe manual deserialization from
 6/// JsonElement.
 7/// </summary>
 8internal readonly struct ObjectPropertyInfo
 9{
 10    public ObjectPropertyInfo(string csharpName, string jsonName, string schemaType, bool isNullable)
 11    {
 612        CSharpName = csharpName;
 613        JsonName = jsonName;
 614        SchemaType = schemaType;
 615        IsNullable = isNullable;
 616    }
 17
 18    /// <summary>The C# property name (PascalCase, e.g., "Topic").</summary>
 619    public string CSharpName { get; }
 20
 21    /// <summary>The JSON property name (camelCase, e.g., "topic").</summary>
 1822    public string JsonName { get; }
 23
 24    /// <summary>The JSON schema type (e.g., "string", "integer", "boolean").</summary>
 625    public string SchemaType { get; }
 26
 27    /// <summary>Whether the property is nullable.</summary>
 628    public bool IsNullable { get; }
 29}