Questions tagged «yaml»

将此标签仅用于有关YAML数据序列化格式的问题,而不用于有关恰好具有YAML格式配置的程序(或示例)的问题。有关CSS框架(也称为YAML)的问题应改为标记[yaml-css]。

2
什么是规范的YAML命名样式
我正在设计一个新的YAML文件,并且我想使用最标准的命名样式。哪有 连字号? - job-name: ... lower_case_with_underscores? - job_name: ... 骆驼香烟盒? - jobName: ...
77 yaml  conventions 

29
rails错误,无法解析YAML
更新了宝石之后,我得到了: /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 182 column 9 (Psych::SyntaxError) from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse_stream' from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:119:in `parse' from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:106:in `load' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:6:in `<module:LATEX>' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:3:in `<top (required)>' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth.rb:21:in `require' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth.rb:21:in `<top (required)>' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/case_sensitive_require/RedCloth.rb:6:in `require' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/case_sensitive_require/RedCloth.rb:6:in `<top (required)>' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `require' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `block (2 levels) …


4
YAML模式验证?
是否有YAML的架构验证语言?我已经用Google搜索,但是找不到任何有用的东西。 对于我而言,使用语言本身来描述架构的类似XSD格式的东西将是最佳选择。
73 validation  xsd  schema  yaml 

5
pyyaml:不带标签的转储
我有 >>> import yaml >>> yaml.dump(u'abc') "!!python/unicode 'abc'\n" 但是我想要 >>> import yaml >>> yaml.dump(u'abc', magic='something') 'abc\n' 什么魔术参数强制不加标签?
71 python  yaml  pyyaml 

2
在这种情况下,不允许使用YAML映射值
我正在尝试以以下格式配置YAML文件: jobs: - name: A - schedule: "0 0/5 * 1/1 * ? *" - type: mongodb.cluster - config: - host: mongodb://localhost:27017/admin?replicaSet=rs - minSecondaries: 2 - minOplogHours: 100 - maxSecondaryDelay: 120 - name: B - schedule: "0 0/5 * 1/1 * ? *" - type: mongodb.cluster - config: - host: …
70 yaml 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.