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

Add format to array items subschema #25

Merged
merged 2 commits into from Jul 21, 2022
Merged

Conversation

jawn-smith
Copy link
Contributor

Closes #24

This simply looks for the "format" struct tag when an array is specified and sets the value in the subschema.

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.

Seems reasonable from the outset, would be great if there was a test for this use-case though!

@samlown samlown added invalid This doesn't seem right needs tests Not enough tests for this to be accepted and removed invalid This doesn't seem right labels Jul 5, 2022
@jawn-smith
Copy link
Contributor Author

Thanks for the review! I'll add a test case and look into the failing lint.

@jawn-smith
Copy link
Contributor Author

I have added a test case. It appears the failing golangci-lint test is unrelated to my changes.

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.

Looks good! Thanks!

@samlown samlown merged commit d780b03 into invopop:main Jul 21, 2022
@samlown samlown removed the needs tests Not enough tests for this to be accepted label Jul 21, 2022
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 option for "format" of array items
2 participants