尝试从 NJsonSchema ValidationErrors 检索 LineNumber 信息?
Trying to retrieve LineNumber information from NJsonSchema ValidationErrors?
我需要进行一些 json 架构验证,并且正在使用 NJsonSchema,因为我无法获得 Json.Net 架构的许可。有没有办法获取 ValidationErrors 的 LineNumber 信息?
看起来唯一可用的属性是
//
// Summary:
// Gets the error kind.
public ValidationErrorKind Kind { get; }
//
// Summary:
// Gets the property path.
public string Path { get; }
//
// Summary:
// Gets the property name.
public string Property { get; }
请更新http://NJsonSchema.org,此功能现已实现...
我需要进行一些 json 架构验证,并且正在使用 NJsonSchema,因为我无法获得 Json.Net 架构的许可。有没有办法获取 ValidationErrors 的 LineNumber 信息?
看起来唯一可用的属性是
//
// Summary:
// Gets the error kind.
public ValidationErrorKind Kind { get; }
//
// Summary:
// Gets the property path.
public string Path { get; }
//
// Summary:
// Gets the property name.
public string Property { get; }
请更新http://NJsonSchema.org,此功能现已实现...