taskcluster-lib-api
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -831,3 +831,3 @@ 'use strict'; | ||
}); | ||
assert(/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(options.name), 'api name "' + options.name + '" is not valid'); | ||
assert(/^[a-z][a-z0-9_-]*$/.test(options.name), 'api name "' + options.name + '" is not valid'); | ||
this._options = _.defaults({ | ||
@@ -834,0 +834,0 @@ errorCodes: _.defaults({}, options.errorCodes || {}, errors.ERROR_CODES) |
@@ -95,3 +95,3 @@ { | ||
"maxLength": 22, | ||
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$" | ||
"pattern": "^[a-z][a-z0-9_-]*$" | ||
}, | ||
@@ -98,0 +98,0 @@ "entries": { |
{ | ||
"name": "taskcluster-lib-api", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "taskcluster-lib-api", |
@@ -18,3 +18,3 @@ TaskCluster API | ||
title: 'My API', | ||
name: 'my-api', // Must match /^[a-zA-Z][a-zA-Z0-9_-]*$/ | ||
name: 'my-api', // Must match /^[a-z][a-z0-9_-]*$/ | ||
description: [ | ||
@@ -81,3 +81,4 @@ "Long string with **markdown** support, used for writing docs", | ||
* `name` (required) - a simple name for the service that will become part of a url | ||
This must match the regex `/^[a-zA-Z][a-zA-Z0-9_-]*$/` | ||
This must match the regex `/^[a-z][a-z0-9_-]*$/`. It will be the following part of a url: | ||
`https://whatever.net/api/<name>/v1/endpoint`. | ||
* `schemaPrefix` - the prefix for the schema definitions for this service | ||
@@ -84,0 +85,0 @@ * `params` - patterns for URL parameters that apply to all methods (see below) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176683
457