{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:semiconductor-earnings-dataset:schema:0.3.0","title":"Semiconductor Latest Quarterly Earnings Dataset","description":"A sourced, machine-readable comparison of the latest reported quarterly earnings for selected semiconductor companies.","type":"object","required":["dataset_id","version","as_of","period_basis","comparability_note","companies","sources","comparison","earnings_update"],"properties":{"dataset_id":{"type":"string"},"version":{"type":"string","pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$"},"as_of":{"type":"string","format":"date"},"period_basis":{"const":"latest_reported_quarter"},"comparability_note":{"type":"string"},"companies":{"type":"array","minItems":1,"items":{"type":"object","required":["company","ticker","period","reporting_scope","accounting_basis","report_status","metrics"],"properties":{"company":{"type":"string"},"ticker":{"type":"string"},"period":{"type":"object","required":["fiscal_label","period_end","reported_at"],"properties":{"fiscal_label":{"type":"string"},"period_start":{"type":["string","null"],"format":"date"},"period_end":{"type":"string","format":"date"},"reported_at":{"type":"string","format":"date"}},"additionalProperties":false},"reporting_scope":{"type":"string"},"accounting_basis":{"type":"string"},"report_status":{"enum":["reported","preliminary","unaudited","restated"]},"metrics":{"type":"object","additionalProperties":{"$ref":"#/$defs/metric"}},"outlook":{"type":"array","items":{"type":"object","required":["item","type","text","source_ref"],"properties":{"item":{"type":"string"},"type":{"enum":["quantitative_guidance","qualitative_outlook"]},"text":{"type":"string"},"source_ref":{"type":"string"}},"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"sources":{"type":"object","additionalProperties":{"type":"object","required":["publisher","title","url","published_at"],"properties":{"publisher":{"type":"string"},"title":{"type":"string"},"url":{"type":"string","format":"uri"},"published_at":{"type":"string","format":"date"},"accessed_at":{"type":"string","format":"date"}},"additionalProperties":false}},"comparison":{"type":"object","required":["reviewed_on","common_metrics","notes"],"additionalProperties":false,"properties":{"reviewed_on":{"type":"string","format":"date"},"common_metrics":{"type":"array","items":{"type":"string"}},"notes":{"type":"array","items":{"type":"string"}}}},"earnings_update":{"type":"object","required":["highlights","comparison_table","evidence","comparability_limits"],"additionalProperties":false,"properties":{"highlights":{"type":"array","items":{"type":"object","required":["ticker","text","evidence_refs"],"properties":{"ticker":{"type":"string"},"text":{"type":"string"},"evidence_refs":{"type":"array","items":{"type":"string"}}}}},"comparison_table":{"type":"object","required":["financials","guidance_changes"],"properties":{"financials":{"type":"array","items":{"type":"object","required":["ticker","scope","accounting_basis","currency","unit","periods","latest_period_end","revenue","operating_income","operating_margin","evidence_ref"],"properties":{"ticker":{"type":"string"},"scope":{"type":"string"},"accounting_basis":{"type":"string"},"currency":{"type":"string"},"unit":{"type":"string"},"periods":{"type":"object","required":["latest","previous","year_ago"],"properties":{"latest":{"type":"string"},"previous":{"type":"string"},"year_ago":{"type":"string"}}},"latest_period_end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"revenue":{"type":"object","required":["latest","previous","year_ago","qoq_change","yoy_change","change_unit"],"properties":{"latest":{"type":"number"},"previous":{"type":"number"},"year_ago":{"type":"number"},"qoq_change":{"type":"number"},"yoy_change":{"type":"number"},"change_unit":{"const":"percent"}}},"operating_income":{"anyOf":[{"type":"object","required":["latest","previous","year_ago"],"properties":{"latest":{"type":"number"},"previous":{"type":"number"},"year_ago":{"type":"number"}}},{"type":"null"}]},"operating_margin":{"anyOf":[{"type":"object","required":["latest","previous","year_ago","qoq_change","yoy_change","change_unit"],"properties":{"latest":{"type":"number"},"previous":{"type":"number"},"year_ago":{"type":"number"},"qoq_change":{"type":"number"},"yoy_change":{"type":"number"},"change_unit":{"const":"percentage_points"}}},{"type":"null"}]},"evidence_ref":{"type":"string"}}}},"guidance_changes":{"type":"array","items":{"type":"object","required":["ticker","driver","previous","current","change"],"properties":{"ticker":{"type":"string"},"driver":{"type":"string"},"previous":{"type":"object","required":["period","text","source_ref","location","evidence_ref"],"properties":{"period":{"type":"string"},"text":{"type":"string"},"source_ref":{"type":"string"},"location":{"type":"string"},"evidence_ref":{"type":"string"}}},"current":{"type":"object","required":["period","text","source_ref","location","evidence_ref"],"properties":{"period":{"type":"string"},"text":{"type":"string"},"source_ref":{"type":"string"},"location":{"type":"string"},"evidence_ref":{"type":"string"}}},"change":{"type":"string"}}}}}},"evidence":{"type":"object","required":["locations","formulas"],"properties":{"locations":{"type":"object","additionalProperties":{"type":"object","required":["source_ref","url","location"],"properties":{"source_ref":{"type":"string"},"url":{"type":"string"},"location":{"type":"string"}}}},"formulas":{"type":"object","additionalProperties":{"type":"string"}}}},"comparability_limits":{"type":"array","items":{"type":"object","required":["id","text"],"properties":{"id":{"type":"string"},"text":{"type":"string"}}}}}}},"$defs":{"metric":{"type":"object","required":["value","unit","basis","source_ref"],"properties":{"value":{"type":"number"},"currency":{"type":"string"},"unit":{"type":"string"},"basis":{"enum":["issuer_reported","calculated_from_reported_values"]},"formula":{"type":"string"},"source_ref":{"type":"string"},"rounding_note":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}