{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://otranspo.ca/schemas/public-api/v1/ward-scorecards","type":"object","properties":{"schema":{"const":"https://otranspo.ca/schemas/public-api/v1/ward-scorecards"},"schemaVersion":{"const":"1.0.0"},"status":{"type":"string","enum":["measured","not_imported","unavailable"]},"evidenceState":{"type":"string","enum":["reproducible","input_snapshot_incomplete","no_records"]},"snapshotId":{"anyOf":[{"type":"string"},{"type":"null"}]},"generatedAt":{"type":"string","format":"date-time"},"method":{"type":"object","properties":{"id":{"const":"ward-counts-v1"},"description":{"type":"string"},"formulas":{"type":"object","properties":{},"additionalProperties":true},"limitations":{"type":"array","items":{"type":"string"}}},"required":["id","description","formulas","limitations"],"additionalProperties":true},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sourceRecordId":{"anyOf":[{"type":"string"},{"type":"null"}]},"checksum":{"anyOf":[{"type":"string"},{"type":"null"}]},"retrievedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"importedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"rowCount":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publisher":{"anyOf":[{"type":"string"},{"type":"null"}]},"licence":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenceState":{"type":"string","enum":["recorded","not_recorded","missing"]},"licenceUnavailableReasonEn":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenceUnavailableReasonFr":{"anyOf":[{"type":"string"},{"type":"null"}]},"entityRowCounts":{"anyOf":[{"type":"object","properties":{"stops":{"type":"integer","minimum":0},"routes":{"type":"integer","minimum":0}},"additionalProperties":true},{"type":"null"}]},"state":{"type":"string","enum":["recorded","missing"]}},"additionalProperties":true}},"records":{"type":"array","items":{"type":"object","properties":{"wardId":{"type":"integer"},"wardName":{"type":"string"},"councillor":{"anyOf":[{"type":"string"},{"type":"null"}]},"importedAt":{"type":"string","format":"date-time"},"effectiveFrom":{"type":"string","format":"date-time"},"effectiveTo":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"stopCount":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"washroomCount":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"fountainCount":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"additionalProperties":true}},"reliability":{"type":"object","properties":{},"additionalProperties":true}},"required":["schema","schemaVersion","status","evidenceState","snapshotId","generatedAt","method","inputs","records","reliability"],"additionalProperties":true,"title":"ward-scorecards response schema","x-api-version":"1.0.0"}