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 limit and config-version types to be integer, not number #186

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

MichelleArk
Copy link
Contributor

@MichelleArk MichelleArk commented Feb 12, 2025

limit and config-version types are currently mis-typed in these jsonschemas!

In dbt-core, these are both actually optional integers:

Note: only modifying 'latest' to avoid mutating schemas pertaining to EOL versions.

@MichelleArk MichelleArk changed the title s/number/integer on limit type Fix limit and config-version types to be integer, not number Feb 12, 2025
@MichelleArk MichelleArk marked this pull request as ready for review February 12, 2025 17:07
@MichelleArk MichelleArk requested a review from a team as a code owner February 12, 2025 17:07
Copy link
Collaborator

@joellabes joellabes left a comment

Choose a reason for hiding this comment

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

Note: only modifying 'latest' to avoid mutating schemas pertaining to EOL versions.

This is the exact right idea - but note that the json files in the root of the schemas directory are actually from the 1.4 era and before so should be left alone.

Accordingly I think you also missed applying changes to https://github.com/dbt-labs/dbt-jsonschema/blob/main/schemas/latest/dbt_yml_files-latest.json ?

@MichelleArk MichelleArk reopened this Feb 12, 2025
Copy link
Collaborator

@joellabes joellabes left a comment

Choose a reason for hiding this comment

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

incredible! thank youuu

@joellabes joellabes merged commit fa6cd1c into main Feb 12, 2025
27 checks passed
@joellabes joellabes deleted the fix-limit-type branch February 12, 2025 19:07
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