mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
add description to interval enums (#9854)
This commit is contained in:
parent
e548414edd
commit
700566ff26
@ -47,6 +47,7 @@ export default class DubDownloads extends BaseJsonService {
|
||||
name: 'interval',
|
||||
example: 'dm',
|
||||
schema: { type: 'string', enum: this.getEnum('interval') },
|
||||
description: 'Daily, Weekly, Monthly, or Total downloads',
|
||||
},
|
||||
{
|
||||
name: 'packageName',
|
||||
@ -63,6 +64,7 @@ export default class DubDownloads extends BaseJsonService {
|
||||
name: 'interval',
|
||||
example: 'dm',
|
||||
schema: { type: 'string', enum: this.getEnum('interval') },
|
||||
description: 'Daily, Weekly, Monthly, or Total downloads',
|
||||
},
|
||||
{
|
||||
name: 'packageName',
|
||||
|
@ -29,6 +29,7 @@ export default class EclipseMarketplaceDownloads extends EclipseMarketplaceBase
|
||||
name: 'interval',
|
||||
example: 'dt',
|
||||
schema: { type: 'string', enum: this.getEnum('interval') },
|
||||
description: 'Monthly or Total downloads',
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
|
@ -140,6 +140,7 @@ class HexPmDownloads extends BaseHexPmService {
|
||||
name: 'interval',
|
||||
example: 'dw',
|
||||
schema: { type: 'string', enum: this.getEnum('interval') },
|
||||
description: 'Daily, Weekly, or Total downloads',
|
||||
},
|
||||
{
|
||||
name: 'packageName',
|
||||
|
@ -47,6 +47,7 @@ export default class HomebrewDownloads extends BaseJsonService {
|
||||
name: 'interval',
|
||||
example: 'dm',
|
||||
schema: { type: 'string', enum: this.getEnum('interval') },
|
||||
description: 'Monthly, Quarterly or Yearly downloads',
|
||||
},
|
||||
{
|
||||
name: 'formula',
|
||||
|
@ -42,7 +42,7 @@ export default class PackagistDownloads extends BasePackagistService {
|
||||
|
||||
static route = {
|
||||
base: 'packagist',
|
||||
pattern: ':interval(dm|dd|dt)/:user/:repo',
|
||||
pattern: ':interval(dd|dm|dt)/:user/:repo',
|
||||
queryParamSchema,
|
||||
}
|
||||
|
||||
@ -56,6 +56,7 @@ export default class PackagistDownloads extends BasePackagistService {
|
||||
name: 'interval',
|
||||
example: 'dm',
|
||||
schema: { type: 'string', enum: this.getEnum('interval') },
|
||||
description: 'Daily, Monthly, or Total downloads',
|
||||
}),
|
||||
pathParam({
|
||||
name: 'user',
|
||||
|
@ -65,6 +65,7 @@ function DownloadsForExtensionType(extensionType) {
|
||||
name: 'interval',
|
||||
example: 'dm',
|
||||
schema: { type: 'string', enum: this.getEnum('interval') },
|
||||
description: 'Daily, Weekly, Monthly, Yearly, or Total downloads',
|
||||
},
|
||||
{
|
||||
name: 'slug',
|
||||
|
Loading…
x
Reference in New Issue
Block a user