Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backstage template.yaml schema #4417

Open
jpmcb opened this issue Feb 4, 2025 · 0 comments
Open

Backstage template.yaml schema #4417

jpmcb opened this issue Feb 4, 2025 · 0 comments

Comments

@jpmcb
Copy link

jpmcb commented Feb 4, 2025

Description of the JSON schema.

Backstage's template.yaml is not included and seems to match too braodly to one of AWS's components. For example, I get the following errors in Megalinter:

Processing ./templates/template.yaml
Found schema in https://www.schemastore.org/api/json/catalog.json ...
Validating ./templates/template.yaml against schema from https://raw.githubusercontent.com/aws/serverless-application-model/main/samtranslator/schema/schema.json ...
./templates/template.yaml is invalid

./templates/template.yaml# must have required property 'Resources'
./templates/template.yaml# must NOT have additional properties
./templates/template.yaml# must NOT have additional properties
./templates/template.yaml# must NOT have additional properties
./templates/template.yaml# must NOT have additional properties

And the matching schema:

"name": "AWS CloudFormation Serverless Application Model (SAM)",
"description": "The AWS Serverless Application Model (AWS SAM, previously known as Project Flourish) extends AWS CloudFormation to provide a simplified way of defining the Amazon API Gateway APIs, AWS Lambda functions, and Amazon DynamoDB tables needed by your serverless application",
"fileMatch": [
"template.yaml",

Supporting information.

Backstage's template.yaml is defined here: https://backstage.io/docs/features/software-catalog/descriptor-format/#kind-template

Are you making a PR for this?

No, someone else must create the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant