Giter Club home page Giter Club logo

Comments (4)

bjhargrave avatar bjhargrave commented on July 18, 2024

Comment author: [email protected]

It would be nice to have the same ways to Comment in Features and Configurator.

When reading rfc 241, I can see in the Example that an key that starts(?) with a # is an comment:

{

"# some" : "comment",

"#" : "key starts with hast es enough",

"key" : "value"
}

The spec of the Configurator:

{
// Comment

/*
* More comments
*/

"key" : "value"
}
  1. It may help to add some Comments in the form of JSMin (The JavaScript Minifier) comments ( // and /* */ ) to your example to point out that this is also valid.

  2. It would be nice to have more information about - how to do comment

´´´
"#" : "Is it only Key must start with an #?",
"#" : "is having same key twice also okay?",
"# foo" : "# bar is okay"
"#": null;
"#": { "fooComment", "barComment"};

"#": ["and",
"this",
"?"],
´´´

  1. Does that mean, that Service-Properties/Configurations with the name "#" couldn't be set using the features configuration? Or will every comment in the configurator section be handled as an component-property?

  2. the Example is not a valid json. is that correct?

"sql-init|TEXT:true": {
"# create some database tables for this feature",
"CREATE TABLE FOO (...)",
"CREATE TABLE BAR (...)"
},
  1. to declare the type of Extensibility you can use a |. to declate a data-type in configurator you have to use a : it may should be the same separator in boths.

  2. is it correct that the ":true" behind the Extensibilit-Type is the optional/mandantory flag for the Extensibility.

from design.

bjhargrave avatar bjhargrave commented on July 18, 2024

Comment author: @cziegeler

Yes, it makes sense to support the same way of commenting. We probably will remove the usage of "#" for comments and allow the same comments as in the configurator spec.

from design.

bjhargrave avatar bjhargrave commented on July 18, 2024

Comment author: @bosschaert

Hi Stefan,

Thanks for the feedback!

Yes, I agree that JSMin-style like used in the configurator spec makes more sense. This will also allow for the embedding of configurator configurations in the feature model.

On the extensions, I have since updated the RFC to use a more JSON-native approach to extensions.

You can find the updated RFC at https://github.com/osgi/design/blob/master/rfcs/rfc0241/rfc-0241-Features.pdf

from design.

bjhargrave avatar bjhargrave commented on July 18, 2024

Comment author: @bosschaert

Note that the updated RFC now contains a new section on comments (section 5.4).

from design.

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.