Skip to content

DEVXP-2541: feat(next): add support for format #128

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

Merged
merged 14 commits into from
Feb 11, 2025

Conversation

dragidavid
Copy link
Collaborator

This PR does a few things. First and foremost, adds support for format and it fixes some issues we had around type checking and linting.

  • supports all the different formats that are listed in the official docs
  • fixes lint by adding ignored folders to our eslint.config.mjs (we were running lint on the json-schema-test-suite folder as well which is not ideal)
  • adds typecheck script to look for ts errors in both the src and now the test folder (we had quite a few ts errors in the test folder that we didn't catch before)
    • also fixes the existing ts errors of course
  • adds the new check step to the build-next.yml file so we don't miss these errors in the future
  • moved the json-schema-test-suite related files in their own folder for clarity and ease of understanding

Last but not least I re-run the external tests and it resulted in a pretty good diff, lot less tests failing now! I ran this about 5 times to make sure and it seems correct 😅

Screenshot 2025-02-11 at 11 03 51

- we had quite a few type errors in the test folder that we missed
- linter was checking every folder including the json-schema-test-suite which we don't want
- we were missing the `module` from `package.json` resulting in a warning in the console when running tests
- makes it cleaner and easier to understand whats going on
- the schema was the wrong type here
antoniocapelo
antoniocapelo previously approved these changes Feb 11, 2025
Copy link
Collaborator

@lukad lukad left a comment

Choose a reason for hiding this comment

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

Looks great!

@dragidavid dragidavid merged commit 2b7af8d into main Feb 11, 2025
2 checks passed
@dragidavid dragidavid deleted the devxp-2541-semantic-validation-format branch February 11, 2025 12:53
Copy link
Collaborator

@thien-remote thien-remote left a comment

Choose a reason for hiding this comment

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

Hey 👋 sorry I'm late to the party. Left some comments for consideration in future changes!

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.

4 participants