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

WIP removed the apparently-unnecessary anyOf blocks #338

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gmabey
Copy link
Contributor

@gmabey gmabey commented Feb 4, 2025

Note that (for clarity on the substantive edits) this does not include appropriate indent-level changes.
Closes #337

@Teque5
Copy link
Collaborator

Teque5 commented Feb 5, 2025

I think you should include the indent changes here too. I usually do a round-trip in python but I think people also use jq for this.

@@ -76,7 +91,7 @@
"default": 0,
"minimum": 0,
"!comment": "The maximum value for this property is equal to 2^63 - 1, making it easy to fit into a signed 64-bit integer.",
"maximum": 9223372036854775807,
"maximum": 9223372036854776000,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you meant to change these. This number is 2**63 + 192. Was previously max signed integer.

@gmabey
Copy link
Contributor Author

gmabey commented Feb 5, 2025

:-O blames jq
At least the mystery is solved regarding how the previous value for maximum came to be -- it was surely int64_t(double(2**64-1))

@gmabey
Copy link
Contributor Author

gmabey commented Feb 5, 2025

I suppose if we were smart we would use an integer small enough such that int64_t(double(maximum_value)) < (2**63-1) ...

@gmabey
Copy link
Contributor Author

gmabey commented Feb 6, 2025

I now notice that the jq-ification rewrote 1e12 -> 1000000000000 which I dislike

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.

simplification of sigmf-schema.json
2 participants