Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (25 sloc) 453 Bytes
=== Spec Example 6.26. Tag Shorthands
--- from: http://www.yaml.org/spec/1.2/spec.html#id2785009
--- tags: spec tag local-tag
--- in-yaml(<)
%TAG !e! tag:example.com,2000:app/
---
- !local foo
- !!str bar
- !e!tag%21 baz
--- in-json(<)
[
"foo",
"bar",
"baz"
]
--- test-event
+STR
+DOC ---
+SEQ
=VAL <!local> :foo
=VAL <tag:yaml.org,2002:str> :bar
=VAL <tag:example.com,2000:app/tag!> :baz
-SEQ
-DOC
-STR
You can’t perform that action at this time.