kataras / kataras/iris

[QUESTION] Read* like ReadQuery ignores "required" tags and don't kick out an error

Open
#1,727 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Schema supportet Reader dont respect "required" tag

**To Reproduce**
https://github.com/kataras/iris/blob/master/_examples/request-body/read-query/main.go < don't send a query with name in it -> no error

**Expected behavior**
Requests without the required fileds, should return an error.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: Ubuntu 18.04

**iris.Version**
- master

**Additional context**
Maybe the https://github.com/iris-contrib/schema need an update and/or fixes?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.