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

Switch schema version type to str #104

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Conversation

afshin
Copy link
Member

@afshin afshin commented Nov 17, 2024

In JupyterLab, the version field is defined as a string and in jupyter_events it is defined as a number.

The least disruptive resolution to this is to update jupyter_events to switch its schema version to be a str.

@afshin afshin added the bug Something isn't working label Nov 17, 2024
Type coerce `version` to be a string
@Carreau Carreau marked this pull request as ready for review December 17, 2024 10:36
@Carreau
Copy link
Member

Carreau commented Dec 17, 2024

Rebased on master and re-enabled workflows to run tests.

@Carreau Carreau merged commit 56da5c4 into jupyter:main Dec 17, 2024
25 checks passed
@@ -38,7 +38,7 @@ print(logger.schemas)
Validator class: Draft7Validator
Schema: {
"$id": "myapplication.org/example-event",
"version": 1,
""version": 1",
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
""version": 1",
"version": "1",

Copy link
Member

Choose a reason for hiding this comment

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

Rah... I'll make a PR

Copy link
Member Author

Choose a reason for hiding this comment

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

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants