Releases: RicoSuter/NJsonSchema
Releases · RicoSuter/NJsonSchema
NJsonSchema v11.5.2
What's Changed
- Add JsonLibraryVersion and generate JsonStringEnumMemberNameAttriute for >= 9.0, EnumMemberAttribute otherwise by @RicoSuter in #1865
- Reverts the breaking change introduced by "Use [JsonStringEnumMemberName] instead of [EnumMember] #1864"
- Add support for
JsonStringEnumConverter<T>detection and test it by @wellWINeo in #1868 - Update dependencies by @lahma in #1874
- CSharp generator: Fix required keyword and add write accessor (set/init) by @RicoSuter in #1862
New Contributors
- @wellWINeo made their first contribution in #1868
Full Changelog: v11.5.1...v11.5.2
NJsonSchema v11.5.1
What's Changed
- fix: Enum descriptions serialization/property by @RicoSuter in #1861
- Use JsonStringEnumConverter instead of JsonStringEnumConverter by @0xced in #1863
- Use [JsonStringEnumMemberName] instead of [EnumMember] by @0xced in #1864
New Contributors
Full Changelog: v11.5.0...v11.5.1
NJsonSchema v11.5.0
What's Changed
Breaking changes:
Others:
- Update Namotion.Reflection to v3.4.3 by @RicoSuter b19c2de
- Minor perf tweaks by @lahma in #1851
- Make enum description reading tolerant to invalid data by @lahma in #1852
- Don't output enum descriptions if all empty by @lahma in #1854
Full Changelog: v11.4.0...v11.5.0
NJsonSchema v11.4.0
What's Changed
- Cache NJsonSchema properties in
JsonReferenceResolverby @lahma in #1817 - Avoid trying
JsonSchemaconstruction for object having boolean required by @lahma in #1818 - Optimize
AsyncJsonReferenceVisitorBase.Visitby @lahma in #1819 - Allow customizing
FluidParserconstruction by @lahma in #1822 - Add support for testing whether TS code compiles with
tscby @lahma in #1824 - Fix
ApplyRangeAttributefailing when min/max is specified as string by @sindrekroknes in #1831 - Add ability to overwrite templates multiple times using
templateFolderby @Georgy-Losenkov in #1835 - Convert to using TS
as TYPEinstead cast with<TYPE>by @lahma in #1837 - Convert to using proper Verify tests in TypeScript testing by @lahma in #1838
- Convert to using proper Verify tests in C# testing by @lahma in #1839
- Upgrade testing related NuGet packages by @lahma in #1840
- Upgrade to Fluid 2.25 by @lahma in #1842
- Use
ValueStringBuilderinConvertDashesToCamelCaseby @lahma in #1844 - C# generator: create anonymous types with camel casing (3rd attempt) by @WolfgangHG in #1828
- Support configuring whether constructor parameter are sorted by @manfred-brands in #1399
- Fixed validation of
JTokens with typeUriby @ertrumbl in #1403 - Convert more tests to use verify by @lahma in #1845
- Replace remaining any cast with as any by @lahma in #1846
- Convert to xUnit v3 by @lahma in #1848
- Support description for each
x-enumNamesvalue by @lekhmanrus in #1789 - Remove some unnecessary LINQ usage by @lahma in #1849
- Optimize camel-casing logic by @lahma in #1850
New Contributors
- @sindrekroknes made their first contribution in #1831
- @manfred-brands made their first contribution in #1399
- @ertrumbl made their first contribution in #1403
Full Changelog: v11.3.2...v11.4.0
NJsonSchema v11.3.2
What's Changed
- Revert "C# generator: create anoymous types with camel casing (reworked)" by @RicoSuter in #1816
Full Changelog: v11.3.1...v11.3.2
NJsonSchema v11.3.1
What's Changed
Full Changelog: v11.3.0...v11.3.1
NJsonSchema v11.3.0
What's Changed
- Add NET 8 targets and fix analyzer reported issues by @lahma in #1792
- Avoid re-registration of type if member not found in member access by @lahma in #1793
- Optimize ReflectionServiceBase.IsBinary by @lahma in #1794
- Optimize JsonSchema.TypeRaw handling by @lahma in #1795
- Upgrade to Fluid 2.23 by @lahma in #1796
- Add Verify unified testing support to C# and TypeScript by @lahma in #1800
- Expand code compilation checks to GeneralGeneratorTests by @lahma in #1801
- Add support for high precision dates by @philip-reed in #1797
- Fix RangeAttribute format for decimals by @lahma in #1803
- Ensure RangeAttribute respects numeric type's min/max by @lahma in #1804
- Use explicit using for System.Linq to make it easier to spot by @lahma in #1805
- Replace manual locking and Dictionary with ConcurrentDictionary by @lahma in #1806
- Remove unnecessary use of Type.GetTypeInfo() by @lahma in #1807
- Reduce memory allocations by @lahma in #1808
- Use compiled regex for template's final cleanup by @lahma in #1809
- Use state with ConcurrentDictionary on modern platforms by @lahma in #1810
- Upgrade to Fluid 2.24 by @lahma in #1812
- Fix serialization of arrays with nullable items in TypeScript by @deceptiveSimplicity in #1813
- C# generator: create anoymous types with camel casing (reworked) by @WolfgangHG in #1788
New Contributors
- @philip-reed made their first contribution in #1797
Full Changelog: v11.2.0...v11.3.0
NJsonSchema v11.2.0
What's Changed
- Prepare for NET 9 SDK analysis by @lahma in #1743
- Add net8.0 target, drop net6.0 by @lahma in #1744
- Use collection expressions by @lahma in #1745
- Remove unnecessary usings by @lahma in #1746
- Enable implicit usings by @lahma in #1750
- Use compound assignment and simplify delegate invocation by @lahma in #1749
- Use pattern matching by @lahma in #1748
- Simplify collection initialization by @lahma in #1751
- Use expression bodies for properties and accessors by @lahma in #1752
- Remove redundant equality checks by @lahma in #1753
- Upgrade to NUKE 9 by @lahma in #1754
- Fix analysis warnings in tests by @lahma in #1755
- Retrieve attributes once in JsonSchemaGenerator.Apply.DataAnnotations by @lahma in #1756
- Retrieve attributes only once in SystemTextJsonReflectionService.GenerateProperties by @lahma in #1757
- Upgrade to Fluid.Core version 2.13.1 by @lahma in #1758
- Make IgnoreEmptyCollectionsContractResolver special case ICollection.Count check by @lahma in #1759
- Improve JsonSchema.InitializeSchemaCollection performance by @lahma in #1760
- Update packages by @lahma in #1766
- Fix TypeMapper UseReference not used when mapping a GenericType by @desjoerd in #1762
- C# generator: create anoymous types with camel casing by @WolfgangHG in #1716
- Fix template caching by @Georgy-Losenkov in #1761
- Upgrade to Fluid 2.19.0 by @lahma in #1770
- Fix '#' in typescript property names by @TobiasMarklund in #1778
- Decode percent-encoded characters in $ref URIs - Fix issue #1539 by @viscontem in #1775
- Add support for UTC date-only format (yyyy-MM-ddZ) by @Eqwerty in #1774
- Upgrade packages by @lahma in #1780
- Fix analyzer issues and remove obsolete NoWarn items by @lahma in #1781
- Upgrade to Fluid 2.21.0 by @lahma in #1785
- Improve ClassTemplateModel performance by @lahma in #1786
- SampleJsonSchemaGenerator: Generate JSONSchema for openapi by @javierlarota in #1767
- Keep Original Enum Names for Reuse in Custom Templates by @lekhmanrus in #1763
- configurable fieldname by @notlazychen in #1733
- C# Generator: Generate range for different formats by @rbergheim in #1720
- feat: option to use c# 11 required keyword for required properties by @alpoi-x in #1711
- Throw more detailed error messages when encountering Json Schema errors by @hyzx86 in #1707
- Use generated property name for constructor parameters by @fzzle in #1662
New Contributors
- @desjoerd made their first contribution in #1762
- @WolfgangHG made their first contribution in #1716
- @Georgy-Losenkov made their first contribution in #1761
- @TobiasMarklund made their first contribution in #1778
- @viscontem made their first contribution in #1775
- @Eqwerty made their first contribution in #1774
- @javierlarota made their first contribution in #1767
- @lekhmanrus made their first contribution in #1763
- @notlazychen made their first contribution in #1733
- @rbergheim made their first contribution in #1720
- @alpoi-x made their first contribution in #1711
- @hyzx86 made their first contribution in #1707
- @fzzle made their first contribution in #1662
Full Changelog: v11.1.0...v11.2.0
NJsonSchema v11.1.0
What's Changed
- Update NuGet packages (Namotion.Reflection, STJ, etc.)
- Upgrade to NUKE 8.1 by @lahma in #1731
- Upgrade packages by @lahma in #1719
- Add support for STJ-native C# code gen by @schnerring in #1675
- fixes #1728 return null when subType is not found, fixes Stackoverflow exception by @ryanheath in #1729
- Fix: Resolve escaped "/" and "~" in JSON references by @nntzuekai in #1725
- Upgrade packages by @lahma in #1742
- Add support for non-string discriminators using System.Text.Json by @david-brink-talogy in #1724
New Contributors
- @schnerring made their first contribution in #1675
- @ryanheath made their first contribution in #1729
- @nntzuekai made their first contribution in #1725
- @david-brink-talogy made their first contribution in #1724
Full Changelog: v11.0.2...v11.1.0
NJsonSchema v11.0.2
What's Changed
- Upgrade to NUKE 8 by @lahma in #1669
- TypeScript generator: Use string type as the discriminator property type in specialized interfaces by @RicoSuter in #1718
Full Changelog: v11.0.1...v11.0.2