Django-api-forms

Latest version: v0.21.0

Safety actively analyzes 630094 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 10

1.0.0rc.3

- **Fixed**: Removed validation of non-required fields if they are not present in the request

1.0.0rc.2

- **Fixed**: Fixed "weird" behaviour with missing `clean_data` values if using `ListField`

1.0.0rc.1

This release has been inspired by [Problem Details for HTTP APIs - RFC7807](https://tools.ietf.org/html/rfc7807) and
blog post [Structuring validation errors in REST APIs](https://medium.com/engineering-brainly/structuring-validation-errors-in-rest-apis-40c15fbb7bc3)
written by [k3nn7](https://github.com/k3nn7).

The main idea has been to simplify validation process on the client side by flattening errors output. To achieve such
a goal, the whole validation process has been rewritten (and luckily for us, much simplified).

- **Changed**: Positional validation errors for lists
- **Changed**: `ImageField` and `FileField` requires [Data URI](https://datatracker.ietf.org/doc/html/rfc2397)
(issue [Raise ValidationError in invalid Data URI by default](https://github.com/Sibyx/django_api_forms/issues/22))
- **Removed**: `Form.fill()` method replaced by `Form.populate()`
- **Removed**: `fill_` methods replaced by population strategies

0.21.1

- **Changed**: Raw base64 payload in `FileField` and `ImageField` fires `DeprecationWarning`. Use Data URI instead.

0.21.0

- **Added**: Introduced `mapping`
- **Added**: Override strategies using `field_type_strategy` and `field_strategy`

0.20.1

- **Fixed**: `DictionaryField` was unable to raise validation errors for keys

Page 2 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.