scaffolder: apply review fixes
Co-authored-by: Johan Haals <johan.haals@gmail.com> Co-authored-by: Fredrik Adelöw <freben@gmail.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -33,6 +33,7 @@ import {
|
||||
templateEntityV1beta3Schema,
|
||||
} from '@backstage/plugin-scaffolder-common';
|
||||
|
||||
/** @public */
|
||||
export class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
||||
private readonly validators = [
|
||||
entityKindSchemaValidator(templateEntityV1beta3Schema),
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module.exports = {
|
||||
extends: [require.resolve('@backstage/cli/config/eslint.backend')],
|
||||
extends: [require.resolve('@backstage/cli/config/eslint')],
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
"private": false,
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"main": "dist/index.esm.js",
|
||||
@@ -14,10 +15,9 @@
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/backstage/backstage",
|
||||
"directory": "plugin/scaffolder-common"
|
||||
"directory": "plugins/scaffolder-common"
|
||||
},
|
||||
"keywords": [
|
||||
"techdocs",
|
||||
"scaffolder"
|
||||
],
|
||||
"files": [
|
||||
|
||||
@@ -83,6 +83,11 @@
|
||||
"examples": ["service", "website", "library"],
|
||||
"minLength": 1
|
||||
},
|
||||
"owner": {
|
||||
"type": "string",
|
||||
"description": "The user (or group) owner of the template",
|
||||
"minLength": 1
|
||||
},
|
||||
"parameters": {
|
||||
"oneOf": [
|
||||
{
|
||||
@@ -172,11 +177,6 @@
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"owner": {
|
||||
"type": "string",
|
||||
"description": "The user (or group) owner of the template",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,8 +32,9 @@ describe('templateEntityV1beta3Validator', () => {
|
||||
},
|
||||
spec: {
|
||||
type: 'website',
|
||||
owner: 'team-b',
|
||||
parameters: {
|
||||
required: ['storePath', 'owner'],
|
||||
required: ['owner'],
|
||||
properties: {
|
||||
owner: {
|
||||
type: 'string',
|
||||
@@ -56,7 +57,6 @@ describe('templateEntityV1beta3Validator', () => {
|
||||
output: {
|
||||
fetchUrl: '${{ steps.fetch.output.targetUrl }}',
|
||||
},
|
||||
owner: 'team-b@example.com',
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user