Giter Site home page Giter Site logo

Comments (3)

roadie-bot avatar roadie-bot commented on August 22, 2024

https://app.shortcut.com/larder/story/5931

from backstage-entity-validator.

kissmikijr avatar kissmikijr commented on August 22, 2024

Hi @Counterfly I dug into it and it seems there is potentially a bug in the official backstage validators. We use their JSON schemas to validate the catalog-info.yaml files and here you can see that for Location entities it is required to have a spec key defined. However, it is true that all the properties of a spec object are optional.

I opened an issue to Backstage so we can either update the docs if the spec key is required or update the json schema to reflect the current behaviour. I'll get back to you when we got a conclusion which will it be.

In the meantime if you just provide a
spec: {} it should also pass the validation. Like so:

apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
  name: todo-example-project
spec: {}

from backstage-entity-validator.

kissmikijr avatar kissmikijr commented on August 22, 2024

@Counterfly it got merged and the docs is updated. We went with this since as you can see in the issue backstage/backstage#8906 that the spec field is required and actually doesn't make sense to use a Location if you are not using the spec.
I'll close this issue.

from backstage-entity-validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.