Skip to content

Release v1.2.0

Choose a tag to compare

@gabriel-na gabriel-na released this 19 Dec 13:45
· 6 commits to main since this release

[New]

  • ProducesAttribute: Specifies which status code the endpoint/group will return and for which response type.

  • CorsAttribute: Specifies one or more cors policies that will be applied to endpoint/group

  • Diagnostic errors and warnings.

    Errors

    • EZ001: The class 'class name' that contains [Endpoint] must be declared as 'static'

    • EZ004: The method 'method name' must have a block body or be an expression body

    • EZ007: The method 'method name' must have only one HTTP method attribute

    Warnings

    • EZ002: The class 'class name' does not contain any annotated methods and will be ignored

More validations will be avaible in future releases.

[Fix]

  • Corrected README.md with missing attributes or wrong code

[Changed]

  • namespace EZ.MinimalApi.Extensions is no longer required in Program.cs;

⬇️ How to update

dotnet add package EZ.MinimalApi --version 1.2.0