Skip to content

Namespace of imported servce template #78

Answered by tliron
foliveira3 asked this question in Q&A
Discussion options

You must be logged in to vote

This is intentional behavior.

Every imported file (called a "unit" internally) in Puccini is its own universe. This is necessary in order to maintain proper support of TOSCA namespaces. An imported unit does not know in advance the document into which it may imported and must be fully parsable on its own. Thus, if custom_types.yaml refers to certain types then it must import them explicitly. It cannot reach them from the document into which it is imported.

Note that in terms of performance Puccini is very efficient and will internally not parse the same imported unit more than once (as long as its referred to be the same URL or path).

By the way, you can dump the import tree with the foll…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@foliveira3
Comment options

Answer selected by foliveira3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants