{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://data.jamesfeltonkeith.com/research/import.schema.json","title":"ChatGPT research import","type":"object","required":["schemaVersion","cases"],"additionalProperties":false,"properties":{"schemaVersion":{"const":"research-import-1.0"},"mode":{"enum":["create","revise"],"default":"create"},"cases":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","required":["id","company","buyer","value","originalFigure","currency","period","metric","basis","stage","industry","geography","dataType","evidence","sourceUrl","sourceTitle","notes"],"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{3,100}$"},"company":{"type":"string","minLength":1},"buyer":{"type":"string","minLength":1},"value":{"type":["number","null"],"minimum":0},"originalFigure":{"type":"string","minLength":1},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"period":{"type":"string","pattern":"^[0-9]{4}$"},"reportingPeriod":{"type":"string"},"metric":{"enum":["announced-transaction","realized-transaction","forecast","asking-price","settlement","revenue","profit","cost-savings","data-licensing","actual-compensation"]},"basis":{"type":"string"},"stage":{"type":"string"},"industry":{"type":"string"},"geography":{"type":"string"},"dataType":{"enum":["employee","consumer","historical","other"]},"evidence":{"enum":["primary-source","secondary-source","unverified"]},"sourceUrl":{"type":"string","format":"uri","pattern":"^https://"},"sourceTitle":{"type":"string"},"notes":{"type":"string","minLength":1},"publication":{"type":"object","properties":{"title":{"type":"string"},"dek":{"type":"string"},"body":{"type":"string"},"videoUrl":{"type":["string","null"]}}}}}}}}