compaREST 0.1.0.0 → 0.1.0.1
raw patch · 5 files changed
+32/−24 lines, 5 filesdep ~freer-simpledep ~insert-ordered-containersdep ~tastynew-uploaderPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: freer-simple, insert-ordered-containers, tasty, tasty-golden, unordered-containers, yaml
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−1
- README.md +1/−3
- compaREST.cabal +9/−9
- github-action/Main.hs +13/−7
- test/golden/common/random-example/trace-tree.yaml +4/−4
CHANGELOG.md view
@@ -1,6 +1,10 @@ # Changelog -`comparest` uses [PVP Versioning][1].+`compaREST` uses [PVP Versioning][1].++## 0.1.0.1++* Fixed an issue related to empty commit SHAs in GitHub Actions. ## 0.1.0.0
README.md view
@@ -1,8 +1,6 @@ # compaREST -[](https://hackage.haskell.org/package/comparest)-[](http://stackage.org/lts/package/comparest)-[](http://stackage.org/nightly/package/comparest)+[](https://hackage.haskell.org/package/compaREST) [](LICENSE) Compatibility checker for OpenAPI
compaREST.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: compaREST-version: 0.1.0.0+version: 0.1.0.1 license: MIT license-file: LICENSE copyright: 2021 Typeable@@ -91,7 +91,7 @@ pcre2 >=1.1.5 && <1.2, open-union >=0.4.0.0 && <0.5, vector >=0.12.3.1 && <0.13,- unordered-containers >=0.2.14.0 && <0.3,+ unordered-containers >=0.2.16.0 && <0.3, type-fun >=0.1.3 && <0.2, typerep-map >=0.3.3.0 && <0.4, tagged >=0.8.6.1 && <0.9,@@ -99,7 +99,7 @@ pandoc-types >=1.22.1 && <1.23, openapi3 >=3.1.0 && <3.2, lattices >=2.0.2 && <2.1,- insert-ordered-containers >=0.2.5 && <0.3,+ insert-ordered-containers >=0.2.5.1 && <0.3, http-media >=0.8.0.0 && <0.9, hashable >=1.3.0.0 && <1.4, free >=5.1.7 && <5.2,@@ -152,7 +152,7 @@ pandoc >=2.14.0.3 && <2.15, data-default >=0.7.1.1 && <0.8, bytestring >=0.10.12.0 && <0.11,- yaml >=0.11.7.0 && <0.12,+ yaml >=0.11.8.0 && <0.12, filepath >=1.4.2.1 && <1.5, optparse-applicative >=0.16.1.0 && <0.17, mtl >=2.2.2 && <2.3,@@ -198,10 +198,10 @@ text >=1.2.4.1 && <1.3, compaREST -any, pandoc >=2.14.0.3 && <2.15,- yaml >=0.11.7.0 && <0.12,+ yaml >=0.11.8.0 && <0.12, aeson >=1.5.6.0 && <1.6, github ==0.26.*,- freer-simple >=1.2.1.1 && <1.3,+ freer-simple >=1.2.1.2 && <1.3, vector >=0.12.3.1 && <0.13, pandoc-types >=1.22.1 && <1.23, envy >=2.1.0.0 && <2.2,@@ -244,10 +244,10 @@ base >=4.12.0.0 && <4.16, text >=1.2.4.1 && <1.3, compaREST -any,- tasty-golden >=2.3.4 && <2.4,- tasty >=1.4.2 && <1.5,+ tasty-golden >=2.3.5 && <2.4,+ tasty >=1.4.2.1 && <1.5, bytestring >=0.10.12.0 && <0.11,- yaml >=0.11.7.0 && <0.12,+ yaml >=0.11.8.0 && <0.12, directory >=1.3.6.0 && <1.4, filepath >=1.4.2.1 && <1.5, pandoc >=2.14.0.3 && <2.15,
github-action/Main.hs view
@@ -9,6 +9,7 @@ import Control.Monad.Freer.Reader import Data.OpenApi.Compare.Run import Data.Text (Text)+import qualified Data.Text as T import qualified Data.Yaml.Aeson as Yaml import qualified GitHub as GH import System.Environment@@ -22,13 +23,18 @@ main :: IO () main = do cfg <- decodeEnv >>= either error pure- getArgs >>= \case- ["pre"] -> runPre cfg- ["run"] -> do- oldFile <- getEnv "OLD"- newFile <- getEnv "NEW"- runRun cfg (root cfg </> oldFile) (root cfg </> newFile)- _ -> error "Invalid arguments."+ case sha cfg of+ x | T.null . T.strip . GH.untagName $ x -> do+ putStrLn "SHA not specified. Exiting without doing anything."+ pure ()+ _ ->+ getArgs >>= \case+ ["pre"] -> runPre cfg+ ["run"] -> do+ oldFile <- getEnv "OLD"+ newFile <- getEnv "NEW"+ runRun cfg (root cfg </> oldFile) (root cfg </> newFile)+ _ -> error "Invalid arguments." runner :: Config -> Eff '[GitHub, Error GH.Error, Reader Config, IO] a -> IO a runner cfg =
test/golden/common/random-example/trace-tree.yaml view
@@ -23,6 +23,10 @@ backwardChanges: AtPath "/pets": InOperation GetMethod:+ InParam "limit":+ InParamSchema:+ OfType Number: MatchingMaximumWeak (ProdCons {producer = Inclusive 30.0,+ consumer = Inclusive 20.0}) WithStatusCode 200: ResponsePayload: PayloadSchema:@@ -33,10 +37,6 @@ - TypesRestricted [Number] - AdditionalToProperty - OfType Number: NoMatchingMultipleOf 1.0- InParam "limit":- InParamSchema:- OfType Number: MatchingMaximumWeak (ProdCons {producer = Inclusive 30.0,- consumer = Inclusive 20.0}) InOperation PostMethod: InRequest: InPayload: