https://github.com/apiaryio/redsnow
https://github.com/apiaryio/matter_compiler
我需要使用redsnow为matter_compiler生成一个json / yaml 我检查了文档&代码,但没有找到它。现在可以吗?
为什么我需要它:
我想用test / specs中的数据生成apiblueprint-markdown。
答案 0 :(得分:1)
是的,RedSnow不支持序列化为JSON / YAML。 Serialize仅在SnowCrash中。
但您可以在物质编译器中查看blueprint.rb。您可以扩展此类并使用他的serialize
方法从您的类创建markdown。