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 JsonSchema.Net version #19610
Update JsonSchema.Net version #19610
Conversation
@@ -124,7 +124,7 @@ | |||
<value>Cannot parse the JSON.</value> | |||
</data> | |||
<data name="InvalidJsonAgainstSchemaDetailed" xml:space="preserve"> | |||
<value>The JSON is not valid with the schema: {0} at {1}</value> |
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.
When I updated, I tested this locally with a schema & instance that had a problem at the root. The error that's output just ends with "at", and the fact that there's an empty JSON Pointer indicating the root object isn't conveyed. I think the quotes help.
src/Microsoft.PowerShell.Commands.Utility/commands/utility/TestJsonCommand.cs
Outdated
Show resolved
Hide resolved
Looking into test failures... Edit: I know what the problem is. I can update tomorrow. |
Actually, I'm not sure what's going on. I think it may have something to do with running in Linux, but I can't be sure. Everything works in Windows and in WSL. This is without further changes. Note: I'm leaving on business tomorrow for a little over a week, so this PR may need to sit for a while. |
@daxian-dbw would you mind if I put some temporary |
@gregsdennis Please feel free to add debugging messages in the code or test. |
@gregsdennis Perhaps it is Unix line end chars? |
No, it's having trouble finding the files (resolving |
Okay. That looks good. Now I just need to figure out this packaging stuff. @iSazonov I think you just fixed this for me before, but I don't know what you did. I'm happy to learn. Is there any documentation on it? The error just says,
but there are no instructions. I assume they're in the code somewhere? |
Hi @gregsdennis, thanks for finding the root cause and fix the issue!
|
Thanks, @daxian-dbw, I don't think I could have found that on my own. Weird. It looks like nuget is packaging my Spanish language pack now. I'll have to look into that. I had to update VS at some point in this process, and then I published a new version of the package. |
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
@daxian-dbw everything looks good from my side. Thanks for the help. Let me know if there's anything else you want me to change. |
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.
LGTM. Thanks @gregsdennis for your contribution!
src/Microsoft.PowerShell.Commands.Utility/commands/utility/TestJsonCommand.cs
Show resolved
Hide resolved
@daxian-dbw @iSazonov I see releases for 7.2/7.3 just went out and 7.4-preview is also available, but the release notes don't have anything about this. Just curious when this change is planned to release. Thanks. |
@gregsdennis The commit is not backported to 7.2/7.3. (And will not be). The commit will be in 7.4 Preview4. |
Thank you! |
🎉 Handy links: |
PR Summary
Follow-up to #18141. Updates JsonSchema.Net to latest version: v3.3.2 -> v4.1.0.
Release notes can be viewed here.
PR Context
While not strictly required now, this PR sets up for later updates that will incorporate additional support for JSON Schema.
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).