When loading YAML anchors  in node.js (v4.8.7) using the js-yaml 3.10.0 package (there's a nice example of using it here) I get the following error:     "cannot merge mappings; the provided source object is unacceptable"   For instance in...
I have an object in my Gulp task which contains the data of my Yaml files. Now I want to access this object from other JavaScript files.  This is what my Gulp Task looks like:  Gulpfile.js  var mergedYaml  gulp.task('LoadYamlFiles', function(...
I am storing some data in Rails which I then access from Javascript. (I am using the gon gem to do so). When I hardcode a string value (for gon) in the controller, it works fine, and I can access this data from javascript:  #set in rails, available i...
I currently have this JS array that I want to turn into a YAML file. I tried looking things up and I know how to make an object and array, but not how to nest them.  cartParams: [     {         title: Leg type,         options: [             Round,...
I'm doing a tool to automate some work and I need to merge some configuration YAMLs in just one, but I need comments because I need to describe the fields to the future. I already managed to do this without the comments, converting the YAML to JS...
The following js code (executed through foundation build) should actually clean the whole folder defined in PATHS.springDist except .yml files, instead it deletes everything.  function cleanSpring(done) {     globby([PATHS.springDist + '/*',...
I'm trying to use load-grunt-config to organise better my Grunt tasks.  So far I have had no issues with this. Now, I was trying to configure something like imagemin.  So, basically this is the structure I'm trying to replicate within YAML:...
I am using .yaml and json.mustaches to build aws cloudformation templates.  I dont want to hardcode a list of 4040, 4041...etc 1000 times Does mustache have concept of loop logic? ie I want a loop from 4040 to 5040. I imagine i could just specify sta...
I want to define in the default as null in Swagger.yaml :  MYKey: &CONST_MY_KEY null   But this does not work. However, an empty string fine as shown below :  MYKey: &CONST_MY_KEY ""...
Currently I am working on a project where I'd need to convert multiple .yaml filse to .json in order to work with it.   Example .yaml-file:   id: 1 name: Tony created: ruby/object:ActiveSupport::TimeWithZone   zone: utc   time: 10:00:00 updated:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.