Skip to content

rule types and nil #71

Description

@aaronkavlie-wf

go-rest accepts nil values for seemingly every field, regardless of the Type specified in the rule. This leads to panics if the user does a type assertion in InputHandler functions or other code.

It doesn't seem like there are many use cases for intentionally allowing null inputs if the type is e.g. rest.String or rest.Map.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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