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

connectors: update schemagen #2427

Merged
merged 1 commit into from
Feb 19, 2025
Merged

connectors: update schemagen #2427

merged 1 commit into from
Feb 19, 2025

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Feb 19, 2025

Description:

Updates the invopop/jsonschema package to the latest.

Although not used directly here, this will make doing things like oneOfs in generated schemas easier (although still not really "easy"), and I plan on doing that in later work.

Since this update is an almost-entirely mechanical update that touches just about every connector's test snapshots, I wanted to split it out as a separate PR.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

Updates the `invopop/jsonschema` package to the latest.

Although not used directly here, this will make doing things like `oneOfs` in
generated schemas easier (although still not really "easy"), and I plan on doing
that in later work.

Since this update is an almost-entirely mechanical update that touches just
about every connector's test snapshots, I wanted to split it out as a separate
PR.
Copy link
Member

@Alex-Bair Alex-Bair left a comment

Choose a reason for hiding this comment

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

LGTM! Just one small question for my own understanding.

sf "github.com/snowflakedb/gosnowflake"
orderedmap "github.com/wk8/go-ordered-map/v2"
Copy link
Member

Choose a reason for hiding this comment

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

What's the reason for switching from github.com/iancoleman/orderedmap to github.com/wk8/go-ordered-map/v2?

Copy link
Member Author

Choose a reason for hiding this comment

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

invopop/jsonschema changed to using that library for the ordered map that represents its Properties, so we have to use it too in cases where we manipulate the Properties directly, such as building up a schema manually like we do in this file and a few other places.

Copy link
Member

Choose a reason for hiding this comment

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

Got it, thank you!

@williamhbaker williamhbaker merged commit 53c613c into main Feb 19, 2025
52 of 55 checks passed
@williamhbaker williamhbaker deleted the wb/update-schemagen branch February 19, 2025 20:42
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