fastapi/fastapi (fastapi)
### [`v0.114.0`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.114.0)
[Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.113.0...0.114.0)
You can restrict form fields to only include those declared in a Pydantic model and forbid any extra field sent in the request using Pydantic's `model_config = {"extra": "forbid"}`:
```python
from typing import Annotated
from fastapi import FastAPI, Form
from pydantic import BaseModel
app = FastAPI()
class FormData(BaseModel):
username: str
password: str
model_config = {"extra": "forbid"}
@app.post("/login/")
async def login(data: Annotated[FormData, Form()]):
return data
```
Read the new docs: [Form Models - Forbid Extra Form Fields](https://fastapi.tiangolo.com/tutorial/request-form-models/#forbid-extra-form-fields).
##### Features
- ✨ Add support for forbidding extra form fields with Pydantic models. PR [#12134](https://redirect.github.com/fastapi/fastapi/pull/12134) by [@tiangolo](https://redirect.github.com/tiangolo).
##### Docs
- 📝 Update docs, Form Models section title, to match config name. PR [#12152](https://redirect.github.com/fastapi/fastapi/pull/12152) by [@tiangolo](https://redirect.github.com/tiangolo).
##### Internal
- ✅ Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic. PR [#12147](https://redirect.github.com/fastapi/fastapi/pull/12147) by [@tiangolo](https://redirect.github.com/tiangolo).
devfeel/mapper (github.com/devfeel/mapper)
### [`v0.7.14`](https://redirect.github.com/devfeel/mapper/releases/tag/v0.7.14): Feature: Implement variable arguments based on NewMapper for flexible configuration settings when you init mapper
[Compare Source](https://redirect.github.com/devfeel/mapper/compare/v0.7.13...v0.7.14)
##### Version 0.7.14
- Feature: Implement variable arguments based on NewMapper for flexible configuration settings when you init mapper.
- Feature: Add Setting struct used to Config mapper
- you can use like this:
```go
// Default Setting:
// EnabledTypeChecking: false,
// EnabledMapperStructField: true,
// EnabledAutoTypeConvert: true,
// EnabledMapperTag: true,
// EnabledJsonTag: true,
// EnabledCustomTag: false,
// EnableFieldIgnoreTag: false,
/// When you use default setting
NewMapper()
/// When you will change some setting
NewMapper(CTypeChecking(true), CCustomTagName("-"))
```
- 2024-09-06 19:00 in ShangHai
**Full Changelog**: https://github.com/devfeel/mapper/compare/v0.7.13...v0.7.14
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[x] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^0.113.0
->^0.114.0
v0.7.13
->v0.7.14
Release Notes
fastapi/fastapi (fastapi)
### [`v0.114.0`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.114.0) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.113.0...0.114.0) You can restrict form fields to only include those declared in a Pydantic model and forbid any extra field sent in the request using Pydantic's `model_config = {"extra": "forbid"}`: ```python from typing import Annotated from fastapi import FastAPI, Form from pydantic import BaseModel app = FastAPI() class FormData(BaseModel): username: str password: str model_config = {"extra": "forbid"} @app.post("/login/") async def login(data: Annotated[FormData, Form()]): return data ``` Read the new docs: [Form Models - Forbid Extra Form Fields](https://fastapi.tiangolo.com/tutorial/request-form-models/#forbid-extra-form-fields). ##### Features - ✨ Add support for forbidding extra form fields with Pydantic models. PR [#12134](https://redirect.github.com/fastapi/fastapi/pull/12134) by [@tiangolo](https://redirect.github.com/tiangolo). ##### Docs - 📝 Update docs, Form Models section title, to match config name. PR [#12152](https://redirect.github.com/fastapi/fastapi/pull/12152) by [@tiangolo](https://redirect.github.com/tiangolo). ##### Internal - ✅ Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic. PR [#12147](https://redirect.github.com/fastapi/fastapi/pull/12147) by [@tiangolo](https://redirect.github.com/tiangolo).devfeel/mapper (github.com/devfeel/mapper)
### [`v0.7.14`](https://redirect.github.com/devfeel/mapper/releases/tag/v0.7.14): Feature: Implement variable arguments based on NewMapper for flexible configuration settings when you init mapper [Compare Source](https://redirect.github.com/devfeel/mapper/compare/v0.7.13...v0.7.14) ##### Version 0.7.14 - Feature: Implement variable arguments based on NewMapper for flexible configuration settings when you init mapper. - Feature: Add Setting struct used to Config mapper - you can use like this: ```go // Default Setting: // EnabledTypeChecking: false, // EnabledMapperStructField: true, // EnabledAutoTypeConvert: true, // EnabledMapperTag: true, // EnabledJsonTag: true, // EnabledCustomTag: false, // EnableFieldIgnoreTag: false, /// When you use default setting NewMapper() /// When you will change some setting NewMapper(CTypeChecking(true), CCustomTagName("-")) ``` - 2024-09-06 19:00 in ShangHai **Full Changelog**: https://github.com/devfeel/mapper/compare/v0.7.13...v0.7.14Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: