Skip to content

Releases: PawelGerr/Thinktecture.Runtime.Extensions

9.0.0

11 May 12:04
ba345bd
Compare
Choose a tag to compare
  • Dropped support for EF Core 6
  • Removed "validatable" smart enums

8.9.1

08 May 18:28
57c04b9
Compare
Choose a tag to compare
  • [Swashbuckle] IRequiredMemberEvaluator is not "pubternal" anymore
  • [Swashbuckle] Added handling for NonNullableReferenceTypesAsRequired
  • [Swashbuckle] Added VarNamesFromDotnetIdentifiers as a new option for SmartEnumSchemaExtension

8.9.0

08 May 05:46
f27c091
Compare
Choose a tag to compare
  • [Swashbuckle] RequiredMemberEvaluator can be configured.
  • [SourceGen] Properties using the keyword field are considered "assignable"

8.8.1

05 May 05:52
462c798
Compare
Choose a tag to compare
  • [Swashbuckle] Non-null reference types and types with IDisallowDefaultValue are flagged as required.
  • [Swashbuckle] ComplexValueObjectSchemaFilter sets "additionalProperties" to false because serializers are quite strict.
  • Serializers are using Argument for structs disallowing default values to recognize missing values.
  • Serializers and model binders for keyed value objects check whether the (struct) value is missing, everything else is the responsibility of the validation.

8.8.0

27 Apr 11:21
542d7f6
Compare
Choose a tag to compare
  • The name of the parameter state in Switch/Map is configurable.
  • Marked several public APIs as obsolete or "pubternal".
  • Added support for Open API (Swashbuckle)

8.7.0

16 Apr 19:32
c7e1b18
Compare
Choose a tag to compare
  • [EF] Added extension method HasValueObjectConversion for property builders
  • JSON and MessagePack serializers check for AllowDefaultStructs and for null
  • ASP.NET Core model binder behaves similar to JSON/MessagePack converters when checking for AllowDefaultStructs and null
  • Complex value objects check NRTs for null
  • Generation of serializers can be deactivated via SmartEnumAttribute/ValueObjectAttribute
  • [Analyzer] Struct-based smart enums and value objects with reference key types, as well as ad hoc unions must be required to get proper initialization
  • Conversion of unions from/to a value can be controlled via UnionAttribute

8.6.1

02 Apr 16:11
31eb593
Compare
Choose a tag to compare
  • [Analyzer] Multiple restrictions for regular unions
    • Union records must be sealed (because of copy constructor)
    • Union class must be sealed or have private constructors
    • Derived type of a union must not be less accessible than the base union
    • Derived type of a union must not have unbound generic parameters
  • Implicit conversion is not generated for regular unions if it contains required members.
  • Special handling of types and members starting with underscores and numbers

8.6.0

29 Mar 18:23
6c5568d
Compare
Choose a tag to compare
  • [Regular unions] An implicit conversion is generated for every unique ctor arg type (can be disabled with SkipImplicitConversionFromValue)

8.5.5

27 Mar 19:04
2098d5d
Compare
Choose a tag to compare
  • Added analyzer for non-abstract generic types inside a union.

8.5.4

27 Mar 19:04
95590da
Compare
Choose a tag to compare
  • [Analyzer] Value objects and smart enums must not be inside a generic class