bengibaykal / swe574group1

2 stars 2 forks source link

Week 9 - Annotation JSON Schema Validation #82

Closed bengibaykal closed 4 years ago

bengibaykal commented 4 years ago

When a request received, before save, check and validate data regarding the requested JSONLD Schema.

{
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "http://example.org/anno4",
"type": "Annotation",
"body": "http://example.org/description1",
"target": "http://example.com/", "created": "2017-11-28T18:56:04.889815+00:00" }

bengibaykal commented 4 years ago

Here several methods we could achieve this validation.

  1. In model field level control by creating Custom Model. Adding validation support to JSON field