danielgolub / danielgolub/openapi-middleware
bug: add support for "multipleOf"
Open
bug
good first issue
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
`multipleOf` for numeric properties is not being validated
https://github.com/danielgolub/openapi-middleware/blob/a94833053a765a339bc4ec822c81a016579d46be/lib/ParameterValidator.js#L29
**To Reproduce**
OpenAPI definition:
```yaml
type: integer
multipleOf: 10
```
**Expected behavior**
Validate increments multiplied by the specified number
**Desktop (please complete the following information):**
- OS: MacBook Pro
- Node Version: 14.x, 16.x, 18.x
**Additional context**
Need to add custom validator to the `openapi-schema-validator` usage
Contributor guide
Assessment
This issue has not been assessed yet.