biothings / discovery-app

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

[Feature Request] #190

Closed flaneuse closed 3 months ago

flaneuse commented 1 year ago

Describe the solution you'd like Add an object template to the Common Validation section:

Screen Shot 2022-09-16 at 10 45 44 AM

for instance, I just created this custom Object:

{
  "@type": "AggregateRating",
  "type": "object",
  "properties": {
    "ratingCount": {
      "type": "string"
    },
    "ratingValue": {
      "type": "string"
    },
    "reviewAspect": {
      "type": "string"
    }
  },
  "required": [
    "ratingValue"
  ],
  "recommended": [
    "ratingCount",
    "reviewAspect"
  ]
}

... I copied the Object|Person definition but it'd be nice to have a generic template. Also, copying/editing validation rules can get a little clunky; it's a small window and sometimes it seems to slip under the "Common Validation" section? A pop-out and/or copy button might be nice. Thanks!