We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using Node Tags as defined in the YAML specs here the serialization is throwing an exception
In the sample
%YAML 1.2 --- !XL.Handler Configuration: Beacon: UseBuzzer: True WidthAdjustment: EnableWidthAdjustment: False ConveyorWidth: 1150 ConveyorWidthOffset: 2000
Im getting a
unknown tag !<!XL.Handler> at line 11, column 1:
The text was updated successfully, but these errors were encountered:
You must define a type for that tag as shown in custom_types example: https://github.com/nodeca/js-yaml/tree/master/examples
Sorry, something went wrong.
Thanks, need much less than in the example, but it works
var ConfigYamlType = new jsyaml.Type('!XL.Handler', { kind: 'mapping', construct: function (data) { return data; } }); var CONFIG_SCHEMA = jsyaml.Schema.create([ ConfigYamlType ]); var loaded = jsyaml.load(response, { schema: CONFIG_SCHEMA });
It is just enough in this case to return the data.
No branches or pull requests
When using Node Tags as defined in the YAML specs here the serialization is throwing an exception
In the sample
Im getting a
unknown tag !<!XL.Handler> at line 11, column 1:
The text was updated successfully, but these errors were encountered: