HTTPs all the things (#1710)
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@
|
|||||||
$workingName = if ($workingName) {$workingName} else {"Working"}
|
$workingName = if ($workingName) {$workingName} else {"Working"}
|
||||||
$netCliChannel = "2.0"
|
$netCliChannel = "2.0"
|
||||||
$netCliVersion = "2.1.4"
|
$netCliVersion = "2.1.4"
|
||||||
$nugetUrl = "http://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
|
$nugetUrl = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
|
||||||
|
|
||||||
$baseDir = resolve-path ..
|
$baseDir = resolve-path ..
|
||||||
$buildDir = "$baseDir\Build"
|
$buildDir = "$baseDir\Build"
|
||||||
@@ -135,7 +135,7 @@ task Package -depends Build {
|
|||||||
Write-Host -ForegroundColor Green "Building documentation from $documentationSourcePath"
|
Write-Host -ForegroundColor Green "Building documentation from $documentationSourcePath"
|
||||||
Write-Host "Documentation output to $docOutputPath"
|
Write-Host "Documentation output to $docOutputPath"
|
||||||
|
|
||||||
# Sandcastle has issues when compiling with .NET 4 MSBuild - http://shfb.codeplex.com/Thread/View.aspx?ThreadId=50652
|
# Sandcastle has issues when compiling with .NET 4 MSBuild
|
||||||
exec { & $script:msBuildPath "/t:Clean;Rebuild" "/v:$msbuildVerbosity" "/p:Configuration=Release" "/p:DocumentationSourcePath=$documentationSourcePath" "/p:OutputPath=$docOutputPath" "/m" "$docDir\doc.shfbproj" | Out-Default } "Error building documentation. Check that you have Sandcastle, Sandcastle Help File Builder and HTML Help Workshop installed."
|
exec { & $script:msBuildPath "/t:Clean;Rebuild" "/v:$msbuildVerbosity" "/p:Configuration=Release" "/p:DocumentationSourcePath=$documentationSourcePath" "/p:OutputPath=$docOutputPath" "/m" "$docDir\doc.shfbproj" | Out-Default } "Error building documentation. Check that you have Sandcastle, Sandcastle Help File Builder and HTML Help Workshop installed."
|
||||||
|
|
||||||
move -Path $workingDir\Documentation\LastBuild.log -Destination $workingDir\Documentation.log
|
move -Path $workingDir\Documentation\LastBuild.log -Destination $workingDir\Documentation.log
|
||||||
|
|||||||
+2
-2
@@ -86,8 +86,8 @@ FOR A PARTICULAR PURPOSE.
|
|||||||
|
|
||||||
|
|
||||||
[github]: https://github.com/JamesNK/Newtonsoft.Json
|
[github]: https://github.com/JamesNK/Newtonsoft.Json
|
||||||
[documentation]: http://james.newtonking.com/json/help/index.html
|
[documentation]: https://www.newtonsoft.com/json/help
|
||||||
[stackoverflow]: http://stackoverflow.com/questions/tagged/json.net
|
[stackoverflow]: https://stackoverflow.com/questions/tagged/json.net
|
||||||
[dropbox]: https://www.dropbox.com
|
[dropbox]: https://www.dropbox.com
|
||||||
[gist]: https://gist.github.com
|
[gist]: https://gist.github.com
|
||||||
[pullrequesthelp]: https://help.github.com/articles/using-pull-requests
|
[pullrequesthelp]: https://help.github.com/articles/using-pull-requests
|
||||||
|
|||||||
+2
-2
@@ -17,8 +17,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
</listItem>
|
</listItem>
|
||||||
<listItem>
|
<listItem>
|
||||||
<para><legacyBold>JSON Schema</legacyBold> - Loading schemas and validating JSON. Note that JSON Schema validation has been moved to its own package. See <externalLink>
|
<para><legacyBold>JSON Schema</legacyBold> - Loading schemas and validating JSON. Note that JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.</para>
|
for more details.</para>
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
<alert class="caution">
|
<alert class="caution">
|
||||||
<para>
|
<para>
|
||||||
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
<legacyBold>Obsolete.</legacyBold> JSON Schema validation has been moved to its own package. See <externalLink>
|
||||||
<linkText>http://www.newtonsoft.com/jsonschema</linkText>
|
<linkText>https://www.newtonsoft.com/jsonschema</linkText>
|
||||||
<linkUri>http://www.newtonsoft.com/jsonschema</linkUri>
|
<linkUri>https://www.newtonsoft.com/jsonschema</linkUri>
|
||||||
<linkTarget>_blank</linkTarget>
|
<linkTarget>_blank</linkTarget>
|
||||||
</externalLink>
|
</externalLink>
|
||||||
for more details.
|
for more details.
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@
|
|||||||
<NamespaceSummaryItem name="Newtonsoft.Json.Linq" isDocumented="True">The <b>Newtonsoft.Json.Linq</b> namespace provides classes that are used to implement LINQ to JSON.</NamespaceSummaryItem>
|
<NamespaceSummaryItem name="Newtonsoft.Json.Linq" isDocumented="True">The <b>Newtonsoft.Json.Linq</b> namespace provides classes that are used to implement LINQ to JSON.</NamespaceSummaryItem>
|
||||||
<NamespaceSummaryItem name="Newtonsoft.Json.Linq.ComponentModel" isDocumented="True">The <b>Newtonsoft.Json.Linq.ComponentModel</b> namespace provides classes for LINQ to JSON databinding.</NamespaceSummaryItem>
|
<NamespaceSummaryItem name="Newtonsoft.Json.Linq.ComponentModel" isDocumented="True">The <b>Newtonsoft.Json.Linq.ComponentModel</b> namespace provides classes for LINQ to JSON databinding.</NamespaceSummaryItem>
|
||||||
<NamespaceSummaryItem name="Newtonsoft.Json.Schema" isDocumented="True"><para>The <b>Newtonsoft.Json.Schema</b> namespace provides classes that are used to implement JSON schema.</para>
|
<NamespaceSummaryItem name="Newtonsoft.Json.Schema" isDocumented="True"><para>The <b>Newtonsoft.Json.Schema</b> namespace provides classes that are used to implement JSON schema.</para>
|
||||||
<para><b>Obsolete.</b> JSON Schema validation has been moved to its own package. See <a href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</a> for more details.</para></NamespaceSummaryItem>
|
<para><b>Obsolete.</b> JSON Schema validation has been moved to its own package. See <a href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</a> for more details.</para></NamespaceSummaryItem>
|
||||||
<NamespaceSummaryItem name="Newtonsoft.Json.Serialization" isDocumented="True">The <b>Newtonsoft.Json.Linq</b> namespace provides classes that are used when serializing and deserializing JSON.</NamespaceSummaryItem>
|
<NamespaceSummaryItem name="Newtonsoft.Json.Serialization" isDocumented="True">The <b>Newtonsoft.Json.Linq</b> namespace provides classes that are used when serializing and deserializing JSON.</NamespaceSummaryItem>
|
||||||
<NamespaceSummaryItem name="Newtonsoft.Json.Utilities" isDocumented="False" />
|
<NamespaceSummaryItem name="Newtonsoft.Json.Utilities" isDocumented="False" />
|
||||||
<NamespaceSummaryItem name="Newtonsoft.Json.Bson" isDocumented="True">The <b>Newtonsoft.Json.Linq</b> namespace provides classes that are used to implement BSON.</NamespaceSummaryItem>
|
<NamespaceSummaryItem name="Newtonsoft.Json.Bson" isDocumented="True">The <b>Newtonsoft.Json.Linq</b> namespace provides classes that are used to implement BSON.</NamespaceSummaryItem>
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
Json.NET
|
Json.NET
|
||||||
|
|
||||||
http://www.newtonsoft.com/json
|
https://www.newtonsoft.com/json
|
||||||
https://github.com/JamesNK/Newtonsoft.Json
|
https://github.com/JamesNK/Newtonsoft.Json
|
||||||
|
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ Json.NET is a popular high-performance JSON framework for .NET
|
|||||||
|
|
||||||
Documentation:
|
Documentation:
|
||||||
|
|
||||||
http://www.newtonsoft.com/json/help/
|
https://www.newtonsoft.com/json/help/
|
||||||
|
|
||||||
|
|
||||||
Versions:
|
Versions:
|
||||||
|
|||||||
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
If you have questions about how to use Json.NET, please read the Json.NET documentation or ask on Stack Overflow.
|
If you have questions about how to use Json.NET, please read the Json.NET documentation or ask on Stack Overflow.
|
||||||
|
|
||||||
http://www.newtonsoft.com/json/help
|
https://www.newtonsoft.com/json/help
|
||||||
http://stackoverflow.com/questions/tagged/json.net
|
https://stackoverflow.com/questions/tagged/json.net
|
||||||
|
|
||||||
There are thousands of Json.NET questions on Stack Overflow with the json.net tag.
|
There are thousands of Json.NET questions on Stack Overflow with the json.net tag.
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
[](https://www.nuget.org/packages/Newtonsoft.Json/)
|
[](https://www.nuget.org/packages/Newtonsoft.Json/)
|
||||||
[](https://ci.appveyor.com/project/JamesNewtonKing/newtonsoft-json)
|
[](https://ci.appveyor.com/project/JamesNewtonKing/newtonsoft-json)
|
||||||
|
|
||||||
- [Homepage](http://www.newtonsoft.com/json)
|
- [Homepage](https://www.newtonsoft.com/json)
|
||||||
- [Documentation](http://www.newtonsoft.com/json/help)
|
- [Documentation](https://www.newtonsoft.com/json/help)
|
||||||
- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json)
|
- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json)
|
||||||
- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
|
- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
|
||||||
- [Contributing Guidelines](CONTRIBUTING.md)
|
- [Contributing Guidelines](CONTRIBUTING.md)
|
||||||
- [License](LICENSE.md)
|
- [License](LICENSE.md)
|
||||||
- [Stack Overflow](http://stackoverflow.com/questions/tagged/json.net)
|
- [Stack Overflow](https://stackoverflow.com/questions/tagged/json.net)
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ namespace Newtonsoft.Json
|
|||||||
/// Represents a reader that provides <see cref="JsonSchema"/> validation.
|
/// Represents a reader that provides <see cref="JsonSchema"/> validation.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public class JsonValidatingReader : JsonReader, IJsonLineInfo
|
public class JsonValidatingReader : JsonReader, IJsonLineInfo
|
||||||
{
|
{
|
||||||
private class SchemaScope
|
private class SchemaScope
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Contains the JSON schema extension methods.
|
/// Contains the JSON schema extension methods.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public static class Extensions
|
public static class Extensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -46,7 +46,7 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Determines whether the <see cref="JToken"/> is valid.
|
/// Determines whether the <see cref="JToken"/> is valid.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
||||||
@@ -54,7 +54,7 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// <c>true</c> if the specified <see cref="JToken"/> is valid; otherwise, <c>false</c>.
|
/// <c>true</c> if the specified <see cref="JToken"/> is valid; otherwise, <c>false</c>.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public static bool IsValid(this JToken source, JsonSchema schema)
|
public static bool IsValid(this JToken source, JsonSchema schema)
|
||||||
{
|
{
|
||||||
bool valid = true;
|
bool valid = true;
|
||||||
@@ -67,7 +67,7 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Determines whether the <see cref="JToken"/> is valid.
|
/// Determines whether the <see cref="JToken"/> is valid.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
||||||
@@ -76,7 +76,7 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// <c>true</c> if the specified <see cref="JToken"/> is valid; otherwise, <c>false</c>.
|
/// <c>true</c> if the specified <see cref="JToken"/> is valid; otherwise, <c>false</c>.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public static bool IsValid(this JToken source, JsonSchema schema, out IList<string> errorMessages)
|
public static bool IsValid(this JToken source, JsonSchema schema, out IList<string> errorMessages)
|
||||||
{
|
{
|
||||||
IList<string> errors = new List<string>();
|
IList<string> errors = new List<string>();
|
||||||
@@ -92,12 +92,12 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Validates the specified <see cref="JToken"/>.
|
/// Validates the specified <see cref="JToken"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
||||||
/// <param name="schema">The schema to test with.</param>
|
/// <param name="schema">The schema to test with.</param>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public static void Validate(this JToken source, JsonSchema schema)
|
public static void Validate(this JToken source, JsonSchema schema)
|
||||||
{
|
{
|
||||||
source.Validate(schema, null);
|
source.Validate(schema, null);
|
||||||
@@ -108,13 +108,13 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Validates the specified <see cref="JToken"/>.
|
/// Validates the specified <see cref="JToken"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
/// <param name="source">The source <see cref="JToken"/> to test.</param>
|
||||||
/// <param name="schema">The schema to test with.</param>
|
/// <param name="schema">The schema to test with.</param>
|
||||||
/// <param name="validationEventHandler">The validation event handler.</param>
|
/// <param name="validationEventHandler">The validation event handler.</param>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public static void Validate(this JToken source, JsonSchema schema, ValidationEventHandler validationEventHandler)
|
public static void Validate(this JToken source, JsonSchema schema, ValidationEventHandler validationEventHandler)
|
||||||
{
|
{
|
||||||
ValidationUtils.ArgumentNotNull(source, nameof(source));
|
ValidationUtils.ArgumentNotNull(source, nameof(source));
|
||||||
|
|||||||
@@ -37,10 +37,10 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// An in-memory representation of a JSON Schema.
|
/// An in-memory representation of a JSON Schema.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public class JsonSchema
|
public class JsonSchema
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using Newtonsoft.Json.Linq;
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Schema
|
namespace Newtonsoft.Json.Schema
|
||||||
{
|
{
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
internal class JsonSchemaBuilder
|
internal class JsonSchemaBuilder
|
||||||
{
|
{
|
||||||
private readonly IList<JsonSchema> _stack;
|
private readonly IList<JsonSchema> _stack;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Schema
|
namespace Newtonsoft.Json.Schema
|
||||||
{
|
{
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
internal static class JsonSchemaConstants
|
internal static class JsonSchemaConstants
|
||||||
{
|
{
|
||||||
public const string TypePropertyName = "type";
|
public const string TypePropertyName = "type";
|
||||||
|
|||||||
@@ -33,13 +33,13 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Returns detailed information about the schema exception.
|
/// Returns detailed information about the schema exception.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#if HAVE_BINARY_EXCEPTION_SERIALIZATION
|
#if HAVE_BINARY_EXCEPTION_SERIALIZATION
|
||||||
[Serializable]
|
[Serializable]
|
||||||
#endif
|
#endif
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public class JsonSchemaException : JsonException
|
public class JsonSchemaException : JsonException
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -44,10 +44,10 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Generates a <see cref="JsonSchema"/> from a specified <see cref="Type"/>.
|
/// Generates a <see cref="JsonSchema"/> from a specified <see cref="Type"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public class JsonSchemaGenerator
|
public class JsonSchemaGenerator
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ using Newtonsoft.Json.Utilities;
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Schema
|
namespace Newtonsoft.Json.Schema
|
||||||
{
|
{
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
internal class JsonSchemaModel
|
internal class JsonSchemaModel
|
||||||
{
|
{
|
||||||
public bool Required { get; set; }
|
public bool Required { get; set; }
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Schema
|
namespace Newtonsoft.Json.Schema
|
||||||
{
|
{
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
internal class JsonSchemaModelBuilder
|
internal class JsonSchemaModelBuilder
|
||||||
{
|
{
|
||||||
private JsonSchemaNodeCollection _nodes = new JsonSchemaNodeCollection();
|
private JsonSchemaNodeCollection _nodes = new JsonSchemaNodeCollection();
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Schema
|
namespace Newtonsoft.Json.Schema
|
||||||
{
|
{
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
internal class JsonSchemaNode
|
internal class JsonSchemaNode
|
||||||
{
|
{
|
||||||
public string Id { get; }
|
public string Id { get; }
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ using System.Collections.ObjectModel;
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Schema
|
namespace Newtonsoft.Json.Schema
|
||||||
{
|
{
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
internal class JsonSchemaNodeCollection : KeyedCollection<string, JsonSchemaNode>
|
internal class JsonSchemaNodeCollection : KeyedCollection<string, JsonSchemaNode>
|
||||||
{
|
{
|
||||||
protected override string GetKeyForItem(JsonSchemaNode item)
|
protected override string GetKeyForItem(JsonSchemaNode item)
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Resolves <see cref="JsonSchema"/> from an id.
|
/// Resolves <see cref="JsonSchema"/> from an id.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public class JsonSchemaResolver
|
public class JsonSchemaResolver
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// The value types allowed by the <see cref="JsonSchema"/>.
|
/// The value types allowed by the <see cref="JsonSchema"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Flags]
|
[Flags]
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public enum JsonSchemaType
|
public enum JsonSchemaType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Schema
|
namespace Newtonsoft.Json.Schema
|
||||||
{
|
{
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
internal class JsonSchemaWriter
|
internal class JsonSchemaWriter
|
||||||
{
|
{
|
||||||
private readonly JsonWriter _writer;
|
private readonly JsonWriter _writer;
|
||||||
|
|||||||
@@ -32,10 +32,10 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Specifies undefined schema Id handling options for the <see cref="JsonSchemaGenerator"/>.
|
/// Specifies undefined schema Id handling options for the <see cref="JsonSchemaGenerator"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public enum UndefinedSchemaIdHandling
|
public enum UndefinedSchemaIdHandling
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Returns detailed information related to the <see cref="ValidationEventHandler"/>.
|
/// Returns detailed information related to the <see cref="ValidationEventHandler"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public class ValidationEventArgs : EventArgs
|
public class ValidationEventArgs : EventArgs
|
||||||
{
|
{
|
||||||
private readonly JsonSchemaException _ex;
|
private readonly JsonSchemaException _ex;
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ namespace Newtonsoft.Json.Schema
|
|||||||
/// Represents the callback method that will handle JSON schema validation events and the <see cref="ValidationEventArgs"/>.
|
/// Represents the callback method that will handle JSON schema validation events and the <see cref="ValidationEventArgs"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <note type="caution">
|
/// <note type="caution">
|
||||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
/// JSON Schema validation has been moved to its own package. See <see href="https://www.newtonsoft.com/jsonschema">https://www.newtonsoft.com/jsonschema</see> for more details.
|
||||||
/// </note>
|
/// </note>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
|
[Obsolete("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")]
|
||||||
public delegate void ValidationEventHandler(object sender, ValidationEventArgs e);
|
public delegate void ValidationEventHandler(object sender, ValidationEventArgs e);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user