biothings / discovery-app

The Data Discovery Engine project by the CD2H Data working-group
http://discovery.biothings.io
Apache License 2.0
4 stars 12 forks source link

value for domainIncludes is incorrectly formatted when generated by the DDE #237

Closed gtsueng closed 4 months ago

gtsueng commented 10 months ago

Describe the bug Newly created schemas (with new properties) can't be viewed or registered because the editor is not formatting the value for domainIncludes properly. It is providing a text value "mynamespace:myProperty" instead of a dictionary {"@id": "mynamespace:myProperty}

To Reproduce Steps to reproduce the behavior:

  1. extend a schema from schema:Action
  2. create new namespace, classname
  3. create new property
  4. Preview the jsonld file

Expected behavior Format the domainIncludes default values so that it works with the DDE

Screenshots image