compaREST/openapi-diff.cabal

199 lines
6.5 KiB
Plaintext
Raw Normal View History

2021-02-24 09:44:45 +03:00
cabal-version: 2.4
2021-02-25 14:25:50 +03:00
name: openapi-diff
2021-02-24 09:44:45 +03:00
version: 0.0.0.0
synopsis: Compatibility checker for OpenAPI
description: Compatibility checker for OpenAPI
license: MIT
license-file: LICENSE
author: Aleksey Uymanov
maintainer: Aleksey Uymanov <s9gf4ult@gmail.com>
copyright: 2021 Aleksey Uymanov
category: Web
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
tested-with: GHC == 8.10.4
extra-source-files: awsm-css/dist/awsm.min.css
2021-02-24 09:44:45 +03:00
Flag static
Default: False
Manual: True
2021-02-24 09:44:45 +03:00
common common-options
if flag(static)
cc-options: -static
ld-options: -static -pthread
ghc-options: -static
ghc-options:
-Weverything
-Wno-implicit-prelude
-Wno-missing-safe-haskell-mode
-Wno-safe
-Wno-prepositive-qualified-module
-Wno-missing-import-lists
-Wno-partial-fields
-Wno-all-missed-specialisations
-Wno-missing-local-signatures
-Wno-unsafe
-fconstraint-solver-iterations=0
2021-02-24 09:44:45 +03:00
default-language: Haskell2010
build-depends: base >= 4.12.0.0 && < 4.16
, bytestring
2021-02-25 08:13:20 +03:00
, text
2021-02-25 14:04:55 +03:00
default-extensions: ApplicativeDo
, BangPatterns
, ConstraintKinds
2021-02-25 08:13:20 +03:00
, DataKinds
2021-03-05 15:07:53 +03:00
, DeriveAnyClass
2021-02-25 08:13:20 +03:00
, DeriveFoldable
, DeriveFunctor
, DeriveGeneric
, DeriveTraversable
2021-03-05 15:07:53 +03:00
, DerivingStrategies
, DerivingVia
2021-02-25 08:13:20 +03:00
, DuplicateRecordFields
, EmptyDataDeriving
2021-02-25 08:13:20 +03:00
, FlexibleContexts
, FlexibleInstances
, FunctionalDependencies
, GADTs
, GeneralizedNewtypeDeriving
, LambdaCase
, MultiParamTypeClasses
, MultiWayIf
, NamedFieldPuns
, NumDecimals
, OverloadedStrings
, PatternSynonyms
2021-02-25 08:13:20 +03:00
, PolyKinds
, QuasiQuotes
, RankNTypes
, RecordWildCards
, ScopedTypeVariables
, StandaloneDeriving
, TemplateHaskell
, TupleSections
, TypeApplications
, TypeFamilies
, TypeOperators
, UndecidableInstances
, ViewPatterns
, QuantifiedConstraints
, DefaultSignatures
2021-02-24 09:44:45 +03:00
library
import: common-options
build-depends:
, pcre2
, open-union
, vector
, unordered-containers
, type-fun
, typerep-map
, tagged
, scientific
, pandoc-types
, openapi3
, lattices
, insert-ordered-containers
, http-media
, hashable
, free
, containers
, comonad
, attoparsec
, transformers
, mtl
, aeson
, generic-data
, doctemplates
, file-embed
, data-default
, ordered-containers
2021-02-24 09:44:45 +03:00
hs-source-dirs: src
exposed-modules: Data.HList
, OpenAPI.Checker.Behavior
, OpenAPI.Checker.Formula
, OpenAPI.Checker.Memo
, OpenAPI.Checker.Orphans
, OpenAPI.Checker.Paths
, OpenAPI.Checker.PathsPrefixTree
, OpenAPI.Checker.References
, OpenAPI.Checker.Subtree
, OpenAPI.Checker.Validate.MediaTypeObject
, OpenAPI.Checker.Validate.OpenApi
, OpenAPI.Checker.Validate.Operation
, OpenAPI.Checker.Validate.Param
, OpenAPI.Checker.Validate.PathFragment
, OpenAPI.Checker.Validate.Products
, OpenAPI.Checker.Validate.RequestBody
, OpenAPI.Checker.Validate.Responses
, OpenAPI.Checker.Validate.Schema
, OpenAPI.Checker.Validate.Schema.TypedJson
, OpenAPI.Checker.Validate.Schema.DNF
, OpenAPI.Checker.Validate.Schema.Issues
, OpenAPI.Checker.Validate.Schema.JsonFormula
, OpenAPI.Checker.Validate.Schema.Partition
, OpenAPI.Checker.Validate.Schema.Process
, OpenAPI.Checker.Validate.Schema.Traced
, OpenAPI.Checker.Validate.SecurityRequirement
, OpenAPI.Checker.Validate.Server
, OpenAPI.Checker.Validate.Sums
, OpenAPI.Checker.Validate.Header
, OpenAPI.Checker.Validate.Link
, OpenAPI.Checker.Common
, OpenAPI.Checker.Validate.SecurityScheme
, OpenAPI.Checker.Validate.OAuth2Flows
, OpenAPI.Checker.Report
, Data.OpenUnion.Extra
, OpenAPI.Checker.Report.Jet
, OpenAPI.Checker.Run
, OpenAPI.Checker.Report.Html.Template
2021-02-24 09:44:45 +03:00
2021-02-25 14:25:50 +03:00
executable openapi-diff
2021-02-24 09:44:45 +03:00
import: common-options
hs-source-dirs: app
main-is: Main.hs
build-depends:
openapi-diff
, pandoc
, data-default
, bytestring
, yaml
, filepath
, optparse-applicative
, mtl
, aeson
, containers
, doctemplates
2021-02-24 09:44:45 +03:00
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
other-modules:
FormatHeuristic
OpenAPI.Checker.Options
2021-02-24 09:44:45 +03:00
2021-02-25 14:25:50 +03:00
test-suite openapi-diff-test
2021-02-24 09:44:45 +03:00
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
2021-03-05 15:07:53 +03:00
other-modules:
Spec.Golden.Extra
Spec.Golden.TraceTree
2021-03-05 15:07:53 +03:00
build-depends:
, openapi-diff
, tasty-golden
, tasty
, bytestring
, yaml
, directory
, filepath
, pandoc
, data-default
, lens
2021-02-24 09:44:45 +03:00
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N