Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[writer] Shorthandable tags are not shorthanded #258

Closed
diegonc opened this issue Feb 18, 2016 · 2 comments
Closed

[writer] Shorthandable tags are not shorthanded #258

diegonc opened this issue Feb 18, 2016 · 2 comments

Comments

@diegonc
Copy link

diegonc commented Feb 18, 2016

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?

@dervus
Copy link
Collaborator

dervus commented Feb 18, 2016

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.

@dervus dervus changed the title [writer] Tag name representation differs from input [writer] Shorthandable tags are not shorthanded Feb 18, 2016
rlidwka added a commit that referenced this issue Dec 28, 2020
@rlidwka
Copy link
Member

rlidwka commented Dec 28, 2020

Fixed in a583097 (currently in dev branch).

@rlidwka rlidwka closed this as completed Dec 28, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants