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

revise: removes ordered_float from the f64 fields #6

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

claymcleod
Copy link
Member

@claymcleod claymcleod commented Feb 7, 2025

Upon a closer look, OpenAPI doubles don't have a strict definition of what they conform to, so I assume it's going to be IEEE-754. As such, the behavior of Rust to implement the PartialEq/PartialOrd without Eq/Ord should carry through here. Indeed, I see no evidence that something like NaN == NaN should hold.

Before submitting this PR, please make sure:

  • You have added a few sentences describing the PR here.
  • You have added yourself or the appropriate individual as the assignee.
  • You have added at least one relevant code reviewer to the PR.
  • Your code builds clean without any errors or warnings.
  • You have added tests (when appropriate).
  • You have updated the README or other documentation to account for these
    changes (when appropriate).
  • You have added an entry to the relevant CHANGELOG.md (see
    "keep a changelog" for more information).
  • Your commit messages follow the conventional commit style.

@claymcleod claymcleod requested a review from peterhuene February 7, 2025 22:03
@claymcleod claymcleod self-assigned this Feb 7, 2025
@claymcleod claymcleod changed the title revise: removes ordered_float revise: removes ordered_float from the f64 fields Feb 7, 2025
Upon a closer look, [OpenAPI
`double`s](https://swagger.io/docs/specification/v3_0/data-models/data-types/#numbers)
don't have a strict definition of what they conform to, so I assume it's
going to be IEEE-754. As such, the behavior of Rust to implement the
`PartialEq`/`PartialOrd` without `Eq`/`Ord` should carry through here.
Indeed, I see no evidence that something like `NaN == NaN` should hold.
@claymcleod claymcleod merged commit 7436f35 into main Feb 7, 2025
3 checks passed
@claymcleod claymcleod deleted the ordered-float branch February 7, 2025 22:06
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