tliron / puccini

Cloud topology management and deployment tools based on TOSCA
https://puccini.cloud
Apache License 2.0
88 stars 20 forks source link

single-line grammar for repositories unsupported #103

Closed philippemerle closed 2 years ago

philippemerle commented 2 years ago

For the following service template

tosca_definitions_version: tosca_simple_yaml_1_3
repositories:
  docker_hub: https://registry.hub.docker.com/
  another_repository:
    url: https://registry.hub.docker.com/

puccini raises the following errors

$ puccini-tosca puccini-tosca-repositories-single-line-grammar.yaml 
PROBLEMS (2)
  file:/.../puccini-tosca-repositories-single-line-grammar.yaml
    @3,3 repositories["docker_hub"]: "string" instead of "map"
    @3,3 repositories["docker_hub"].url: missing required field

The multi-line grammar for repositories is supported but the single-line grammar for repositories seems to not be supported.

tliron commented 2 years ago

Thank you, this was an omission on my part.