adampenn / Angular7-json-schema-form

Angular v7 for Angular2-json-schema-form
MIT License
5 stars 7 forks source link

support for $ref local file and/or over the wire #13

Open ghost opened 5 years ago

ghost commented 5 years ago

More of a question than an issue: I am using this library to render some web forms and the "inline" definition in a schema file works; i.e.

... "attributeA": { "$ref": "#/definitions/attributerADef" }, ...

"definitions": { "attributeADef": { ... }, ...

However, does the same work when $ref is a file on the same path OR over the wire:

... "attributeA": { "$ref": "attributerADef.json" }, ...

OR

"attributeA": {
  "$ref": "http:www.example.com/attributeADef.json"
},

which template:

Thanks