google / google/gnostic

When the field type is uint, it is invalid when setting the minimum to 0

Open
#373 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

### proro
```proto
uint32 mediNum = 2 [
(validate.rules).uint32 = {gte: 0, lte: 16777215},

(openapi.v3.property) = {
title: "number";
description: "number";
type: "integer";
minimum: 0;
maximum: 16777215;
}
];
```

### yaml
```yaml
mediNum:
title: number
maximum: 1.6777215e+07
type: integer
description: number
format: uint32
```

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.