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
|
2021-03-04 14:09:36 +03:00
|
|
|
tested-with: GHC == 8.10.4
|
2021-02-24 09:44:45 +03:00
|
|
|
|
2021-05-21 14:01:48 +03:00
|
|
|
Flag static
|
|
|
|
Default: False
|
|
|
|
Manual: True
|
|
|
|
|
2021-02-24 09:44:45 +03:00
|
|
|
common common-options
|
2021-05-21 14:01:48 +03:00
|
|
|
if flag(static)
|
|
|
|
cc-options: -static
|
|
|
|
ld-options: -static -pthread
|
|
|
|
ghc-options: -static
|
2021-06-08 19:12:34 +03:00
|
|
|
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
|
2021-06-28 13:49:09 +03:00
|
|
|
-fconstraint-solver-iterations=0
|
2021-02-24 09:44:45 +03:00
|
|
|
default-language: Haskell2010
|
2021-06-21 20:52:48 +03:00
|
|
|
build-depends: base >= 4.12.0.0 && < 4.16
|
2021-04-08 10:03:58 +03:00
|
|
|
, bytestring
|
2021-02-25 08:13:20 +03:00
|
|
|
, text
|
2021-02-25 14:04:55 +03:00
|
|
|
|
2021-03-25 19:02:48 +03:00
|
|
|
default-extensions: ApplicativeDo
|
|
|
|
, BangPatterns
|
2021-03-11 14:34:40 +03:00
|
|
|
, 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
|
2021-03-25 19:02:48 +03:00
|
|
|
, EmptyDataDeriving
|
2021-02-25 08:13:20 +03:00
|
|
|
, FlexibleContexts
|
|
|
|
, FlexibleInstances
|
|
|
|
, FunctionalDependencies
|
|
|
|
, GADTs
|
|
|
|
, GeneralizedNewtypeDeriving
|
|
|
|
, LambdaCase
|
|
|
|
, MultiParamTypeClasses
|
|
|
|
, MultiWayIf
|
|
|
|
, NamedFieldPuns
|
|
|
|
, NumDecimals
|
|
|
|
, OverloadedStrings
|
2021-04-07 22:13:06 +03:00
|
|
|
, PatternSynonyms
|
2021-02-25 08:13:20 +03:00
|
|
|
, PolyKinds
|
|
|
|
, QuasiQuotes
|
|
|
|
, RankNTypes
|
|
|
|
, RecordWildCards
|
|
|
|
, ScopedTypeVariables
|
|
|
|
, StandaloneDeriving
|
|
|
|
, TemplateHaskell
|
|
|
|
, TupleSections
|
|
|
|
, TypeApplications
|
|
|
|
, TypeFamilies
|
|
|
|
, TypeOperators
|
|
|
|
, UndecidableInstances
|
|
|
|
, ViewPatterns
|
2021-03-25 19:06:35 +03:00
|
|
|
, QuantifiedConstraints
|
2021-05-17 17:38:59 +03:00
|
|
|
, DefaultSignatures
|
2021-02-24 09:44:45 +03:00
|
|
|
|
|
|
|
library
|
|
|
|
import: common-options
|
2021-06-08 19:12:34 +03:00
|
|
|
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
|
2021-06-21 20:52:48 +03:00
|
|
|
, generic-data
|
2021-06-22 17:15:57 +03:00
|
|
|
, doctemplates
|
|
|
|
, file-embed
|
2021-02-24 09:44:45 +03:00
|
|
|
hs-source-dirs: src
|
2021-03-25 19:06:35 +03:00
|
|
|
exposed-modules: Data.HList
|
2021-05-14 12:25:57 +03:00
|
|
|
, OpenAPI.Checker.Behavior
|
2021-03-12 10:49:30 +03:00
|
|
|
, OpenAPI.Checker.Formula
|
2021-03-11 14:34:40 +03:00
|
|
|
, OpenAPI.Checker.Memo
|
2021-03-25 19:02:48 +03:00
|
|
|
, OpenAPI.Checker.Orphans
|
2021-05-14 12:25:57 +03:00
|
|
|
, OpenAPI.Checker.Paths
|
|
|
|
, OpenAPI.Checker.PathsPrefixTree
|
2021-03-25 19:02:48 +03:00
|
|
|
, OpenAPI.Checker.References
|
2021-03-11 14:34:40 +03:00
|
|
|
, OpenAPI.Checker.Subtree
|
2021-04-08 10:03:58 +03:00
|
|
|
, OpenAPI.Checker.Validate.MediaTypeObject
|
2021-03-25 19:02:48 +03:00
|
|
|
, OpenAPI.Checker.Validate.OpenApi
|
|
|
|
, OpenAPI.Checker.Validate.Operation
|
|
|
|
, OpenAPI.Checker.Validate.Param
|
|
|
|
, OpenAPI.Checker.Validate.PathFragment
|
2021-05-03 21:45:08 +03:00
|
|
|
, OpenAPI.Checker.Validate.Products
|
2021-04-02 12:20:56 +03:00
|
|
|
, OpenAPI.Checker.Validate.RequestBody
|
|
|
|
, OpenAPI.Checker.Validate.Responses
|
2021-04-07 22:13:06 +03:00
|
|
|
, OpenAPI.Checker.Validate.Schema
|
2021-04-08 10:03:58 +03:00
|
|
|
, OpenAPI.Checker.Validate.SecurityRequirement
|
|
|
|
, OpenAPI.Checker.Validate.Server
|
2021-05-03 21:45:08 +03:00
|
|
|
, OpenAPI.Checker.Validate.Sums
|
2021-05-17 17:38:59 +03:00
|
|
|
, OpenAPI.Checker.Validate.Header
|
|
|
|
, OpenAPI.Checker.Validate.Link
|
|
|
|
, OpenAPI.Checker.Common
|
2021-05-25 13:01:44 +03:00
|
|
|
, OpenAPI.Checker.Validate.SecurityScheme
|
|
|
|
, OpenAPI.Checker.Validate.OAuth2Flows
|
2021-06-05 19:15:04 +03:00
|
|
|
, OpenAPI.Checker.Report
|
2021-06-08 17:57:13 +03:00
|
|
|
, Data.OpenUnion.Extra
|
2021-06-15 18:57:35 +03:00
|
|
|
, OpenAPI.Checker.Report.Jet
|
2021-06-21 20:52:48 +03:00
|
|
|
, OpenAPI.Checker.Run
|
2021-06-22 17:15:57 +03:00
|
|
|
, 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
|
2021-06-05 19:15:04 +03:00
|
|
|
build-depends:
|
|
|
|
openapi-diff
|
|
|
|
, pandoc
|
|
|
|
, data-default
|
|
|
|
, bytestring
|
|
|
|
, yaml
|
|
|
|
, filepath
|
2021-06-08 19:12:34 +03:00
|
|
|
, optparse-applicative
|
|
|
|
, mtl
|
|
|
|
, aeson
|
2021-06-22 17:15:57 +03:00
|
|
|
, containers
|
|
|
|
, doctemplates
|
2021-02-24 09:44:45 +03:00
|
|
|
ghc-options: -threaded
|
|
|
|
-rtsopts
|
|
|
|
-with-rtsopts=-N
|
2021-06-05 19:15:04 +03:00
|
|
|
other-modules:
|
|
|
|
FormatHeuristic
|
2021-06-08 19:12:34 +03:00
|
|
|
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
|
2021-03-25 19:06:35 +03:00
|
|
|
Spec.Golden.TraceTree
|
2021-03-05 15:07:53 +03:00
|
|
|
build-depends:
|
|
|
|
, openapi-diff
|
|
|
|
, tasty-golden
|
|
|
|
, tasty
|
|
|
|
, bytestring
|
|
|
|
, yaml
|
|
|
|
, directory
|
|
|
|
, filepath
|
2021-06-05 19:15:04 +03:00
|
|
|
, pandoc
|
|
|
|
, data-default
|
2021-06-08 19:12:34 +03:00
|
|
|
, lens
|
2021-02-24 09:44:45 +03:00
|
|
|
ghc-options: -threaded
|
|
|
|
-rtsopts
|
|
|
|
-with-rtsopts=-N
|