Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct definition of MultipleOf and ExclusiveMaximum. #116

Closed
wants to merge 1 commit into from

Conversation

deep-creek
Copy link
Contributor

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (891d383) 78.14% compared to head (4b98156) 78.14%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #116   +/-   ##
=======================================
  Coverage   78.14%   78.14%           
=======================================
  Files          10       10           
  Lines        1446     1446           
=======================================
  Hits         1130     1130           
  Misses        244      244           
  Partials       72       72           
Files Changed Coverage Δ
pkg/schemas/model.go 61.42% <ø> (ø)

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

Maximum float64 `json:"maximum,omitempty"` // Section 5.2.
ExclusiveMaximum bool `json:"exclusiveMaximum,omitempty"` // Section 5.3.
ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"` // Section 5.3.
Minimum float64 `json:"minimum,omitempty"` // Section 5.4.
ExclusiveMinimum bool `json:"exclusiveMinimum,omitempty"` // Section 5.5.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExclusiveMinimum should be a number, too

@omissis
Copy link
Owner

omissis commented Sep 30, 2023

@deep-creek I checked the spec and in a previous draft it was a boolean. I'm ok with updating it, but I guess Exclusive Minimum should be a float64

@omissis
Copy link
Owner

omissis commented Sep 30, 2023

Replaced by #127 (just a rebased from main and added one missing type conversion). Thanks for your contribution! 🙏

@omissis omissis closed this Sep 30, 2023
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.

2 participants