Skip to content

5.2.0

Choose a tag to compare

@claasd claasd released this 14 Apr 13:10
· 14 commits to main since this release
  • You can now use caching handlers instead of result handler. Set useCaching to true and register a cacing handler using AddCaffoaCachingHandler. The default implementation does no caching and delegates everything to the result handler.
  • You can now define two different functions and have them route to the same implementation. Use x-caffoa-alias on an function and point it to a different oeration id.
    • the functions must have the same signatures
    • the functions must be in the same tags if splitByTag is set to true
    • This is useful when you want to have the same function available with different paths, or when using it tohether with specialized result handlers.
  • new option perFunctionAccessCheck will create for each operation an additional {Name}CheckAccess method in the interface. This method can be implemented be used to perform pre-execution checks and can additionally change the data of the payload. The method is executed before caching is performed.