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

Update Blocks Exist Json Schema for JsonPath Friendliness #9905

Merged

Conversation

thsparks
Copy link
Contributor

@thsparks thsparks commented Mar 5, 2024

The structure of the blockCounts input for blocksExist validator plans was not JsonPath friendly, as the customizable blockId was treated as a property and it was also a part of the path for count. This change adjusts the schema so both blockId and count can be referenced more easily by JsonPath, which we will need for parameterized criteria.

No user-facing functionality changes.

Copy link
Contributor

@eanders-ms eanders-ms left a comment

Choose a reason for hiding this comment

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

👍

@thsparks thsparks merged commit 038ac49 into master Mar 5, 2024
6 checks passed
@thsparks thsparks deleted the thsparks/teachertool/jsonpath_friendly_block_exists branch March 5, 2024 20:06
thsparks added a commit to microsoft/pxt-microbit that referenced this pull request Mar 6, 2024
The structure of the blockCounts input for blocksExist validator plans was not JsonPath friendly, as the customizable blockId was treated as a property and it was also a part of the path for count. This change adjusts the schema so both blockId and count can be referenced more easily by JsonPath, which we will need for parameterized criteria.

Depends on microsoft/pxt#9905.
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.

2 participants