| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Refactors output-cache validation to use shared JSON schema utilities.
Changes:
| File | Description |
|---|---|
| src/cli/output-cache.ts | Replaces manual checks with shared JSON validators. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks OK, but a good catch from Copilot there that we missed on the previous PR. I also added a comment about avoiding the disconnect between the schema and VersionInfo type. When using the json module for schemas, it is desirable to derive the corresponding type with FromSchema to avoid them going out of sync.
Sorry, something went wrong.
|
@mario-campos Also looks like the linter check is failing again. If you haven't already enabled editor.formatOnSave, that might be a useful thing to do to help prevent this. |
Sorry, something went wrong.
This makes it easier to test. Credit to @mbg.
That was a downstream (in tools-feature.ts) effect of the changes made to VersionInfo. It resulted in VersionInfo.features having type any, despite the override. Copilot suggested using Omit<> to fix it, so I did. That being said, I wonder if it would be better to define a JSON validator for VersionInfo.features such that we can derive VersionInfo directly from its schema? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Workflow types:
Products:
Environments:
How did/will you validate this change?
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist