Skip to content

[writer] Shorthandable tags are not shorthanded #258

Closed

Description

@diegonc

Hello

I'm using this library to parse a configuration format where I added some custom types. These custom types are constructed and represented through some types I'm writing. All of the types are collected in a custom schema. (By the way, schemas work great and makes the library very extensible :)

Below I copy the input I'm parsing:

d: !!lp/fnref log

And this is the output I get after loading the YAML text and dumping the data structure

d: !<tag:yaml.org,2002:lp/fnref> log

Is there anyway I can tell js-yaml to dump tag names in the short representation I used in the input?

Activity

  1. dervus commented on Feb 18, 2016

    @dervus
    Collaborator

    This is not implemented. By the way, we should had an improvement-ticket for this since 2.0 release. Forgotten stuff. Let it be such a ticket then.

  2. changed the title [-][writer] Tag name representation differs from input[/-] [+][writer] Shorthandable tags are not shorthanded[/+] on Feb 18, 2016
  3. rlidwka commented on Dec 28, 2020

    @rlidwka
    Member

    Fixed in a583097 (currently in dev branch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions