使用raml2html时,JSON模式引用($ref)未展开

使用raml2html时,JSON模式引用($ref)未展开,json,jsonschema,raml,Json,Jsonschema,Raml,我使用JSON模式生成HTML页面。但是我的JSON模式中使用的模式引用($ref)并没有像预期的那样扩展,我也不知道为什么 我遵循了raml2html用来扩展引用的工具的说明 我的JSON模式: { "$schema": "http://json-schema.org/draft-04/schema#", "id": "http://raw.github.com/path/to/balances.json#", ... ... "$ref": "balance.js

我使用JSON模式生成HTML页面。但是我的JSON模式中使用的模式引用($ref)并没有像预期的那样扩展,我也不知道为什么

我遵循了raml2html用来扩展引用的工具的说明

我的JSON模式:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://raw.github.com/path/to/balances.json#",
  ...
  ...
      "$ref": "balance.json#"
  ...
我引用的JSON模式,
balance.JSON
,托管在GitHub上:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://raw.github.com/path/to/balance.json#",
  ...

问题似乎来自GitHub服务内容的方式,如中所述

最后,我在该存储库中设置了一个
gh-pages
分支,并将JSON模式文件存储在该分支中。现在已正确获取并呈现引用的模式