Skip to content

Remove unnecessary field aliases (Str, Int, Bool, etc.) #1828

Description

@greyli

Marshmallow/Flask-Marshmallow provides some aliases for fields, for example, Str and String. To keep everything simple and consistent, I suggest removing these aliases, so that the IDE will not prompt Url and URL when you type "U" (in that case the users have to make the choice each time).

Proposal:

Remove the following aliases:

  • Str
  • Int
  • Bool
  • Url
  • UrlFor
  • AbsoluteUrlFor

Keep the following:

  • String
  • Integer
  • Boolean
  • URL
  • URLFor
  • AbsoluteURLFor

Originally posted in apiflask/apiflask#63

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions