-
Notifications
You must be signed in to change notification settings - Fork 3
Accept None values for optional fields in json schema #52
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
Open
nvdaes
wants to merge
44
commits into
nvaccess:main
Choose a base branch
from
nvdaes:changelog
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 41 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
9d95d97
Add changelog
nvdaes 4a7f9b4
Add changelog to json schema
nvdaes 5427327
Merge remote-tracking branch 'origin/main' into changelog
nvdaes 23e4bb4
Address code review
nvdaes 3ece59f
Update _validate/addonVersion_schema.json
seanbudd 1f5dc75
Apply suggestions from code review
nvdaes d9f3f49
Address review
nvdaes f2efd30
Address review
nvdaes b0754e6
Assign None to changelog when appropriate
nvdaes 9835dd8
Merge
nvdaes 07d493f
Pre-commit auto-fix
pre-commit-ci[bot] 4dcd7df
Merge branch 'main' into changelog
nvdaes b921d6f
Fix
nvdaes ff43517
Fix
nvdaes aaf2b85
Remove unassigned addonData
nvdaes 8b1ed2a
Fix test
nvdaes 38da96d
Fix error message
nvdaes ecb8957
harmonize test for changelog with homepage
nvdaes 098a480
Fix test
nvdaes cbe5d18
Remove function
nvdaes c93e4a5
Commend python preference to test locally
nvdaes a0b53f8
Lint fixes
nvdaes a35e5db
Add translated changelog optional and fix linting errors by casting t…
nvdaes 3529858
Fix pyproject
nvdaes c816603
Add ignore type comments
nvdaes 288ea2f
Add ignore type comment
nvdaes 40274dd
Address review
nvdaes f776545
Address review
nvdaes ebe905a
Remove accidentally committed files
nvdaes 75d6e0d
Try to ensure that homepage and changelog are str or None
nvdaes bb03c83
Address feedback
nvdaes 9a044f7
Merge remote-tracking branch 'nvaccess/main' into changelog
nvdaes cd3e0a4
Apply suggestions from code review
seanbudd 0064120
Apply suggestions from code review
seanbudd d0af4bd
Apply suggestions from code review
seanbudd 438f427
Update _validate/createJson.py
seanbudd ffbfe0a
Apply review suggestions
nvdaes 7fd4b0c
Update createJson casting fields to str according to schema
nvdaes 3385e8f
Cast optionals in validate
nvdaes 98f2703
Cast translated changelog in regenerate translations to ensure that i…
nvdaes 92b193f
Add null type to json schema
nvdaes 2d838ae
Update _validate/validate.py
nvdaes c000bff
Update regenerateTranslations
nvdaes 89e3ba7
Pre-commit auto-fix
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Casting
translatedChangelogtostrwhen it can beNonewill cause a runtime error. The cast should becast(str | None, translatedChangelog)or the None case should be handled separately.