VSChina / magic-modules

Magic Modules: Automagically generate Google Cloud Platform support for OSS
Apache License 2.0
1 stars 4 forks source link

Enable yaml alias in YAML.safe_load #75

Closed magodo closed 4 years ago

magodo commented 4 years ago

Yaml anchor, alias is helpful to DRY. E.g. for batchaccount api.yaml, we can anchor sdk def for resourceGroup and accountName and alias that at CRUD request. For the alias's name, magic module already support private field to skip yaml validation, in other word, magic module already has some mechanism to work around extraneous field checking. We can use that mechanism to name our aliases, starts with '__'.