Skip to content

Releases: JamesNK/Newtonsoft.Json.Schema

3.0.7

21 Feb 08:29
c99b6f0
Compare
Choose a tag to compare
  • New feature - Added netstandard2.0
  • Fix - Fixed validation of nested, reused conditional schemas

3.0.6

17 Feb 23:41
fc5c104
Compare
Choose a tag to compare
  • New feature - Added support for JSON Schema Draft 7
  • New feature - Added support for if/then/else
  • New feature - Added writeOnly/readOnly to JSchema
  • New feature - Added contentEncoding/contentMediaType to JSchema
  • Fix - Fixed incorrect error thrown when resolving reference where index equals length
  • Fix - Fixed generating schemas with attributes inheriting from DescriptionAttribute and DisplayNameAttribute

3.0.5

12 Jan 05:58
ac6811d
Compare
Choose a tag to compare
  • New feature - Added JSchema.Reference to optionally dereference schemas
  • New feature - Added ResolveSchemaReferences to reader for reading schemas without resolving references
  • New feature - Added support for DisplayAttribute when generating schemas
  • Change - Changed regex to use RegexOptions.ECMAScript
  • Remove - JSchemaReaderSettings.RegexTimeout was unused and removed
  • Fix - Fixed using StringEnumGenerationProvider with DefaultValue
  • Fix - Fixed validators not being used in referenced schemas
  • Fix - Fixed using JSchemaReadersSetting in referenced schemas with base URI
  • Fix - Fixed generated schemas with multiple required states not being placed in definitions
  • Fix - Fixed validation of a contains schema when nested inside conditional context

3.0.4

28 Sep 09:18
Compare
Choose a tag to compare
  • New feature - Improved schema generation performance
  • Fix - Fixed reading DescriptionAttribute and DisplayNameAttribute in portable and .NET Standard builds
  • Fix - Fixed writing schema with JSchemaType.None
  • Fix - Fixed JSON Pointer format validation
  • Fix - Fixed validating floating point values with no remainder as integer type
  • Fix - Fixed error when resolving complex deferred schema relationship
  • Fix - Fixed using propertyNames with non-string validation
  • Fix - Fixed parsing schema ids starting with double slash

3.0.3

13 Aug 22:48
Compare
Choose a tag to compare
  • New feature - Added support for always writing definitions schemas by value
  • Fix - Fixed errors when calling some methods on patterns dictionary when cast to IDictionary
  • Fix - Fixed resolving ids prefix with a hash from definitions

3.0.2

07 Jul 06:46
Compare
Choose a tag to compare
  • Fix - Fixed performance issue when validating a deeply nested schema with many conditional schemas
  • Fix - Fixed error when validating multipleOf with certain large numbers
  • Fix - Fixed writing schema maximum for draft 6

3.0.1

05 Jun 11:33
Compare
Choose a tag to compare
  • New feature - Added support for JSON Schema Draft 6
  • New feature - Added propertyNames schema validation
  • New feature - Added contains schema validation
  • New feature - Added support for reading schema id from $id properties
  • New feature - Added support for boolean (valid/invalid) schemas
  • New feature - Added support for reading and writing exclusiveMinimum and exclusiveMaximum with number values
  • New feature - Added support for const validation
  • New feature - Added support for uri-reference format
  • New feature - Added support for uri-template format
  • New feature - Added support for json-pointer format
  • New feature - Added support for using schema version from $schema to correctly parse JSON during schema load
  • New feature - Added support for using schema version from JSchema.SchemaVersion to correctly write JSON
  • New feature - Added JSchema.ToString(SchemaVersion) to specify JSON Schema version when writing JSON
  • New feature - Added JSchemaWriterSetting.Version to specify JSON Schema version when writing JSON
  • New feature - Added support for falling back to getting definitions schema by original reference name
  • Fix - Fixed resolving relative ids of schemas nested in loose JSON with id scope

2.0.13

28 May 09:45
Compare
Choose a tag to compare
  • New feature - Added support for generating schema titles with DisplayNameAttribute
  • New feature - Added RegexTimeout to JSchemaValidatingReader and JSchemaValidatingWriter
  • New feature - Added SchemaTitle, SchemaDescription to JSchemaTypeGenerationContext
  • New feature - Added title and description to output from StringEnumGenerationProvider if defined with attribute
  • Fix - Fixed parsing ref where the result is a single items schema

2.0.12

19 May 16:20
Compare
Choose a tag to compare
  • New feature - Added support for deriving date-time and uri formats from types when generating schemas
  • New feature - Added support for DescriptionAttribute on properties when generating schemas
  • Change - NuGet package has a minimum client version of 2.12
  • Fix - Fixed unexpected error when schema with extension data references itself

2.0.11

12 Apr 09:27
Compare
Choose a tag to compare
  • Change - Updated to Newtonsoft.Json 10.0.2