1
0
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:
chris48s 2023-12-30 17:38:48 +00:00 committed by GitHub
parent e548414edd
commit 700566ff26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 1 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',