Coder Social home page Coder Social logo

Comments (5)

mjacoby avatar mjacoby commented on August 15, 2024 2

This is related to our previuos discussion whether we want to support the usage of multiple versions of the model within the same application.

I like this idea but maybe we are not considering all implications here, e.g. we would also need to have multiple "copies" of other components such as the de-/serializers as they will only work for a specific version of the model.
If we keep all the versions over time in the code base, the dependencies will become quite large over time.

Considering only final versions of the model an approach could be something like this

Release vX.Y.Z with namespace ...v3... used for all components, i.e. ...v3.model...., ...v3.dataformat.json..., ...v3.validator... etc.

Upon release of next final version v4 of specification
Release v(X+1).Y.Z with namespace ...v4... used for all components, remove all ...v4... namespaces

If an application wants to support v3 and v4 it can include dependencies with vX.Y.Z and v(X+1).Y.Z.
Downside would be that each time an application wants to upgrade to a new version of the model it has to update all imports.

Still the question remains how to handle RC-versions...

from aas4j.

sebbader-sap avatar sebbader-sap commented on August 15, 2024

It's a design decision in my view, which we should decide on as early as possible.

Pro ...v3.rc02...:

  • possible to load the 3.0.RC02 library and a future 3.0 at the same time

Con:

  • A lot (!) of classes need to be touched without functional changes
  • all implementing applications need to touch all their import statements

from aas4j.

twebermartins avatar twebermartins commented on August 15, 2024

Agree with @mjacoby proposal.

Following a suggestion of @sebbader-sap, started an Architecture Decisions Records as a draft to document decisions.

from aas4j.

sebbader avatar sebbader commented on August 15, 2024

This commit has the change now in the code:
9c87ff1

from aas4j.

sebbader avatar sebbader commented on August 15, 2024

Let's keep this issue open until we merge the update-to-rc02 branch.

from aas4j.

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.