{"id":15102783,"url":"https://github.com/renatoelho/valid-json","last_synced_at":"2025-04-05T11:42:44.433Z","repository":{"id":243208886,"uuid":"811772709","full_name":"Renatoelho/valid-json","owner":"Renatoelho","description":"Este repositório demonstra como validar JSONs usando JSON Schemas com Pydantic em Python. Ele inclui exemplos de JSON Schemas, um script para converter esses esquemas em modelos Pydantic automaticamente, e um exemplo de como validar JSONs usando esses modelos. ","archived":false,"fork":false,"pushed_at":"2024-06-07T09:48:26.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:42:41.188Z","etag":null,"topics":["json","jsonschema","pydantic","python","valid"],"latest_commit_sha":null,"homepage":"https://renato.tec.br/Vídeos","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/Renatoelho.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":"2024-06-07T09:15:32.000Z","updated_at":"2024-06-07T09:55:08.000Z","dependencies_parsed_at":"2024-06-07T11:11:24.252Z","dependency_job_id":"104a03a8-3382-404d-975c-8e2cc7876941","html_url":"https://github.com/Renatoelho/valid-json","commit_stats":null,"previous_names":["renatoelho/valid-json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Renatoelho%2Fvalid-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Renatoelho%2Fvalid-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Renatoelho%2Fvalid-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Renatoelho%2Fvalid-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Renatoelho","download_url":"https://codeload.github.com/Renatoelho/valid-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332525,"owners_count":20921852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","jsonschema","pydantic","python","valid"],"created_at":"2024-09-25T19:06:50.040Z","updated_at":"2025-04-05T11:42:44.410Z","avatar_url":"https://github.com/Renatoelho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Validando arquivos Json a partir de JsonSchemas\n\n\n### Requisitos\n\n+ ![Git](https://img.shields.io/badge/Git-2.25.1%2B-E3E3E3)\n\n+ ![Python](https://img.shields.io/badge/Python-3.8%2B-E3E3E3)\n\n\n### Clonando o repositório\n\n```bash\ngit clone https://github.com/Renatoelho/valid-json.git valid-json\n```\n\n\n### Deploy do ambiente\n\n```bash\ncd valid-json/\n```\n\n```bash\npython3 -m venv .venv \u0026\u0026 source .venv/bin/activate \u0026\u0026 pip install -U pip setuptools wheel --no-cache-dir \u0026\u0026 pip install -r requirements.txt --no-cache-dir\n```\n\n\n### Configurando o PYTHONPATH\n\n```bash\nexport PYTHONPATH=$PWD/models\n```\n\n\u003e ***Obs.:*** O PYTHONPATH também pode ser adicionado no ```.bashrc``` utilizando path absoluto do projeto.\n\n\n### Convertendo os JsonSchemas em Modelos Pydantic\n\n```bash\nchmod +x generate_models.sh\n```\n\n```bash\nsh ./generate_models.sh\n```\n\n\n### Testando aplicação\n\n```bash\npython3 app.py \"./samples/sample-data.json\"\n```\n\n\n# Referências\n\nInstallation, **Pydantic.** Disponível em: \u003chttps://docs.pydantic.dev/latest/install/\u003e. Acesso em: 07 junho. 2024.\n\nWhy use Pydantic?, **Pydantic.** Disponível em: \u003chttps://docs.pydantic.dev/latest/why/\u003e. Acesso em: 07 junho. 2024.\n\nCode Generation with datamodel-code-generator, **Pydantic.** Disponível em: \u003chttps://docs.pydantic.dev/latest/integrations/datamodel_code_generator/\u003e. Acesso em: 07 junho. 2024.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatoelho%2Fvalid-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenatoelho%2Fvalid-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatoelho%2Fvalid-json/lists"}