git.iko.soy/typeable/openapi3
on master help sign in
Rename swagger2 to openapi3
commit7f9addf4d6aa24fd6a47becd60589adac4f82a30 authorMaxim Koltsov <kolmax94@gmail.com> dateMon 3 Aug 2020, 17:32 (6 years ago) parentd193795
3 files changed+33−31
.travis.yml+9−9 README.md+11−9 swagger2.cabal → openapi3.cabal+13−13
.travis.yml+9−9
@@ -1,6 +1,6 @@
11# This Travis job script has been generated by a script via
22#
3−# haskell-ci '--branches' 'master' '--haddock-jobs=>=8.4' '--output' '.travis.yml' 'swagger2.cabal'
3+# haskell-ci '--branches' 'master' '--haddock-jobs=>=8.4' '--output' '.travis.yml' 'openapi3.cabal'
44#
55# To regenerate the script (for example after adjusting tested-with) run
66#
@@ -96,10 +96,10 @@ install:
9696 - touch cabal.project
9797 - |
9898 echo "packages: ." >> cabal.project
99− - echo 'package swagger2' >> cabal.project
99+ - echo 'package openapi3' >> cabal.project
100100 - "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
101101 - |
102− - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(swagger2)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
102+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(openapi3)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
103103 - cat cabal.project || true
104104 - cat cabal.project.local || true
105105 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
@@ -117,16 +117,16 @@ script:
117117 - cd ${DISTDIR} || false
118118 - find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
119119 - find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
120− - PKGDIR_swagger2="$(find . -maxdepth 1 -type d -regex '.*/swagger2-[0-9.]*')"
120+ - PKGDIR_openapi3="$(find . -maxdepth 1 -type d -regex '.*/openapi3-[0-9.]*')"
121121 # Generate cabal.project
122122 - rm -rf cabal.project cabal.project.local cabal.project.freeze
123123 - touch cabal.project
124124 - |
125− echo "packages: ${PKGDIR_swagger2}" >> cabal.project
126− - echo 'package swagger2' >> cabal.project
125+ echo "packages: ${PKGDIR_openapi3}" >> cabal.project
126+ - echo 'package openapi3' >> cabal.project
127127 - "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
128128 - |
129− - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(swagger2)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
129+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(openapi3)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
130130 - cat cabal.project || true
131131 - cat cabal.project.local || true
132132 # Building...
@@ -138,12 +138,12 @@ script:
138138 # Testing...
139139 - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all
140140 # cabal check...
141− - (cd ${PKGDIR_swagger2} && ${CABAL} -vnormal check)
141+ - (cd ${PKGDIR_openapi3} && ${CABAL} -vnormal check)
142142 # haddock...
143143 - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
144144 # Building without installed constraints for packages in global-db...
145145 - rm -f cabal.project.local
146146 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
147147
148−# REGENDATA ("0.10.1",["--branches","master","--haddock-jobs=>=8.4","--output",".travis.yml","swagger2.cabal"])
148+# REGENDATA ("0.10.1",["--branches","master","--haddock-jobs=>=8.4","--output",".travis.yml","openapi3.cabal"])
149149# EOF
README.md+11−9
@@ -1,21 +1,22 @@
11# swagger2
22
3−[![Join the chat at https://gitter.im/haskell-swagger2/Lobby](https://badges.gitter.im/haskell-swagger2/Lobby.svg)](https://gitter.im/haskell-swagger2/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3+[![Hackage](https://img.shields.io/hackage/v/openapi3.svg)](http://hackage.haskell.org/package/openapi3)
4+[![Build Status](https://travis-ci.org/biocad/openapi3.svg?branch=master)](https://travis-ci.org/biocad/openapi3)
5+[![Stackage LTS](http://stackage.org/package/openapi3/badge/lts)](http://stackage.org/lts/package/opeopenapi3)
6+[![Stackage Nightly](http://stackage.org/package/openapi3/badge/nightly)](http://stackage.org/nightly/package/openapi3)
47
5−[![Hackage](https://img.shields.io/hackage/v/swagger2.svg)](http://hackage.haskell.org/package/swagger2)
6−[![Build Status](https://travis-ci.org/GetShopTV/swagger2.svg?branch=master)](https://travis-ci.org/GetShopTV/swagger2)
7−[![Stackage LTS](http://stackage.org/package/swagger2/badge/lts)](http://stackage.org/lts/package/swagger2)
8−[![Stackage Nightly](http://stackage.org/package/swagger2/badge/nightly)](http://stackage.org/nightly/package/swagger2)
8+OpenAPI 3.0 data model.
99
10−Swagger 2.0 data model.
10+The original OpenAPI 3.0 specification is available at http://swagger.io/specification/.
1111
12−The original Swagger 2.0 specification is available at http://swagger.io/specification/.
12+This package is heavily based on excellent work on Swagger 2.0 at
13+https://github.com/GetShopTV/swagger2.
1314
1415## Usage
1516
1617This library is intended to be used for decoding and encoding Swagger 2.0 API specifications as well as manipulating them.
1718
18−Please refer to [haddock documentation](http://hackage.haskell.org/package/swagger2).
19+Please refer to [haddock documentation](http://hackage.haskell.org/package/openapi3).
1920
2021Some examples can be found in [`examples/` directory](/examples).
2122
@@ -33,7 +34,8 @@ Many Swagger tools, including server and client code generation for many languag
3334
3435We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.
3536
36−Please report bugs via the [github issue tracker](https://github.com/GetShopTV/swagger2/issues).
37+Please report bugs via the [github issue tracker](https://github.com/biocad/openapi3/issues).
3738
3839*GetShopTV Team*
3940
41+*Biocad Team*
swagger2.cabal → openapi3.cabalrenamed+13−13
@@ -1,22 +1,22 @@
11cabal-version: >=1.10
2−name: swagger2
3−version: 2.6.1
2+name: openapi3
3+version: 3.0.0
44
5−synopsis: Swagger 2.0 data model
5+synopsis: OpenAPI 3.0 data model
66category: Web, Swagger
77description:
8− This library is intended to be used for decoding and encoding Swagger 2.0 API
8+ This library is intended to be used for decoding and encoding OpenAPI 3.0 API
99 specifications as well as manipulating them.
1010 .
11− The original Swagger 2.0 specification is available at http://swagger.io/specification/.
11+ The original OpenAPI 3.0 specification is available at http://swagger.io/specification/.
1212
13−homepage: https://github.com/GetShopTV/swagger2
14−bug-reports: https://github.com/GetShopTV/swagger2/issues
13+homepage: https://github.com/biocad/openapi3
14+bug-reports: https://github.com/biocad/openapi3/issues
1515license: BSD3
1616license-file: LICENSE
17−author: Nickolay Kudasov
18−maintainer: nickolay@getshoptv.com
19−copyright: (c) 2015-2016, GetShopTV
17+author: Nickolay Kudasov, Maxim Koltsov
18+maintainer: nickolay@getshoptv.com, kolmax94@gmail.com
19+copyright: (c) 2015-2016, GetShopTV, (c) 2020, Biocad
2020build-type: Custom
2121extra-source-files:
2222 README.md
@@ -100,7 +100,7 @@ test-suite spec
100100 -- We need aeson's toEncoding for doctests too
101101 build-depends:
102102 base
103− , swagger2
103+ , QuickCheck
104104 , aeson
105105 , base-compat-batteries
106106 , bytestring
@@ -109,12 +109,12 @@ test-suite spec
109109 , insert-ordered-containers
110110 , lens
111111 , mtl
112+ , openapi3
112113 , template-haskell
113114 , text
114115 , time
115116 , unordered-containers
116117 , vector
117− , QuickCheck
118118
119119 -- test-suite only dependencies
120120 build-depends:
@@ -147,4 +147,4 @@ test-suite doctests
147147
148148source-repository head
149149 type: git
150− location: https://github.com/GetShopTV/swagger2.git
150+ location: https://github.com/biocad/openapi3.git