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: minItems for relevant geometry types #19

Merged
merged 1 commit into from
Dec 18, 2024
Merged

fix: minItems for relevant geometry types #19

merged 1 commit into from
Dec 18, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Dec 12, 2024

Among other uses, we use this module to generate random geometries (see @mapeo/mock-data). Without minItems annotations, we would generate invalid geometries. This fixes that.

This also fixes a related bug: I used minLength, not minItems, for LineString and MultiLineString.

This is necessary for digidem/comapeo-cloud#36.

Among other uses, we use this module to generate random geometries (see
`@mapeo/mock-data`). Without `minItems` annotations, we would generate
invalid geometries. This fixes that.

This also fixes a related bug: I used `minLength`, not `minItems`, for
`LineString` and `MultiLineString`.
@EvanHahn EvanHahn requested a review from gmaclennan December 12, 2024 21:40
Copy link

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 12, 2024, 9:40 PM

@EvanHahn EvanHahn merged commit 37a2061 into main Dec 18, 2024
3 checks passed
@EvanHahn EvanHahn deleted the fix-minitems branch December 18, 2024 17:58
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