Ghost/test/unit/api
naz 071bf8edb5
Extracted Admin API JSON schemas into @tryghost/admin-api-schema (#12237)
closes https://github.com/TryGhost/Ghost/issues/10628

- JSON Schemas were extracted into a separate module to allow other clients to reuse them (for example documentation). Having them in a separate package also slims down the amount of code needed to be maintained in the core.
- Updated canary API input validators to use admin-api-schema module
- Removed canary schemas that moved into admin-api-schema package
- Updated v2 API input validators to use admin-api-schema package
- Removed v2 schemas that moved into admin-api-schema package
- Updated tests to contain needed information in apiConfig to pick up correct validation
- Added @tryghost/admin-api-schema package dependency
2020-09-30 16:25:12 +13:00
..
canary Extracted Admin API JSON schemas into @tryghost/admin-api-schema (#12237) 2020-09-30 16:25:12 +13:00
shared Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
v2 Extracted Admin API JSON schemas into @tryghost/admin-api-schema (#12237) 2020-09-30 16:25:12 +13:00
v3 Extracted Admin API JSON schemas into @tryghost/admin-api-schema (#12237) 2020-09-30 16:25:12 +13:00