Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid requirement syntax #1

Open
glelouet opened this issue Dec 20, 2016 · 2 comments
Open

invalid requirement syntax #1

glelouet opened this issue Dec 20, 2016 · 2 comments

Comments

@glelouet
Copy link

requirements in tosca specification is eg

  requirements:
    - database:
        node: my_database
        capability: Endpoint.Database
        relationship: my.types.CustomDbConnection

in this yaml file it is

    requirements:
      - host: tosca.capabilities.Container
        relationship: tosca.relationships.HostedOn

however this syntax is invalid. It should instead be

    requirements:
      - host:
          capability: tosca.capabilities.Container
          relationship: tosca.relationships.HostedOn
@lucboutier
Copy link
Member

Hi Guillaume,

TOSCA grammar has changed on various aspects in the past years and alien4cloud project started based on some early working draft. We are getting closer to full simple profile support keeping retro-compatibility with previous supported grammars.

The current file grammar version is defined by the tosca_definitions_version with is right now alien_dsl_1_2_0.
Since alien4cloud 1.3.0 we support requirement definitions as mentioned in the tosca simple profile in yaml 1.0.0 so we could change the definitions and the version of the definitions. If we do so and even if the content has not changed we would have to release a new version of the normative types as packaged in alien4cloud and decided not do to so in 1.3.0 version.

We will for sure consider that in next versions a4c hopefully shifting the tosca_definitions_version of this document to tosca_simple_yaml_1_0 which is the official one.

You can read more on our support and grammar differences here:
http://alien4cloud.github.io/#/documentation/1.3.0/devops_guide/tosca_grammar/tosca_grammar.html
We updated the documentation recently to state for every element which key name is supported in which dsl version as parsed in alien4cloud and which are not yet supported.

Luc

Your issue will remain open until we actually perform the switch.

@glelouet
Copy link
Author

Thank you very much.

Will you support the shorthand_name ? In Tosca I can write a Node extends Compute, this will be resolved as tosca.nodes.Compute .

I don't know why the shorthand are not present in the tosca normative examples . I am making my own Tosca compiler and I add the corresponding shorthand_name to the definition that have one in the tosca spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants