Skip to content

Update oas_models.py to support multipleOf#139

Open
kevinmcody wants to merge 1 commit intoMarketSquare:mainfrom
kevinmcody:main
Open

Update oas_models.py to support multipleOf#139
kevinmcody wants to merge 1 commit intoMarketSquare:mainfrom
kevinmcody:main

Conversation

@kevinmcody
Copy link
Copy Markdown

Fixes #76

Support multipleOf constraint on an Integer or Number.

Strategy: Use the ceiling of Min divided by multipleOf, floor of Max divided by multipleOf, for the random min/max, then multiply by multipleOf

Support multipleOf constraint on an Integer or Number.

Strategy:  Use the ceiling of Min divided by multipleOf, floor of Max divided by multipleOf, for the random min/max, then multiply by multipleOf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for multipleOf

1 participant