git.iko.soy/typeable/openapi3
on master help sign in
Rename swagger2 to openapi3
7f9addfMaxim Koltsov
.travis.yml+9−9
@@ -1,6 +1,6 @@
1# This Travis job script has been generated by a script via
1# This Travis job script has been generated by a script via
2#
2#
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'
4#
4#
5# To regenerate the script (for example after adjusting tested-with) run
5# To regenerate the script (for example after adjusting tested-with) run
6#
6#
@@ -96,10 +96,10 @@ install:
96 - touch cabal.project
96 - touch cabal.project
97 - |
97 - |
98 echo "packages: ." >> cabal.project
98 echo "packages: ." >> cabal.project
99− - echo 'package swagger2' >> cabal.project
99+ - echo 'package openapi3' >> cabal.project
100 - "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
100 - "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
101 - |
101 - |
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"
103 - cat cabal.project || true
103 - cat cabal.project || true
104 - cat cabal.project.local || true
104 - cat cabal.project.local || true
105 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
105 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
@@ -117,16 +117,16 @@ script:
117 - cd ${DISTDIR} || false
117 - cd ${DISTDIR} || false
118 - find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
118 - find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
119 - find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
119 - 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.]*')"
121 # Generate cabal.project
121 # Generate cabal.project
122 - rm -rf cabal.project cabal.project.local cabal.project.freeze
122 - rm -rf cabal.project cabal.project.local cabal.project.freeze
123 - touch cabal.project
123 - touch cabal.project
124 - |
124 - |
125− echo "packages: ${PKGDIR_swagger2}" >> cabal.project
125+ echo "packages: ${PKGDIR_openapi3}" >> cabal.project
126− - echo 'package swagger2' >> cabal.project
126+ - echo 'package openapi3' >> cabal.project
127 - "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
127 - "echo ' ghc-options: -Werror=missing-methods' >> cabal.project"
128 - |
128 - |
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"
130 - cat cabal.project || true
130 - cat cabal.project || true
131 - cat cabal.project.local || true
131 - cat cabal.project.local || true
132 # Building...
132 # Building...
@@ -138,12 +138,12 @@ script:
138 # Testing...
138 # Testing...
139 - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all
139 - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all
140 # cabal check...
140 # cabal check...
141− - (cd ${PKGDIR_swagger2} && ${CABAL} -vnormal check)
141+ - (cd ${PKGDIR_openapi3} && ${CABAL} -vnormal check)
142 # haddock...
142 # haddock...
143 - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
143 - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
144 # Building without installed constraints for packages in global-db...
144 # Building without installed constraints for packages in global-db...
145 - rm -f cabal.project.local
145 - rm -f cabal.project.local
146 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
146 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
147
147
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"])
149# EOF
149# EOF
README.md+11−9
@@ -1,21 +1,22 @@
1# swagger2
1# swagger2
2
2
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)
4
7
5−[![Hackage](https://img.shields.io/hackage/v/swagger2.svg)](http://hackage.haskell.org/package/swagger2)
8+OpenAPI 3.0 data model.
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)
9
9
10−Swagger 2.0 data model.
10+The original OpenAPI 3.0 specification is available at http://swagger.io/specification/.
11
11
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.
13
14
14## Usage
15## Usage
15
16
16This library is intended to be used for decoding and encoding Swagger 2.0 API specifications as well as manipulating them.
17This library is intended to be used for decoding and encoding Swagger 2.0 API specifications as well as manipulating them.
17
18
18−Please refer to [haddock documentation](http://hackage.haskell.org/package/swagger2).
19+Please refer to [haddock documentation](http://hackage.haskell.org/package/openapi3).
19
20
20Some examples can be found in [`examples/` directory](/examples).
21Some examples can be found in [`examples/` directory](/examples).
21
22
@@ -33,7 +34,8 @@ Many Swagger tools, including server and client code generation for many languag
33
34
34We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.
35We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.
35
36
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).
37
38
38*GetShopTV Team*
39*GetShopTV Team*
39
40
41+*Biocad Team*
swagger2.cabal → openapi3.cabalrenamed+13−13
@@ -1,22 +1,22 @@
1cabal-version: >=1.10
1cabal-version: >=1.10
2−name: swagger2
2+name: openapi3
3−version: 2.6.1
3+version: 3.0.0
4
4
5−synopsis: Swagger 2.0 data model
5+synopsis: OpenAPI 3.0 data model
6category: Web, Swagger
6category: Web, Swagger
7description:
7description:
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
9 specifications as well as manipulating them.
9 specifications as well as manipulating them.
10 .
10 .
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/.
12
12
13−homepage: https://github.com/GetShopTV/swagger2
13+homepage: https://github.com/biocad/openapi3
14−bug-reports: https://github.com/GetShopTV/swagger2/issues
14+bug-reports: https://github.com/biocad/openapi3/issues
15license: BSD3
15license: BSD3
16license-file: LICENSE
16license-file: LICENSE
17−author: Nickolay Kudasov
17+author: Nickolay Kudasov, Maxim Koltsov
18−maintainer: nickolay@getshoptv.com
18+maintainer: nickolay@getshoptv.com, kolmax94@gmail.com
19−copyright: (c) 2015-2016, GetShopTV
19+copyright: (c) 2015-2016, GetShopTV, (c) 2020, Biocad
20build-type: Custom
20build-type: Custom
21extra-source-files:
21extra-source-files:
22 README.md
22 README.md
@@ -100,7 +100,7 @@ test-suite spec
100 -- We need aeson's toEncoding for doctests too
100 -- We need aeson's toEncoding for doctests too
101 build-depends:
101 build-depends:
102 base
102 base
103− , swagger2
103+ , QuickCheck
104 , aeson
104 , aeson
105 , base-compat-batteries
105 , base-compat-batteries
106 , bytestring
106 , bytestring
@@ -109,12 +109,12 @@ test-suite spec
109 , insert-ordered-containers
109 , insert-ordered-containers
110 , lens
110 , lens
111 , mtl
111 , mtl
112+ , openapi3
112 , template-haskell
113 , template-haskell
113 , text
114 , text
114 , time
115 , time
115 , unordered-containers
116 , unordered-containers
116 , vector
117 , vector
117− , QuickCheck
118
118
119 -- test-suite only dependencies
119 -- test-suite only dependencies
120 build-depends:
120 build-depends:
@@ -147,4 +147,4 @@ test-suite doctests
147
147
148source-repository head
148source-repository head
149 type: git
149 type: git
150− location: https://github.com/GetShopTV/swagger2.git
150+ location: https://github.com/biocad/openapi3.git