{"id":19580886,"url":"https://github.com/orcid/jinjafier","last_synced_at":"2026-03-09T10:31:50.417Z","repository":{"id":229024644,"uuid":"775547343","full_name":"ORCID/jinjafier","owner":"ORCID","description":"golang script to convert config files into jinja templates and extract the values into a yml file","archived":false,"fork":false,"pushed_at":"2026-03-05T13:33:12.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-05T17:25:40.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ORCID.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-21T15:37:18.000Z","updated_at":"2026-03-05T13:30:40.000Z","dependencies_parsed_at":"2024-04-04T19:42:06.381Z","dependency_job_id":"1225e8d1-9556-4845-bada-952eeef3beef","html_url":"https://github.com/ORCID/jinjafier","commit_stats":null,"previous_names":["orcid/jinjafier"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ORCID/jinjafier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORCID%2Fjinjafier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORCID%2Fjinjafier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORCID%2Fjinjafier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORCID%2Fjinjafier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ORCID","download_url":"https://codeload.github.com/ORCID/jinjafier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORCID%2Fjinjafier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":[],"created_at":"2024-11-11T07:30:46.935Z","updated_at":"2026-03-09T10:31:50.391Z","avatar_url":"https://github.com/ORCID.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jinjafier\n\n## Introduction\n\nJinjafier is a small script to convert and existing java properties file to a jinja2 template with an included yml file using the current values of the property file.\n\n## Rules for converting property files\n\nThe standards listed here are converted into jinja2 variables that are suitable to use as system environment variables (uppercase with _ as a delimiter.)\n\n|Property\t| Note |\n|---------|------|\n|my.main-project.person.first-name  | Kebab case, which is recommended for use in .properties and YAML files.|\n|my.main-project.person.firstName   | Standard camel case syntax.|\n|my.main-project.person.first\\_name  | Underscore notation, which is an alternative format for use in .properties and YAML files.|\n|MY\\_MAINPROJECT\\_PERSON\\_FIRSTNAME     | Upper case format, which is recommended when using system environment variables.|\n\n## Spring Boot binding behavior\n\nSpring Boot resolves environment variables by replacing `.` with `_`, removing `-`, and converting to uppercase. It does **not** split camelCase words with underscores.\n\n### `@Value` annotations\n\n`@Value` does **not** support relaxed binding. The env var must match the exact property name after applying these rules:\n\n- Replace `.` with `_`\n- Remove `-`\n- Convert to uppercase\n- **No camelCase splitting**\n\nExample: `@Value(\"${my.main-project.person.firstName}\")` resolves to `MY_MAINPROJECT_PERSON_FIRSTNAME`\n\n### `@ConfigurationProperties`\n\n`@ConfigurationProperties` supports relaxed binding. Spring normalizes by stripping all delimiters and comparing case-insensitively, so both `FIRSTNAME` and `FIRST_NAME` will work.\n\n### The `-camel-split` flag\n\nBy default, jinjafier follows Spring Boot's env var resolution rules (no camelCase splitting). If your application uses `@ConfigurationProperties` exclusively and you prefer underscores between camelCase words, use the `-camel-split` flag:\n\n```\n# Default (Spring Boot compatible)\n./jinjafier example.properties\n# person.firstName -\u003e PERSON_FIRSTNAME\n\n# With camelCase splitting\n./jinjafier -camel-split example.properties\n# person.firstName -\u003e PERSON_FIRST_NAME\n```\n\n# Installing with asdf\n```\n# RUN asdf plugin add jinjafier https://github.com/ORCID/asdf-jinjafier.git\njinjafier latest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forcid%2Fjinjafier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forcid%2Fjinjafier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forcid%2Fjinjafier/lists"}