Pait

Latest version: v1.0.0

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

Scan your dependencies

Page 3 of 7

0.7.4.1

- Feature: Support Enum Type in response
- Refactor: check_field_type core func is_type -> create_pydantic_model

0.7.4

Improve the interaction of md documents and increase the functionality of existing plug-ins

- Style: Change md doc style
- Feature: Md Support i18n and Request Param table support display example and other column
- Feature: Friendly exc design
- Feature: Check Field's default,example and default_factory value type when program start
- Refactor: Refactor mock response plugin
- Feature: Add auto complete json plugin

0.7.3

Core architecture modification, support for plug-in mechanism

- Feature: Support create sub pait
- Feature: Support tag model
- Feature: Core support plugin and change param_handle to plugin
- Feature: mock response plugin and response model add is_core flag
- Feature: check json response plugin
- Feature: `required`&`at most one of` plugin
- Fix: fix not support default_factory

0.7.2

Improve openapi support (except for the security part);
Improve Response type;
Improve TestHelper;
Improve parsing speed

- Fix: fix openapi init check and fix can not found real field property in basemodel
- Fix: fix sanic load app bug
- Feature: Api Doc support schema param
- Feature: TestHelper add json method and limit auto select http method
- Feature: remove PaitBaseModel and support parse BaseModel pait.field
- Feature: openapi support all pait.field
- Feature: openapi schema support same model name(auto gen long name)
- Feature: add more response model and mock support mutil response model
- Feature: support openapi links
- Feature: Change param handler and improve parsing speed
- Refactor: TestHelper access_response
- Refactor: pait.app.base
- Refactor: pait func to pait obj
- Refactor: example and test

0.7.1

Emergency fix version

- Fix: fix ignore field.Depends parse in get_parameter_list_from_class

0.7

Simplify and optimize code logic and reduce code coupling.
Support for closure scenarios and the addition of several parameters to pait()

- Fix: Fix, Resolve the key mismatch between Field.alias and request value
- Fix: fix incompatibility with different fields having the same alias
- Feature: Refactor model.config and model.core, pait() add param `enable_mock_response`
- Feature: Laze property support auto use class
- Feature: Support closure cbv
- Feature: Support for user-defined Pydantic BaseModel Config (for pait dynamically produced Pydantic BaseModel based on function parameters)
- Feature: Api doc route support https and use pait()

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.