Skip to content

Releases: mpkocher/pydantic-cli

Improve support for Enums

03 Mar 02:49
50d1eda
Compare
Choose a tag to compare

Fix friction point with argparse validation. Pydantic is now completely responsible for casting and validation.

New release with Manifest.in

10 Nov 22:51
bcad5bb
Compare
Choose a tag to compare
Merge pull request #47 from mpkocher/bump-version-421

Bump version to include manifest.in

Add py.typed for better mypy support. Improved docs.

28 Aug 06:15
711aedd
Compare
Choose a tag to compare
Merge pull request #43 from mpkocher/fix-doc-typo

Fix typos in docs.

Improve Ergonomics by using cli= in Field

26 Aug 00:26
ff8755a
Compare
Choose a tag to compare

Improve ergonomics by using cli=(short, long) or cli=(long,) in Field.

Fixes for unhashable default values

24 Aug 01:09
abdbbcc
Compare
Choose a tag to compare
Merge pull request #37 from mpkocher/fix-unhashable-bug

Fix issue with assuming defaults are hashable

Improvements to boolean flags

23 Aug 05:01
2ca496f
Compare
Choose a tag to compare
  • backward incompatible changes to how boolean flags are handled
  • Common/Vanilla case of debug:bool = False can be customized with (-d, --debug) to negate the default value.
  • Required x:bool, or x:Optional[bool], x:Optional[bool] = None semantics remain the same with (--enable-x, --disable-x) format.
  • Use Pydantic's Field instead of Config.CLI_EXTRA_OPTIONS to have one consistent model
  • Improve help messages by adding better type description and explicitly display if a field is required

Fix for bug in Enum/choices where Union fields are used

21 Aug 11:11
d11cc0e
Compare
Choose a tag to compare
Merge pull request #35 from mpkocher/hotfix-enum

Fix bug for enum case where Union is used in issubclass.

Improve support for simple Enums

20 Aug 01:29
716580e
Compare
Choose a tag to compare
Merge pull request #34 from mpkocher/add-enum

Version 3.4.0. Improve support for simple Enums.

Added Support for List/Set

19 Aug 23:55
a9c0c35
Compare
Choose a tag to compare
Merge pull request #33 from mpkocher/update-docs-for-list

Bump to 3.3.0. Update docs. Extend List example to include a Set.