{"id":13526841,"url":"https://github.com/idubinskiy/schematyper","last_synced_at":"2026-01-16T15:37:48.467Z","repository":{"id":33052774,"uuid":"36689047","full_name":"idubinskiy/schematyper","owner":"idubinskiy","description":"Generates Go types based on JSON Schemas","archived":false,"fork":false,"pushed_at":"2023-02-13T20:36:53.000Z","size":36,"stargazers_count":239,"open_issues_count":9,"forks_count":31,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T08:36:39.615Z","etag":null,"topics":["go","go-generate","json-schemas"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/idubinskiy.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":"2015-06-01T21:09:14.000Z","updated_at":"2025-03-24T02:05:56.000Z","dependencies_parsed_at":"2024-06-18T14:08:10.255Z","dependency_job_id":"d363068f-92ac-4f67-89d1-12fe4625f821","html_url":"https://github.com/idubinskiy/schematyper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/idubinskiy/schematyper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idubinskiy%2Fschematyper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idubinskiy%2Fschematyper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idubinskiy%2Fschematyper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idubinskiy%2Fschematyper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idubinskiy","download_url":"https://codeload.github.com/idubinskiy/schematyper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idubinskiy%2Fschematyper/sbom","scorecard":{"id":481791,"data":{"date":"2025-08-11","repo":{"name":"github.com/idubinskiy/schematyper","commit":"f71b40dac30d33c343c37447dc475d4d1c358f4e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T16:49:37.772Z","repository_id":33052774,"created_at":"2025-08-19T16:49:37.772Z","updated_at":"2025-08-19T16:49:37.772Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["go","go-generate","json-schemas"],"created_at":"2024-08-01T06:01:35.762Z","updated_at":"2026-01-16T15:37:48.443Z","avatar_url":"https://github.com/idubinskiy.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# schematyper\n\nGenerates Go struct types based on a [JSON Schema](http://json-schema.org/).\n\n## Installation\n```\n$ go get github.com/idubinskiy/schematyper\n```\n\n## Usage\n```\n$ schematyper schema.json\n```\nCreates a `schema_schematype.go` file with package `main`.\n\nCommand line options:\n```\nusage: schematyper [\u003cflags\u003e] \u003cinput\u003e\n\nFlags:\n      --help                 Show context-sensitive help (also try --help-long and --help-man).\n  -c, --console              output to console instead of file\n  -o, --out-file=OUT-FILE    filename for output; default is \u003cschema\u003e_schematype.go\n      --package=\"main\"       package name for generated file; default is \"main\"\n      --root-type=ROOT-TYPE  name of root type; default is generated from the filename\n      --prefix=PREFIX        prefix for non-root types\n      --ptr-for-omit         use a pointer to a struct for an object\n                             property that is represented as a struct if the property is not required (i.e., has omitempty tag)\n\nArgs:\n  \u003cinput\u003e  file containing a valid JSON schema\n```\n\n`package main` (the default) will generate unexported types. Any other package name defaults to exported types. `--root-type` and `--prefix` can be used to override this behavior.\n\nCan be used with [`go generate`](https://blog.golang.org/generate):\n```go\n//go:generate schematyper -o schema_type.go -package mypackage schemas/schema.json\n```\n\n## Schema Features Support\nSupports the following JSON Schema keywords:\n* `title` - sets type name\n* `description` - sets type comment\n* `required` - sets which fields in type don't have `omitempty`. If --ptr-for-omit is specified and the field is not required, a field that is an object represented as a struct is generated as a pointer to the struct.\n* `properties` - determines struct fields\n* `additionalProperties` - determines struct type of map values\n* `type` - sets field type (`string`, `bool`, etc.). Examples:\n    * `[\"string\", \"null\"]` sets `*string`\n    * `\"object\"` sets `map[string]interface{}`, `map[string]\u003cnew type\u003e`, or a new struct type depending on schema\n    * `\"array\"` sets `[]interface{}` or `[]\u003cnew type\u003e` depending on schema\n    * `[\"string\", \"integer\"]` sets `interface{}`\n* `items` - sets array items type, similar to `type`\n* `format` - if `date-time`, sets type to `time.Time` and imports `time`\n* `definitions` - creates additional types which can be referenced using `$ref`\n* `$ref` - Reference a local schema (same file).\n\nSupport for more features is pending, but many will require adding run-time checks by implementing the `json.Marshaler` and `json.Unmarshaler` interfaces.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidubinskiy%2Fschematyper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidubinskiy%2Fschematyper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidubinskiy%2Fschematyper/lists"}