Skip to content

Commit

Permalink
allow all keywords for custom draft specification (supports openapi p…
Browse files Browse the repository at this point in the history
…roject)
  • Loading branch information
gregsdennis committed Jul 20, 2023
1 parent 84decb9 commit 21b1fe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion JsonSchema/EvaluationOptions.cs
Expand Up @@ -200,7 +200,7 @@ private static IEnumerable<IJsonSchemaKeyword> AllowSiblingRef(IEnumerable<IJson

private static IEnumerable<IJsonSchemaKeyword> FilterBySpecVersion(IEnumerable<IJsonSchemaKeyword> keywords, SpecVersion version)
{
if (version == SpecVersion.Unspecified) return keywords;
if (!Enum.IsDefined(typeof(SpecVersion), version) || version == SpecVersion.Unspecified) return keywords;

return keywords.Where(k => k.SupportsVersion(version));
}
Expand Down
4 changes: 2 additions & 2 deletions JsonSchema/JsonSchema.csproj
Expand Up @@ -16,8 +16,8 @@
<PackageProjectUrl>https://github.com/gregsdennis/json-everything</PackageProjectUrl>
<RepositoryUrl>https://github.com/gregsdennis/json-everything</RepositoryUrl>
<PackageTags>json-schema validation schema json</PackageTags>
<Version>4.1.6</Version>
<FileVersion>4.1.6.0</FileVersion>
<Version>4.1.7</Version>
<FileVersion>4.1.7.0</FileVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<AssemblyName>JsonSchema.Net</AssemblyName>
Expand Down

0 comments on commit 21b1fe7

Please sign in to comment.