{"id":18468873,"url":"https://github.com/shvixxl/event-validator","last_synced_at":"2026-05-02T20:38:48.994Z","repository":{"id":122919174,"uuid":"317555862","full_name":"shvixxl/event-validator","owner":"shvixxl","description":"Small script for validating JSON files with schemas.","archived":false,"fork":false,"pushed_at":"2020-12-03T22:10:41.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T13:42:38.318Z","etag":null,"topics":["json","json-parser","json-schema","python","validation","validator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shvixxl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-01T13:49:31.000Z","updated_at":"2021-10-30T21:37:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"861f8463-e276-4ffd-92c9-ac0520fc2906","html_url":"https://github.com/shvixxl/event-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shvixxl/event-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvixxl%2Fevent-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvixxl%2Fevent-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvixxl%2Fevent-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvixxl%2Fevent-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shvixxl","download_url":"https://codeload.github.com/shvixxl/event-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvixxl%2Fevent-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","json-parser","json-schema","python","validation","validator"],"created_at":"2024-11-06T10:08:23.345Z","updated_at":"2026-05-02T20:38:47.109Z","avatar_url":"https://github.com/shvixxl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# event-validator\n\nSmall script for validating JSON files with schemas.\n\n## Usage\n\nChange paths inside the script:\n\n```python\n# Path to the folder with JSON schemas\nPATH_SCHEMA = \"/path/to/folder\"\n\n# Path to the folder with JSON files\nPATH_JSON = \"/path/to/folder\"\n\n# Path to save log file\nPATH_LOG = \"/path/to/file\"\n```\n\nRun the script:\n\n```bash\npython event-validator.py\n```\n\n## Example\n\n```log\n2020-12-04 01:07:35.368135\n\nValidating event \"1eba2aa1-2acf-460d-91e6-55a8c3e3b7a3\": Invalid\n  Validating \"data\" property: -\n  - Property \"unique_id\" is missing!\n  - Property \"user\" is missing!\n  - Property \"user_id\" is missing!\n    Validating \"id\" property: +\n    Validating \"rr_id\" property: +\n    Validating \"labels\" property: +\n      Validating its 1 item: +\n        Validating \"slug\" property: +\n        Validating \"type\" property: +\n        Validating \"color\" property: +\n        Validating \"name_en\" property: +\n        Validating \"name_ru\" property: +\n        Validating \"category\" property: +\n        Validating \"type_stress\" property: +\n        Validating \"is_custom_tag\" property: +\n        Validating \"property_where\" property: +\n        Validating \"property_arousal\" property: +\n        Validating \"property_pleasure\" property: +\n        Validating \"property_vitality\" property: +\n        Validating \"property_stability\" property: +\n    Validating \"timestamp\" property: +\n\nValidating event \"297e4dc6-07d1-420d-a5ae-e4aff3aedc19\": Valid\n  Validating \"data\" property: +\n    Validating \"source\" property: +\n    Validating \"timestamp\" property: +\n    Validating \"unique_id\" property: +\n    Validating \"time_start\" property: +\n    Validating \"finish_time\" property: +\n    Validating \"activity_type\" property: +\n\nValidating event \"29f0bfa7-bd51-4d45-93be-f6ead1ae0b96\": Invalid\n- Root element is not \"object\".\n| Its actual type is \"null\"\n\nValidating event \"2e8ffd3c-dbda-42df-9901-b7a30869511a\": Invalid\n- Unknown event type \"meditation_created\".\n| Maybe you meant \"cmarker_created\"?\n\nValidating event \"3ade063d-d1b9-453f-85b4-dda7bfda4711\": Invalid\n- Unknown event type \"cmarker_calculated\".\n| Maybe you meant \"cmarker_created\"?\n\nValidating event \"3b4088ef-7521-4114-ac56-57c68632d431\": Valid\n  Validating \"data\" property: +\n    Validating \"user_id\" property: +\n    Validating \"cmarkers\" property: +\n    Validating \"datetime\" property: +\n\nValidating event \"6b1984e5-4092-4279-9dce-bdaa831c7932\": Invalid\n- Unknown event type \"meditation_created\".\n| Maybe you meant \"cmarker_created\"?\n\nValidating event \"a95d845c-8d9e-4e07-8948-275167643a40\": Invalid\n- \"event\" property is missing.\n- \"data\" property is missing.\n\nValidating event \"ba25151c-914f-4f47-909a-7a65a6339f34\": Invalid\n- Unknown event type \"label_       selected\".\n| Maybe you meant \"label_selected\"?\n\nValidating event \"bb998113-bc02-4cd1-9410-d9ae94f53eb0\": Invalid\n  Validating \"data\" property: -\n  - Property \"unique_id\" is missing!\n    Validating \"source\" property: +\n    Validating \"timestamp\" property: +\n    Validating \"time_start\" property: +\n    Validating \"finish_time\" property: +\n    Validating \"activity_type\" property: +\n\nValidating event \"c72d21cf-1152-4d8e-b649-e198149d5bbb\": Invalid\n- Unknown event type \"meditation_created\".\n| Maybe you meant \"cmarker_created\"?\n\nValidating event \"cc07e442-7986-4714-8fc2-ac2256690a90\": Invalid\n  Validating \"data\" property: -\n  - Type of this property is not \"object\"!\n  | Its actual type is \"null\".\n\nValidating event \"e2d760c3-7e10-4464-ab22-7fda6b5e2562\": Invalid\n  Validating \"data\" property: -\n    Validating \"user_id\" property: -\n    - Type of this property is not \"integer\"!\n    | Its actual type is \"string\".\n    | And its value is \"bad user id\".\n    Validating \"cmarkers\" property: +\n      Validating its 1 item: +\n        Validating \"id\" property: +\n        Validating \"date\" property: +\n        Validating \"slug\" property: +\n      Validating its 2 item: +\n        Validating \"id\" property: +\n        Validating \"date\" property: +\n        Validating \"slug\" property: +\n    Validating \"datetime\" property: +\n\nValidating event \"f5656ff6-29e1-46b0-8d8a-ff77f9cc0953\": Valid\n  Validating \"data\" property: +\n    Validating \"source\" property: +\n    Validating \"timestamp\" property: +\n    Validating \"unique_id\" property: +\n    Validating \"time_start\" property: +\n    Validating \"finish_time\" property: +\n    Validating \"activity_type\" property: +\n\nValidating event \"fb1a0854-9535-404d-9bdd-9ec0abb6cd6c\": Invalid\n  Validating \"data\" property: -\n  - Property \"cmarkers\" is missing!\n    Validating \"user_id\" property: +\n    Validating \"datetime\" property: +\n\nValidating event \"ffe6b214-d543-40a8-8da3-deb0dc5bbd8c\": Invalid\n  Validating \"data\" property: -\n    Validating \"user_id\" property: -\n    - Type of this property is not \"integer\"!\n    | Its actual type is \"null\".\n    Validating \"cmarkers\" property: -\n    - Type of this property is not \"array\"!\n    | Its actual type is \"string\".\n    | And its value is \"suprt marker\".\n    Validating \"datetime\" property: +\n\n\nTotal events: 16\n\nValid events (3): \n+ \"297e4dc6-07d1-420d-a5ae-e4aff3aedc19\"\n+ \"3b4088ef-7521-4114-ac56-57c68632d431\"\n+ \"f5656ff6-29e1-46b0-8d8a-ff77f9cc0953\"\n\nInvalid events (13): \n- \"1eba2aa1-2acf-460d-91e6-55a8c3e3b7a3\"\n- \"29f0bfa7-bd51-4d45-93be-f6ead1ae0b96\"\n- \"2e8ffd3c-dbda-42df-9901-b7a30869511a\"\n- \"3ade063d-d1b9-453f-85b4-dda7bfda4711\"\n- \"6b1984e5-4092-4279-9dce-bdaa831c7932\"\n- \"a95d845c-8d9e-4e07-8948-275167643a40\"\n- \"ba25151c-914f-4f47-909a-7a65a6339f34\"\n- \"bb998113-bc02-4cd1-9410-d9ae94f53eb0\"\n- \"c72d21cf-1152-4d8e-b649-e198149d5bbb\"\n- \"cc07e442-7986-4714-8fc2-ac2256690a90\"\n- \"e2d760c3-7e10-4464-ab22-7fda6b5e2562\"\n- \"fb1a0854-9535-404d-9bdd-9ec0abb6cd6c\"\n- \"ffe6b214-d543-40a8-8da3-deb0dc5bbd8c\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshvixxl%2Fevent-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshvixxl%2Fevent-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshvixxl%2Fevent-validator/lists"}