Experiments
Schemas
Edit
Edit Schema
Name
*
Name cannot be changed after creation
Version
Version is auto-incremented on changes
Category
Optional category for organization
JSON Schema Content
*
{"$schema":"https://json-schema.org/draft-07/schema","$id":"https://doc-processing-suite/schemas/decision.schema.json","title":"DecisionDocument","description":"Board and shareholder resolution document data schema","type":"object","properties":{"documentId":{"type":"string","minLength":1},"category":{"type":"string","const":"decision"},"templateVariant":{"type":"string","default":"default"},"decisionType":{"type":"string","enum":["board_resolution","shareholder_resolution","written_resolution","unanimous_consent"]},"resolutionNumber":{"type":"string","minLength":1},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"companyName":{"type":"string","minLength":1},"resolutionTitle":{"type":"string","minLength":1},"resolutionText":{"type":"string","minLength":1},"background":{"type":"string"},"whereas":{"type":"array","items":{"type":"string"}},"resolvedClauses":{"type":"array","items":{"type":"string"},"minItems":1},"votingResults":{"$ref":"#/$defs/VotingResults"},"effectiveDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"chairman":{"$ref":"#/$defs/Person"},"secretary":{"$ref":"#/$defs/Person"},"witnesses":{"type":"array","items":{"$ref":"#/$defs/Person"}}},"required":["documentId","category","decisionType","resolutionNumber","date","companyName","resolutionTitle","resolutionText","resolvedClauses","votingResults","chairman"],"additionalProperties":false,"$defs":{"Person":{"type":"object","properties":{"name":{"type":"string","minLength":1},"title":{"type":"string"},"email":{"type":"string","format":"email"}},"required":["name"],"additionalProperties":false},"Vote":{"type":"object","properties":{"voterName":{"type":"string","minLength":1},"vote":{"type":"string","enum":["for","against","abstain"]},"sharesRepresented":{"type":"integer","minimum":1}},"required":["voterName","vote"],"additionalProperties":false},"VotingResults":{"type":"object","properties":{"totalVotes":{"type":"integer","minimum":1},"votesFor":{"type":"integer","minimum":0},"votesAgainst":{"type":"integer","minimum":0},"abstentions":{"type":"integer","minimum":0},"passed":{"type":"boolean"},"votes":{"type":"array","items":{"$ref":"#/$defs/Vote"}}},"required":["totalVotes","votesFor","votesAgainst","abstentions","passed"],"additionalProperties":false}}}
Format
Minify
1
Enter a valid JSON Schema definition
Cancel
Update Schema