Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 2.01 KB

CHANGELOG.md

File metadata and controls

55 lines (45 loc) · 2.01 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Changed

  • Replaced dependency on Newtonsoft.Json with System.Text.Json
    • Previously we were inspecting types for the attributes provided by Newtonsoft.Json such as [JsonProperty]. If you were relying on these attributes, you will now need to set options.SchemaIdSelector and/or options.PropertyNameSelector to a function which inspects those attributes. e.g.
    services.AddAsyncApiSchemaGeneration(options =>
    {
        options.PropertyNameSelector = prop => 
            prop.GetCustomAttribute<JsonPropertyAttribute>()?.PropertyName ?? prop.Name;
    });

Added

  • Multi-targeting netcoreapp3.0 and netstandard2.0
  • Endpoint-aware middleware on netcoreapp3.0+
    app.UseEndpoints(endpoints =>
    {
        endpoints.MapAsyncApiDocuments();
    })

Fixed

  • AsyncApiOptions.PropertyNameSelector was not being used

v0.2.0 - 2020-08-04

Added

  • Support System.Guid as a JSON Schema string with "uuid" format.
  • Default Schema ID factory handles generics in a human-friendly format
    • List<Foo> becomes "listOfFoo"
    • Dictionary<string, Foo> becomes "dictionaryOfStringAndFoo"
    • etc

v0.1.0 - 2020-07-02

Changed

  • First stable release!