fast_yaml icon indicating copy to clipboard operation
fast_yaml copied to clipboard

Substitute does not working

Open deemytch opened this issue 4 years ago • 1 comments

erlang/OTP24 elixir 1.12 archlinux fast_yaml 1.0.31

substitutes like that won't decoded.

defaults:
  coreAPI: &coreAPI
    coreAPI: [publish, disable]

ctrl:
  document:
    <<: *coreAPI
    other: [values]

Instead of { :ok, %{ ctrl: %{ document: %{ coreAPI: ["publish","disable"], other: ["values"] }...

I get { :ok, [%{ ctrl: %{ document: %{ "<<": "coreAPI", other: ["values"] }...

At the same time ruby version YAML decoding that fine.

deemytch avatar May 27 '21 10:05 deemytch

Yes, indeed we don't have code that resolves aliases, but i think this is something that can be added, will see how much work will it require.

prefiks avatar May 27 '21 13:05 prefiks