diff --git a/src/AVPRClient/Extensions.cs b/src/AVPRClient/Extensions.cs index 2151368..0fb5ba0 100644 --- a/src/AVPRClient/Extensions.cs +++ b/src/AVPRClient/Extensions.cs @@ -136,7 +136,8 @@ this AVPRClient.ValidationPackage validationPackage Microsoft.FSharp.Core.FSharpOption.None, validationPackage.Authors.AsIndexType(), validationPackage.Tags.AsIndexType(), - validationPackage.ReleaseNotes + validationPackage.ReleaseNotes, + Microsoft.FSharp.Core.FSharpOption.None ); } } diff --git a/src/AVPRIndex/AVPRIndex.fsproj b/src/AVPRIndex/AVPRIndex.fsproj index c0542b6..64ea858 100644 --- a/src/AVPRIndex/AVPRIndex.fsproj +++ b/src/AVPRIndex/AVPRIndex.fsproj @@ -16,7 +16,7 @@ git $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/RELEASE_NOTES.md")) README.md - 0.1.0 + 0.1.1 diff --git a/src/AVPRIndex/Domain.fs b/src/AVPRIndex/Domain.fs index 70b0cca..b59f3cf 100644 --- a/src/AVPRIndex/Domain.fs +++ b/src/AVPRIndex/Domain.fs @@ -106,7 +106,7 @@ module Domain = member val Authors: Author [] = Array.empty with get,set member val Tags: OntologyAnnotation [] = Array.empty with get,set member val ReleaseNotes = "" with get,set - member val HookEndpoint = "" with get,set + member val CQCHookEndpoint = "" with get,set override this.GetHashCode() = hash ( @@ -120,7 +120,7 @@ module Domain = this.Authors, this.Tags, this.ReleaseNotes, - this.HookEndpoint + this.CQCHookEndpoint ) override this.Equals(other) = @@ -137,7 +137,7 @@ module Domain = this.Authors, this.Tags, this.ReleaseNotes, - this.HookEndpoint + this.CQCHookEndpoint ) = ( vpm.Name, vpm.Summary, @@ -149,7 +149,7 @@ module Domain = vpm.Authors, vpm.Tags, vpm.ReleaseNotes, - vpm.HookEndpoint + vpm.CQCHookEndpoint ) | _ -> false @@ -164,7 +164,7 @@ module Domain = ?Authors: Author [], ?Tags: OntologyAnnotation [], ?ReleaseNotes, - ?HookEndpoint + ?CQCHookEndpoint ) = let tmp = ValidationPackageMetadata( Name = name, @@ -179,7 +179,7 @@ module Domain = Authors |> Option.iter (fun x -> tmp.Authors <- x) Tags |> Option.iter (fun x -> tmp.Tags <- x) ReleaseNotes |> Option.iter (fun x -> tmp.ReleaseNotes <- x) - HookEndpoint |> Option.iter (fun x -> tmp.HookEndpoint <- x) + CQCHookEndpoint |> Option.iter (fun x -> tmp.CQCHookEndpoint <- x) tmp diff --git a/src/AVPRIndex/RELEASE_NOTES.md b/src/AVPRIndex/RELEASE_NOTES.md index 1d3c032..a0af89a 100644 --- a/src/AVPRIndex/RELEASE_NOTES.md +++ b/src/AVPRIndex/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +## v0.1.1 + +Add `CQCHookEndpoint` field to `ValidationPackageMetadata` + ## v0.1.0 Add support for in-package frontmatter bindings. Enables re-use of the frontmatter inside the package code diff --git a/tests/IndexTests/DomainTests.fs b/tests/IndexTests/DomainTests.fs index 1c4d461..6250ac1 100644 --- a/tests/IndexTests/DomainTests.fs +++ b/tests/IndexTests/DomainTests.fs @@ -80,6 +80,6 @@ module ValidationPackageMetadata = ) |], ReleaseNotes = "releasenotes", - HookEndpoint = "hookendpoint" + CQCHookEndpoint = "hookendpoint" ) Assert.Equivalent(ValidationPackageMetadata.allFields, actual) \ No newline at end of file diff --git a/tests/IndexTests/ReferenceObjects.fs b/tests/IndexTests/ReferenceObjects.fs index 6b5ba53..5ceca44 100644 --- a/tests/IndexTests/ReferenceObjects.fs +++ b/tests/IndexTests/ReferenceObjects.fs @@ -50,7 +50,7 @@ module ValidationPackageMetadata = Authors = [|Author.allFields|], Tags = [|OntologyAnnotation.allFields|], ReleaseNotes = "releasenotes", - HookEndpoint = "hookendpoint" + CQCHookEndpoint = "hookendpoint" ) module Frontmatter = @@ -114,7 +114,7 @@ ReleaseNotes: | - initial release - does the thing - does it well -HookEndpoint: https://hook.com +CQCHookEndpoint: https://hook.com --- *)""" .ReplaceLineEndings("\n") @@ -147,7 +147,7 @@ ReleaseNotes: | - initial release - does the thing - does it well -HookEndpoint: https://hook.com +CQCHookEndpoint: https://hook.com """ .ReplaceLineEndings("\n") let invalidStartFrontmatter = """( @@ -259,7 +259,7 @@ ReleaseNotes: | - initial release - does the thing - does it well -HookEndpoint: https://hook.com +CQCHookEndpoint: https://hook.com --- *)\"\"\"" .ReplaceLineEndings("\n") @@ -292,7 +292,7 @@ ReleaseNotes: | - initial release - does the thing - does it well -HookEndpoint: https://hook.com +CQCHookEndpoint: https://hook.com """ .ReplaceLineEndings("\n") let invalidStartFrontmatter = "let []PACKAGE_METADATA = \"\"\" @@ -395,7 +395,7 @@ It does it very fast, it does it very swell. - does the thing - does it well """.ReplaceLineEndings("\n"), - HookEndpoint = "https://hook.com" + CQCHookEndpoint = "https://hook.com" ) let invalidMissingMandatoryFrontmatter = diff --git a/tests/IndexTests/fixtures/Frontmatter/Binding/valid@2.0.0.fsx b/tests/IndexTests/fixtures/Frontmatter/Binding/valid@2.0.0.fsx index bedc538..f6f3b01 100644 --- a/tests/IndexTests/fixtures/Frontmatter/Binding/valid@2.0.0.fsx +++ b/tests/IndexTests/fixtures/Frontmatter/Binding/valid@2.0.0.fsx @@ -28,6 +28,6 @@ ReleaseNotes: | - initial release - does the thing - does it well -HookEndpoint: https://hook.com +CQCHookEndpoint: https://hook.com --- *)""" \ No newline at end of file diff --git a/tests/IndexTests/fixtures/Frontmatter/Comment/valid@2.0.0.fsx b/tests/IndexTests/fixtures/Frontmatter/Comment/valid@2.0.0.fsx index f94e5d4..fc3c074 100644 --- a/tests/IndexTests/fixtures/Frontmatter/Comment/valid@2.0.0.fsx +++ b/tests/IndexTests/fixtures/Frontmatter/Comment/valid@2.0.0.fsx @@ -28,6 +28,6 @@ ReleaseNotes: | - initial release - does the thing - does it well -HookEndpoint: https://hook.com +CQCHookEndpoint: https://hook.com --- *) \ No newline at end of file