Commit Graph

281 Commits (b4aed4314cb71915e3972bd7520336f7d9c95a26)

Author SHA1 Message Date
Barış Soner Uşaklı 84383d3995 fix: spec
Julian Lam 23a0b8c54c fix(openapi): v14 test fix
Barış Soner Uşaklı 9ffdab02d0 fix: tag of /api/unread/total
Julian Lam ccc6118d30
Testing suite integration for openapi spec ()
* feat: testing suite integration for openapi spec

The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.

* fix(openapi): removed debug stuff from tests

* fix(openapi): fixed some tests

* fix(openapi): added additional check to tests, test fixes

* fix(openapi): better tests, fixed spec errors

* fix(openapi): bad conditional in test

* fix: oops

* fix(openapi): more tests fixing

* fix(openapi): more tests

* fix(openapi): fix some more tests

* fix: verbose'd an info log

* fix: topic pagination route returns schema-optimized pagination block

* fix(openapi): more test/spec fixes

* fix(openapi): accidentally sending in authenticated jar for anon routes

* fix(openapi): more test/spec fixes

* fix(openapi): more spec fixes

* fix: timestampReadable Invalid Date

* fix(openapi): more tests... almost there

* fix(openapi): more tests fixing

* fix(openapi): finally all tests passing

* fix(openapi): added reverse test to compare response to spec

... and fixed all the tests that broke

* fix: remove tests related to group covers, as route is gone

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): object cache is not present for psql

* fix: tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
Julian Lam d342a28c16 fix(openapi): remove account and group upload routes
re: 
Julian Lam 058a15dbb2 fix(openapi): more fleshing out
Julian Lam bae88e089a fix(openapi): fleshed out admin routes
Julian Lam 8387178b25 feat(openapi): merging openapi-test branch into master
Julian Lam ab4bd7e146 fix(openapi): added some descriptions
Julian Lam 2395d2be2e fix(openapi): added PostsObject component
Julian Lam 23dd2727f2 fix(openapi): finished moving all category objects out
Julian Lam c939f8c66d fix(openapi): changed some descriptions
Julian Lam 55d0a9ffea fix(openapi): added CategoryObject component
Julian Lam 646fac1e53 fix(openapi): removed repeated breadcrumb blocks in favour of $ref
Julian Lam ac579f9dc2 fix(openapi): remove all repeated pagination blocks in favour of
Julian Lam 1cf62095dc fix(openapi): removed warning for category mods route
Julian Lam 3a5c6e07f9 fix(openapi): normalising the file for programmatic updates
Julian Lam 65c78de6fe feat(openapi): move all commonprops out for commonprops component
psychobunny cd5065572c feat: moved component specs into separate files
Julian Lam 2425f4533f feat(openapi): added template to commonprops
Julian Lam 64d79fe5f6 feat: added UserObject, UserObjectFull, Breadcrumb, Pagination component
psychobunny ae3e90d693 feat: added some summary and descriptions
Barış Soner Uşaklı 442c018ec0 feat: add some descriptions
Barış Soner Uşaklı eade13f928 feat: common schema
Julian Lam 32985eb12e Merge remote-tracking branch 'refs/remotes/origin/master'
Julian Lam 7b31fb34a7 fix: missing descriptions for common properties
Barış Soner Uşaklı 9987813f30 feat: add page query param to docs
Barış Soner Uşaklı bbddaadf51 feat: tag route doc
Julian Lam 03739b6f83 fix: some definitions in read API spec
Julian Lam 455d42bcfa fix: tagged all routes in read api spec
Julian Lam 7b155dab74 feat: added auto-generated, slimmed-down openapi 3.0 file for read api