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
Add namespace/profile keyname to each OASIS TOSCA Simple Profile in YAML file #110
Conversation
I'm not sure we need the 'namespace' keyname in every file. What I had in mind was to just add it to the top-level 'profile.yaml' file. |
I considered that a namespace is attached to its owning TOSCA file and it is not transitively propagated to the files imported by this owning file. So each file should define its own namespace and if several files should have the same namespace then the same namespace should be assigned to all these files. I think for profiles you should interpret |
@philippemerle In my view this can't easily work in TOSCA. The issue is that a single "import" can actually import a tree of files, but we can only assign a single namespace prefix to that entire import. That, to me, implies that the import tree must all have the same namespace. Now, we could potentially allow a There's another thing: if you have a |
With more thought, here's how I think of it: You could put in a Since we agreed that namespace prefixes are prepended, this does mean that a single import could included "nested" namespaces, too. |
My understanding is that namespaces are relevant only in the context of the importing TOSCA file (i.e. the importing TOSCA file defines the namespace into which another TOSCA file is imported). I'm not sure what it means for an imported TOSCA file to define a name for its own namespace, i.e. how would that name be used? My interpretation is that the namespace name in v1.3 is intended to be used like the profile name in v2.0--it defines a well-known name for the profile that allows "import by profile name". |
Based on the discussion in #120 I removed the namespace names and profile names from all the imported TOSCA files. |
No description provided.