Skip to content

希望增加未知字段过滤,或存在未知字段时报错的选项。 #83

Open

Description

@fuguohong

过滤未知字段是一个很常用且有用的功能啊,前端传参时不一定针对每个接口都pick。如果需要更严格的时候, 存在未知字段就返回错误。这样经过校验的参数都可以放心使用。不然参数经过校验后,还需要去判断存不存在一些未知字段?

Activity

  1. chenxingli1 commented on Oct 27, 2020

    @chenxingli1

    哈哈,我自己fork的版本加了这个功能,但是合并不上去

  2. qq295823929 commented on Aug 17, 2021

    @qq295823929

    未知字段你管他干啥呢,你在业务场景中不使用不就好了吗,感觉这是个伪需求

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