forked from biocad/servant-openapi3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
servant-openapi3.cabal
134 lines (126 loc) · 4.66 KB
/
servant-openapi3.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: servant-openapi3
version: 2.0.1.6
synopsis: Generate a Swagger/OpenAPI/OAS 3.0 specification for your servant API.
description:
Swagger is a project used to describe and document RESTful APIs. The core of the
project is the [OpenAPI Specification (OAS)](https://swagger.io/docs/specification/about/).
This library implements v3.0 of the spec. Unlike Servant it is language-agnostic and thus is
quite popular among developers in different languages. It has also existed for a longer time
and has more helpful tooling.
.
This package provides means to generate a Swagger/OAS specification for a Servant API
and also to partially test whether an API conforms with its specification.
.
Generated Swagger specification then can be used for many things such as
.
* displaying interactive documentation using [Swagger UI](http://swagger.io/swagger-ui/);
.
* generating clients and servers in many languages using [Swagger Codegen](http://swagger.io/swagger-codegen/);
.
* and [many others](http://swagger.io/open-source-integrations/).
homepage: https://github.com/biocad/servant-openapi3
bug-reports: https://github.com/biocad/servant-openapi3/issues
license: BSD3
license-file: LICENSE
author: David Johnson, Nickolay Kudasov, Maxim Koltsov
maintainer: [email protected], [email protected]
copyright: (c) 2015-2020, Servant contributors
category: Web, Servant, Swagger
build-type: Custom
cabal-version: 1.18
tested-with:
GHC ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.5
|| ==9.4.4
extra-source-files:
README.md
, CHANGELOG.md
, example/server/*.hs
, example/src/*.hs
, example/test/*.hs
, example/*.cabal
, example/swagger.json
, example/LICENSE
extra-doc-files:
example/src/*.hs
, example/test/*.hs
source-repository head
type: git
location: https://github.com/biocad/servant-openapi3.git
custom-setup
setup-depends:
base >=4.9 && <4.18,
Cabal >= 1.24,
cabal-doctest >=1.0.6 && <1.1
library
ghc-options: -Wall
exposed-modules:
Servant.OpenApi
Servant.OpenApi.Test
Servant.OpenApi.TypeLevel
-- Internal modules
Servant.OpenApi.Internal
Servant.OpenApi.Internal.Orphans
Servant.OpenApi.Internal.Test
Servant.OpenApi.Internal.TypeLevel
Servant.OpenApi.Internal.TypeLevel.API
Servant.OpenApi.Internal.TypeLevel.Every
Servant.OpenApi.Internal.TypeLevel.TMap
hs-source-dirs: src
build-depends: aeson >=1.4.2.0 && <1.6 || >=2.0.1.0 && <2.2
, aeson-pretty >=0.8.7 && <0.9
, base >=4.9.1.0 && <4.18
, base-compat >=0.10.5 && <0.14
, bytestring >=0.10.8.1 && <0.12
, http-media >=0.7.1.3 && <0.9
, insert-ordered-containers >=0.2.1.0 && <0.3
, lens >=4.17 && <5.3
, servant >=0.17 && <0.20
, singleton-bool >=0.1.4 && <0.2
, openapi3 >=3.2.3 && <3.3
, text >=1.2.3.0 && <3
, unordered-containers >=0.2.9.0 && <0.3
, hspec
, QuickCheck
default-language: Haskell2010
test-suite doctests
ghc-options: -Wall
build-depends:
base,
directory >= 1.0,
doctest >= 0.11.1 && <0.22,
servant,
QuickCheck,
filepath
default-language: Haskell2010
hs-source-dirs: test
main-is: doctests.hs
type: exitcode-stdio-1.0
test-suite spec
ghc-options: -Wall
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
build-tool-depends: hspec-discover:hspec-discover >=2.6.0 && <2.11
build-depends: base
, base-compat
, aeson
, hspec >=2.6.0 && <2.11
, QuickCheck
, lens
, lens-aeson >=1.0.2 && <1.3
, servant
, servant-openapi3
-- openapi3 3.1.0 fixes some ordering-related issues, making tests stable
, openapi3 >= 3.1.0
, text
, template-haskell
, utf8-string >=1.0.1.1 && <1.1
, time
, vector
other-modules:
Servant.OpenApiSpec
default-language: Haskell2010