Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Better default error messages for validators #885

Closed
Milestone
@mcgfeller

Description

@mcgfeller

The default error message for validators ('Not a valid choice.') is not really helpful.

I suggest better default messages, for example:

  • OneOf / ContainsOnly: 'invalid value: {input}; use one of {choices}.'
  • Range: 'invalid value: {input}; must be between {min} and {max}.'

The error argument could be a callable as well, for example to restrict the enumeration of valid choices to a certain length.

Thanks for Marshmallow and best regards,
Martin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp