1.4.5731.36729
10 Sep 15
Toggle Dropdown
Compare to version...
with 0.1.5470.42846
Toggle Dropdown
Download Package
Open in NuGet
<
PackageReference
Include
=
"NJsonSchema"
Version
=
"1.4.5731.36729"
/>
API Differences between 1.4.5731.36729 and 0.1.5470.42846
63
Additions
6
Removals
NJsonSchema
public
interface
ISchemaResolver
void
AddSchema
(
Type
type
,
JsonSchema4
schema
)
JsonSchema4
GetSchema
(
Type
type
)
bool
HasSchema
(
Type
type
)
public
class
JsonObjectTypeDescription
public
string
Format
{
get
; }
public
bool
IsAlwaysRequired
{
get
; }
public
bool
IsDictionary
{
get
; }
public
JsonObjectType
Type
{
get
; }
public
static
JsonObjectTypeDescription
FromType
(
Type
type
)
public
static
class
JsonPathUtilities
public
static
string
GetJsonPath
(
object
obj
,
object
objectToSearch
)
public
static
JsonSchema4
GetObjectFromJsonPath
(
object
obj
,
string
path
)
public
class
JsonProperty
:
JsonSchema4
public
string
Key
{
get
; }
public
string
Name
{
get
; }
public
class
JsonSchema4
public
virtual
JsonSchema4
ActualSchema
{
get
; }
public
JsonSchema4
AdditionalItemsSchema
{
get
;
set
; }
public
JsonSchema4
AdditionalPropertiesSchema
{
get
;
set
; }
public
bool
AllowAdditionalItems
{
get
;
set
; }
public
bool
AllowAdditionalProperties
{
get
;
set
; }
public
ICollection
<
object
>
Enumeration
{
get
; }
public
bool
HasSchemaReference
{
get
; }
public
bool
IsDictionary
{
get
; }
public
JsonSchema4
Items
{
get
;
set
; }
public
JsonSchema4
Item
{
get
;
set
; }
public
ICollection
<
JsonSchema4
>
Items
{
get
; }
public
int
MultipleOf
{
get
;
set
; }
public
double
?
MultipleOf
{
get
;
set
; }
public
virtual
JsonSchema4
Parent
{
get
; }
public
virtual
JsonSchema4
ParentSchema
{
get
; }
public
IDictionary
<
string
,
JsonProperty
>
PatternProperties
{
get
; }
public
string
Schema
{
get
;
set
; }
public
JsonSchema4
SchemaReference
{
get
;
set
; }
public
string
SchemaVersion
{
get
;
set
; }
public
string
TypeName
{
get
;
set
; }
public
static
JsonSchema4
CreateTypeReference
(
JsonSchema4
schema
)
public
static
JsonSchema4
FromType
(
Type
type
)
public
class
JsonSchemaGenerator
public
JsonSchemaGenerator
()
public
TSchemaType
Generate
<
TSchemaType
>(
Type
type
,
ISchemaResolver
schemaResolver
) where
TSchemaType
:
JsonSchema4
protected
virtual
void
GenerateObject
<
TSchemaType
>(
Type
type
,
TSchemaType
schema
,
ISchemaResolver
schemaResolver
) where
TSchemaType
:
JsonSchema4
public
static
class
JsonSchemaReferenceUtilities
public
static
string
ConvertJsonReferences
(
string
data
)
public
static
string
ConvertPropertyReferences
(
string
data
)
public
static
void
UpdateAllTypeReferences
(
object
root
)
public
class
SchemaResolver
:
ISchemaResolver
public
IEnumerable
<
JsonSchema4
>
Schemes
{
get
; }
public
SchemaResolver
()
public
void
AddSchema
(
Type
type
,
JsonSchema4
schema
)
public
JsonSchema4
GetSchema
(
Type
type
)
public
bool
HasSchema
(
Type
type
)
NJsonSchema.Validation
public
class
ChildSchemaValidationError
:
ValidationError
public
IReadOnlyDictionary
<
JsonSchema4
,
ICollection
<
ValidationError
>>
Errors
{
get
; }
public
ChildSchemaValidationError
(
ValidationErrorKind
kind
,
string
property
,
string
path
,
IReadOnlyDictionary
<
JsonSchema4
,
ICollection
<
ValidationError
>>
errors
)
public
enum
ValidationErrorKind
AdditionalItemNotValid
=
30
AdditionalPropertiesNotValid
=
31
ArrayItemNotValid
=
29
EmailExpected
=
27
IntegerNotMultipleOf
=
25
IntegerTooSmall
=
12
NotInEnumeration
=
26
NumberNotMultipleOf
=
24
NumberTooBig
=
13
NumberTooSmall
=
12
TooFewProperties
=
34
TooManyItemsInTuple
=
28
TooManyProperties
=
33
TooManyPropertiesInTuple
=
32
UriExpected
=
19