Skip to content

0.5.0

Choose a tag to compare

@junah201 junah201 released this 06 Feb 04:18
· 24 commits to main since this release
60aecd7

Highlight

Middleware

You can add your custom middleware, like this:

import json
from nexify import Nexify
from nexify.responses import JSONResponse


def custom_my_middleware(route, event, context, call_next, **kwargs):
    response = call_next(event, context, **kwargs)
    response.headers["x-custom-header"] = "Custom Value"
    return response

app = Nexify(middlewares=[custom_my_middleware])

@app.get("/items")
def read_items():
    return JSONResponse(content={"items": [{"name": "Item One"}, {"name": "Item Two"}]})

Features

Fixes

  • 🐛 Ensure .nexify directory exists before writing OpenAPI and template files. Commit e964f47 by @junah201
  • 🐛 Fix OpenAPI JSON serialization by using deepcopy to prevent mutation. Commit 61a335d by @junah201

Docs

Internal

  • 🐛 Fix branch condition in deploy-docs workflow for main branch