Coder Social home page Coder Social logo

Comments (9)

thomas-fossati avatar thomas-fossati commented on August 16, 2024

please can you provide a clearer description?

from corim.

yogeshbdeshpande avatar yogeshbdeshpande commented on August 16, 2024

Architecturally CoMID and CoSWID/SWID are independent units with different purposes.
They may re-use or share types among them. If that is the case one should extract common types which is shared across
these two and move them to common package. This removes the need for using SWID Package inside CoMID package and vice versa!

from corim.

thomas-fossati avatar thomas-fossati commented on August 16, 2024

Since the dependency is not circular, I don't see the problem with the current arrangement (i.e., CoMID reusing SWID defined types). Note that this is also true at a higher level than the code organisation: CoMID CDDL actually reuses some CoSWID CDDL types.

from corim.

yogeshbdeshpande avatar yogeshbdeshpande commented on August 16, 2024

Another problem I see is that if someone modifies the base type used inside CoSWID it unknowingly impacts CoMID.

from corim.

thomas-fossati avatar thomas-fossati commented on August 16, 2024

The assumption we are building on here is that the type is univocally defined by the CoSWID spec.

from corim.

yogeshbdeshpande avatar yogeshbdeshpande commented on August 16, 2024

Was an OK assumption till the scope of type was restricted to CoSWID specification. Also SWID and CoSWID specification also do not share tag id internally so, if we plan to share among various packages, then best to define them in a common place.

from corim.

thomas-fossati avatar thomas-fossati commented on August 16, 2024

Was an OK assumption till the scope of type was restricted to CoSWID specification.

Why? It is an OK assumption until the CoSWID spec changes -- which is extremely unlikely at this point in time.

Also SWID and CoSWID specification also do not share tag id internally

I don't think this premise is correct: SWID and CoSWID do in fact share the "tag id" definition (with CoSWID.tag-id being a more stringently typed version of SWID.TagId).

from corim.

thomas-fossati avatar thomas-fossati commented on August 16, 2024

I think this is OBE?

from corim.

nedmsmith avatar nedmsmith commented on August 16, 2024

They share hash-entry with includes alg-id (I'm not sure how the alg-ids are registered such that there is interoperability guarantees)

from corim.

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.