Skip to content

Commit

Permalink
Merge pull request #35 from Vikastc/type-obj
Browse files Browse the repository at this point in the history
chore: add  in schema creation
  • Loading branch information
Vikastc authored Mar 20, 2024
2 parents cf8b22c + 516864c commit cbc7556
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/schema_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ export async function createSchema(

let newSchemaName = data.title + ':' + Cord.Utils.UUID.generate();
data.title = newSchemaName;
data.type = 'object';

let schemaDetails = Cord.Schema.buildFromProperties(
let schemaDetails = await Cord.Schema.buildFromProperties(
data,
CHAIN_SPACE_ID as `space:cord:${string}`,
issuerDid.uri
Expand Down

0 comments on commit cbc7556

Please sign in to comment.