git.iko.soy/typeable/openapi3
on patch-deps help sign in
typeable/openapi3/openapi3.cabal
161 lines 4.8 kB history raw
1cabal-version: >=1.10
2name: openapi3
3version: 3.2.2
5synopsis: OpenAPI 3.0 data model
6category: Web, Swagger, OpenApi
7description:
8 This library is intended to be used for decoding and encoding OpenAPI 3.0 API
9 specifications as well as manipulating them.
10 .
11 The original OpenAPI 3.0 specification is available at http://swagger.io/specification/.
13homepage: https://github.com/biocad/openapi3
14bug-reports: https://github.com/biocad/openapi3/issues
15license: BSD3
16license-file: LICENSE
17author: Nickolay Kudasov, Maxim Koltsov
18maintainer: nickolay@getshoptv.com, kolmax94@gmail.com
19copyright: (c) 2015-2016, GetShopTV, (c) 2020, Biocad
20build-type: Custom
21extra-source-files:
22 README.md
23 , CHANGELOG.md
24 , examples/*.hs
25tested-with:
26 GHC ==8.4.4
27 || ==8.6.5
28 || ==8.8.4
29 || ==8.10.7
30 || ==9.0.2
31 || ==9.2.2
33custom-setup
34 setup-depends:
35 base, Cabal, cabal-doctest >=1.0.6 && <1.1
37library
38 hs-source-dirs: src
39 exposed-modules:
40 Data.OpenApi
41 Data.OpenApi.Declare
42 Data.OpenApi.Lens
43 Data.OpenApi.Operation
44 Data.OpenApi.Optics
45 Data.OpenApi.ParamSchema
46 Data.OpenApi.Schema
47 Data.OpenApi.Schema.Generator
48 Data.OpenApi.Schema.Validation
49 Data.OpenApi.SchemaOptions
51 -- internal modules
52 Data.OpenApi.Internal
53 Data.OpenApi.Internal.Schema
54 Data.OpenApi.Internal.Schema.Validation
55 Data.OpenApi.Internal.ParamSchema
56 Data.OpenApi.Internal.Utils
57 Data.OpenApi.Internal.AesonUtils
58 Data.OpenApi.Internal.TypeShape
60 Data.OpenApi.Aeson.Compat
62 -- GHC boot libraries
63 build-depends:
64 base >=4.11.1.0 && <4.17
65 , bytestring >=0.10.8.2 && <0.12
66 , containers >=0.5.11.0 && <0.7
67 , template-haskell >=2.13.0.0 && <2.19
68 , time >=1.8.0.2 && <1.14
69 , transformers >=0.5.5.0 && <0.6
71 build-depends:
72 mtl >=2.2.2 && <2.3
73 , text >=1.2.3.1 && <2.1
75 -- other dependencies
76 build-depends:
77 base-compat-batteries >=0.10.5 && <0.13
78 , aeson >=1.4.2.0 && <1.6 || >=2.0.1.0 && < 2.1
79 , aeson-pretty >=0.8.7 && <0.9
80 -- cookie 0.4.3 is needed by GHC 7.8 due to time>=1.4 constraint
81 , cookie >=0.4.3 && <0.5
82 , generics-sop >=0.4.0.1 && <0.6
83 , hashable >=1.2.7.0 && <1.5
84 , http-media >=0.7.1.3 && <0.9
85 , insert-ordered-containers >=0.2.3 && <0.3
86 , lens >=4.16.1 && <5.2
87 -- , network >=2.6.3.5 && <3.2
88 , optics-core >=0.2 && <0.5
89 , optics-th >=0.2 && <0.5
90 , scientific >=0.3.6.2 && <0.4
91 , unordered-containers >=0.2.9.0 && <0.3
92 , uuid-types >=1.0.3 && <1.1
93 , vector >=0.12.0.1 && <0.13
94 , QuickCheck >=2.10.1 && <2.15
95 , generic-arbitrary >=0.1
97 default-language: Haskell2010
99test-suite spec
100 type: exitcode-stdio-1.0
101 hs-source-dirs: test
102 main-is: Spec.hs
104 -- From library parat
105 -- We need aeson's toEncoding for doctests too
106 build-depends:
107 base
108 , QuickCheck
109 , aeson
110 , base-compat-batteries
111 , bytestring
112 , containers
113 , hashable
114 , insert-ordered-containers
115 , lens
116 , mtl
117 , openapi3
118 , template-haskell
119 , text
120 , time
121 , unordered-containers
122 , vector
124 -- test-suite only dependencies
125 build-depends:
126 hspec >=2.5.5 && <2.10
127 , HUnit >=1.6.0.0 && <1.7
128 , quickcheck-instances >=0.3.19 && <0.14
129 , utf8-string >=1.0.1.1 && <1.1
131 -- https://github.com/haskell/cabal/issues/3708
132 build-tool-depends:
133 hspec-discover:hspec-discover >=2.5.5 && <2.10
135 other-modules:
136 SpecCommon
137 Data.OpenApiSpec
138 Data.OpenApi.CommonTestTypes
139 Data.OpenApi.ParamSchemaSpec
140 Data.OpenApi.SchemaSpec
141 Data.OpenApi.Schema.ValidationSpec
142 Data.OpenApi.Schema.GeneratorSpec
143 default-language: Haskell2010
145test-suite doctests
146 -- See QuickCheck note in https://github.com/phadej/cabal-doctest#notes
147 build-depends: base, doctest, Glob, QuickCheck
148 default-language: Haskell2010
149 hs-source-dirs: test
150 main-is: doctests.hs
151 type: exitcode-stdio-1.0
153executable example
154 hs-source-dirs: examples
155 main-is: hackage.hs
156 default-language: Haskell2010
157 build-depends: base, aeson, lens, openapi3, text
159source-repository head
160 type: git
161 location: https://github.com/biocad/openapi3.git