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

fix: Values for section 6.2 should be numbers #100

Merged
merged 6 commits into from
Sep 26, 2023
Merged

fix: Values for section 6.2 should be numbers #100

merged 6 commits into from
Sep 26, 2023

Conversation

candiduslynx
Copy link
Contributor

@candiduslynx
Copy link
Contributor Author

@samlown it's ready for review

Copy link
Contributor

@samlown samlown left a comment

Choose a reason for hiding this comment

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

Thanks for this! Looks great from the outset. I've added a few questions regarding the use of pointers... I'm not convinced they're necessary, and if they are, there should be some tests to show it.

reflect.go Outdated Show resolved Hide resolved
.golangci.yml Show resolved Hide resolved
reflect.go Outdated Show resolved Hide resolved
@candiduslynx
Copy link
Contributor Author

@samlown review comments addressed

Copy link
Contributor

@samlown samlown left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@@ -1020,6 +1016,19 @@ func ignoredByJSONSchemaTags(tags []string) bool {
return tags[0] == "-"
}

// toJSONNumber converts string to *json.Number.
// It'll aso return whether the number is valid.
func toJSONNumber(s string) (json.Number, bool) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure the bool is necessary given that you can test for an empty number, but we can go with that.

@candiduslynx
Copy link
Contributor Author

@samlown could you merge & release 0.9.1?

@samlown samlown merged commit 72e420b into invopop:main Sep 26, 2023
2 checks passed
@samlown
Copy link
Contributor

samlown commented Sep 26, 2023

New release pushed. Thanks.

@candiduslynx candiduslynx deleted the fix/min-max-ptr branch September 26, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants