Skip to content

validation rules on model members and parameters #13

@fluxtah

Description

@fluxtah

The grammar could be updated to validate parameters for instance:

params 
    auth_token:string (required), 
    page:long (required),
    range:long (required, 1..50),
    email:string (required, email)

The above is just an idea, would need to flesh out what options would be available for each field.

Required Flag

auth_token:string (required)

Ranges (for numerical types)

Can draw some inspiration from ruby here http://www.ruby-doc.org/core-2.1.2/Range.html

range:long (1..50),
range2:long (5..*),
range3:long (20..30)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions