{"id":20521605,"url":"https://github.com/tedivm/schema_transpose","last_synced_at":"2026-04-18T14:03:57.466Z","repository":{"id":145202458,"uuid":"576705324","full_name":"tedivm/schema_transpose","owner":"tedivm","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-24T19:02:29.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T21:37:42.815Z","etag":null,"topics":["json-schema"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/schema-transpose/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tedivm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-12-10T17:59:50.000Z","updated_at":"2024-05-01T21:37:42.816Z","dependencies_parsed_at":null,"dependency_job_id":"5c518260-c115-409a-a91e-63dd4adc6a73","html_url":"https://github.com/tedivm/schema_transpose","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tedivm/schema_transpose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedivm%2Fschema_transpose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedivm%2Fschema_transpose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedivm%2Fschema_transpose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedivm%2Fschema_transpose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tedivm","download_url":"https://codeload.github.com/tedivm/schema_transpose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedivm%2Fschema_transpose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31971493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-schema"],"created_at":"2024-11-15T22:30:09.879Z","updated_at":"2026-04-18T14:03:54.987Z","avatar_url":"https://github.com/tedivm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schema Transpose\n\nThis library and CLI converts JSON Schema Documents into other languages. It can work with JSON Schema or Pydantic files as a source.\n\n\n## Usage\n\nThis needs to be installed in the same virtual environment as the Models that it is converting. Once installed a CLI tool, `schema_transpose`, will be available in the environment.\n\nFor example, to generate a variables file for the RDS ParameterValidation class-\n\n```shell\nrobert@Roberts-MacBook-Pro terraform-aws-core % schema_transpose modules.rds.validation.parameters:ParameterValidation\n```\n\nThe command will output the following to stdout:\n\n```hcl\nvariable \"type\" {\n  type = string\n  default = null\n}\n\nvariable \"pit_identifier\" {\n  type = string\n  default = null\n}\n\nvariable \"tags\" {\n  type = map(any)\n  default = {}\n}\n\nvariable \"name\" {\n  type = string\n  validation {\n    # Automatically Generated from Rule: minlength\n    condition     = length(var.name) \u003e= 1\n    error_message = \"Field should not be less than 1 characters\"\n  }\n  validation {\n    # Automatically Generated from Rule: maxlength\n    condition     = length(var.name) \u003c= 63\n    error_message = \"Field should not be larger than 63 characters\"\n  }\n  validation {\n    # Automatically Generated from Rule: pattern\n    condition     = length(regexall(\"^(?!.*--)[a-zA-Z][A-Za-z0-9.-]+(?\u003c!-)$\", var.name)) \u003e 0\n    error_message = \"Field does not match regex pattern ^(?!.*--)[a-zA-Z][A-Za-z0-9.-]+(?\u003c!-)$\"\n  }\n}\n\nvariable \"vpc_name\" {\n  type = string\n}\n\nvariable \"engine\" {\n  type = string\n  validation {\n    # Automatically Generated from Rule: minlength\n    condition     = length(var.engine) \u003e= 1\n    error_message = \"Field should not be less than 1 characters\"\n  }\n}\n\nvariable \"engine_version\" {\n  type = string\n  validation {\n    # Automatically Generated from Rule: minlength\n    condition     = length(var.engine_version) \u003e= 1\n    error_message = \"Field should not be less than 1 characters\"\n  }\n}\n\nvariable \"is_public\" {\n  type = bool\n  default = false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedivm%2Fschema_transpose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedivm%2Fschema_transpose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedivm%2Fschema_transpose/lists"}