Skip to content

Alias error with Ruby 3.1.1 #86

@federicopolesello

Description

@federicopolesello

Hi guys,
I'm trying to add a variable in the YAML file in order to reuse it in some points in the same file.

code:
  org:
    service-one:
      version: *version
      generators:
        dart_2_17_json:
          target: source

Running the command apibuilder update --path .apibuilder.yml it works running it on a macOS with ruby version 2.6.10 but it doesn't work running it on a macOS with ruby version 3.1.1.

/Users/federico/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias': Unknown alias: version (Psych::BadAlias)

Searching I found this possible issue but I'm not sure.
https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias

Do you have any idea how I can solve it keeping the latest ruby version?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions