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 #405 , and both new and corrected tests for JsonGenerator #406

Merged
merged 7 commits into from
Oct 12, 2024

Conversation

TobyDS
Copy link
Contributor

@TobyDS TobyDS commented Oct 11, 2024

Description

Adds and corrects current tests for JsonGenerator. This pull request also identifies and fixes an issue with the current code where changing a field type does not cause the cache to be invalidated.

Fixes #(405)
Adds to #(383)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable):

introduces a test which fails as it correctly identifies an issue with the current code
…orrectly

Modified isDataCached to compare both keys and value types in the schema to ensure cache invalidation when field types change. This resolves the issue where changing a field type (e.g., from int to firstName) did not update the preview as expected.
Copy link

vercel bot commented Oct 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-dev-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 9:24pm

@TobyDS TobyDS changed the title Bug fix, and both new and corrected tests for JsonGenerator Fix #405 , and both new and corrected tests for JsonGenerator Oct 11, 2024
@Bashamega Bashamega merged commit 68383cd into Bashamega:main Oct 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants