Code Monkey home page Code Monkey logo

Comments (7)

akoserwal avatar akoserwal commented on August 14, 2024 1

@miabbott: Is this issue still valid?
https://github.com/coreos/ignition/blob/master/config/v3_0/schema/ignition.json

If yes, I would like to work on it.

from coreos-assembler.

miabbott avatar miabbott commented on August 14, 2024 1

@akoserwal Yes I think it is still a valid issue. I think this is a two-step problem to solve.

  1. Create a schema definition for both builds.json and meta.json
  2. Create a way to validate the generated JSON files are in compliance with the schemas definitions.

Ignition has the ignition-validate tool that can be used to validate Ignition configs; coreos-assembler would need something similar.

from coreos-assembler.

jlebon avatar jlebon commented on August 14, 2024

I agree we should do this. Note the schema for builds.json dramatically changed in #580. Notably, we also include a schema-version key now.

from coreos-assembler.

miabbott avatar miabbott commented on August 14, 2024

Ignition has the ignition-validate tool that can be used to validate Ignition configs; coreos-assembler would need something similar.

This would be a nice to have, but we could probably just use some additions to the tests which we can run against PRs etc.

from coreos-assembler.

darkmuggle avatar darkmuggle commented on August 14, 2024

Given that I've broken COSA builds with my refactor....I would like to do this. We hg

Here's my proposal for the schema:

  • the schema will be made an explicit contract which external sources can rely on
  • add tests to ensure that the schema is enforced
  • changing the schema will incur some friction, but changes to the schema will become INTENTIONAL.

from coreos-assembler.

cgwalters avatar cgwalters commented on August 14, 2024

coreos/mantle#1165 is intended to do validation too; not the same as a schema, but using a statically typed programming language to parse it makes API changes very explicit.

from coreos-assembler.

cgwalters avatar cgwalters commented on August 14, 2024

This was done.

from coreos-assembler.

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.