Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the attributes in struct fields #239

Merged
merged 1 commit into from
Nov 6, 2018

Commits on Nov 6, 2018

  1. Add support for the attributes in struct fields

    This commit adds support for the following attributes in the struct
    fields:
    
    - "minimum": for numeric fields, via `minimum:"value"` struct tag
    - "maximum": for numeric fields, via `maximum:"value"` struct tag
    - "minLength": for string fields, via `minLength:"value"` struct tag
    - "maxLength": for string fields, via `maxLength:"value"` struct tag
    - "enums": via `enums:"value1,value2,value3"` struct tag
    - "default": via `default:"value"` struct tag
    
    All these tags except "default" are also supported in "array" fields.
    Nikolai Obedin committed Nov 6, 2018
    Configuration menu
    Copy the full SHA
    1095ca5 View commit details
    Browse the repository at this point in the history