Subject: [PATCH 40/47] gnu: Add go-github-com-go-openapi-spec.

From: Leo Nikkilä <[email-masked]>
Date: Fri, 25 Mar 2022 15:32:04 +0200

* gnu/packages/golang.scm (go-github-com-go-openapi-spec): New variable.
---
 gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9b887e773a..e6d7ab5518 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10206,6 +10206,32 @@ (define-public go-github-com-go-openapi-jsonreference
     (home-page "https://github.com/go-openapi/jsonreference")
     (license license:asl2.0)))
 
+(define-public go-github-com-go-openapi-spec
+  (package
+    (name "go-github-com-go-openapi-spec")
+    (version "0.20.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/go-openapi/spec")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1gc92i6y9rcnzx1pz7q0k3s16pgpgmzgjyqvqzlyrds59jxc165s"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/go-openapi/spec"))
+    (propagated-inputs (list go-github-com-go-openapi-jsonpointer
+                             go-github-com-go-openapi-jsonreference
+                             go-github-com-go-openapi-swag go-gopkg-in-yaml-v2))
+    (native-inputs (list go-github-com-stretchr-testify))
+    (synopsis "OpenAPI specification object model")
+    (description "The object model for OpenAPI specification
+documents.")
+    (home-page "https://github.com/go-openapi/spec")
+    (license license:asl2.0)))
+
 (define-public go-github-com-go-openapi-swag
   (package
     (name "go-github-com-go-openapi-swag")
-- 
2.34.0