dhiway / cord.js

Cord JS API
Apache License 2.0
36 stars 48 forks source link

[C4GT] make 'object' as a valid 'type' in schema fields #86

Closed amarts closed 1 year ago

amarts commented 1 year ago

What is this enhancement about?

When a data is represented digitally, it can be of complex type, not just a basic 'string', number, date, boolean format. If there is a complex data type, it can then be represented as an 'object' in schema, which can be handled during parsing of the data during IDocument (Verifiable document) format.

How to test it?

Add a schema with 'object' type of field, for example below sample:

{ .... 
   "properties": {
      "address": {
          "type": "object",
           "properties": {
              "street": ...,
              "pincode": ...,
              "state": ...,
              "district": ..., 
          }
       }
   }
  ...
}

and then use the data similarly.

Things to look out for

NiranjanAP commented 1 year ago

create a different one with right formatting for C4GT