{"id":16303663,"url":"https://github.com/setchy/dgs-extended-formatters","last_synced_at":"2026-03-06T04:31:32.942Z","repository":{"id":37829113,"uuid":"488200467","full_name":"setchy/dgs-extended-formatters","owner":"setchy","description":"A set of DGS Directives for common formatting use-cases","archived":false,"fork":false,"pushed_at":"2026-02-27T01:22:23.000Z","size":692,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T08:56:25.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/setchy.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":".github/CODEOWNERS","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":"2022-05-03T12:26:25.000Z","updated_at":"2026-02-27T01:22:02.000Z","dependencies_parsed_at":"2023-12-24T07:46:27.052Z","dependency_job_id":"c25f2597-274e-474c-b307-79f16f6998cd","html_url":"https://github.com/setchy/dgs-extended-formatters","commit_stats":{"total_commits":503,"total_committers":5,"mean_commits":100.6,"dds":"0.47316103379721675","last_synced_commit":"bb5a448f3ac2c9b27e5b96067a7aa311cb2f31c8"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/setchy/dgs-extended-formatters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setchy%2Fdgs-extended-formatters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setchy%2Fdgs-extended-formatters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setchy%2Fdgs-extended-formatters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setchy%2Fdgs-extended-formatters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setchy","download_url":"https://codeload.github.com/setchy/dgs-extended-formatters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setchy%2Fdgs-extended-formatters/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30161734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:22:03.816Z","status":"ssl_error","status_checked_at":"2026-03-06T04:22:00.183Z","response_time":250,"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":[],"created_at":"2024-10-10T21:00:56.055Z","updated_at":"2026-03-06T04:31:32.910Z","avatar_url":"https://github.com/setchy.png","language":"Java","funding_links":[],"categories":["Implementations"],"sub_categories":["Java"],"readme":"# DGS Extended Formatters\n\n[![Build Status][build-badge]][build-workflow]\n[![Latest Release][latest-release-badge]][latest-release]\n[![Coverage][coverage-badge]][coverage]\n[![Quality Gate Status][quality-badge]][quality]\n[![Renovate enabled][renovate-badge]][renovate]\n[![OSS License][license-badge]][license]\n\nA set of [Netflix DGS][dgs-framework] Schema Directives for common response formatting use-cases.\n\n## Getting started\n\n\u003e [!TIP]\n\u003e - `dgs-extended-formatters` 2.x.x for `Netflix DGS` 10.x\n\u003e - `dgs-extended-formatters` 1.x.x for `Netflix DGS` 9.x\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.setchy\u003c/groupId\u003e\n    \u003cartifactId\u003edgs-extended-formatters\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n### String Formatters\n\nThe following schema directives support formatting `String` scalars\n\n#### @abbreviate\n\nAbbreviates a string using ellipses for a given width\n\n- SDL: `directive @abbreviate(width: Int!) on FIELD_DEFINITION`\n\n#### @camelcase\n\nConverts the String into camelCase\n\n- SDL: `directive @camelcase on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @capitalize\n\nCapitalize the starting letter for each word in a String\n\n- SDL: `directive @capitalize on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @lowercase\n\nLowercase all characters in a String\n\n- SDL: `directive @lowercase on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @prefix\n\nPrepends a prefix to a String\n\n- SDL: `directive @prefix(with: String!) on FIELD_DEFINITION`\n\n#### @resourceId\n\nTransforms a string into a base64 protobuf opaque ID. This takes in domain, subdomain, and systemName arguments\nwhich will be encoded into the ID.\n\n- SDL: `directive @resourceId(domain: String!, subdomain: String!, systemName: String!) on FIELD_DEFINITION`\n\n#### @reverse\n\nReverse the characters in a String\n\n- SDL: `directive @reverse on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @suffix\n\nAppends a suffix to a String\n\n- SDL: `directive @suffix(with: String!) on FIELD_DEFINITION`\n\n### @swapcase\n\nInvert the case of each character in a String\n\n- SDL: `directive @swapcase on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @trim\n\nRemove any leading or trailing whitespace\n\n- SDL: `directive @trim on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @uppercase\n\nUppercase each character in a String\n\n- SDL: `directive @uppercase on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n### Numeric Formatters\n\nThe following schema directives support formatting `Int` or `Float` scalars\n\n#### @absolute\n\nReturns the absolute value\n\n- SDL: `directive @absolute on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @ceiling\n\nReturns the ceiling value\n\n- SDL: `directive @ceiling on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n#### @floor\n\nReturns the floor value\n\n- SDL: `directive @floor on FIELD_DEFINITION | ARGUMENT_DEFINITION`\n\n## Release Process\n\nOur release process involves\n\n1. Run the [release workflow][release-workflow]\n2. Enter the new version number to release\n3. Draft a [new release][new-release], create or select the tag which matches the release version used in step 2\n4. Publish the release notes\n\n\u003c!-- LINK LABELS --\u003e\n[dgs-framework]: https://github.com/Netflix/dgs-framework\n\n[release-workflow]: https://github.com/setchy/dgs-extended-formatters/actions/workflows/release.yml\n[new-release]: https://github.com/setchy/dgs-extended-formatters/releases/new\n\n[renovate]: https://renovatebot.com/\n[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=renovate\n\n[license]: LICENSE\n[license-badge]: https://img.shields.io/github/license/setchy/dgs-extended-formatters?logo=github\n\n[build-badge]: https://img.shields.io/github/actions/workflow/status/setchy/dgs-extended-formatters/build.yml?logo=github\n[build-workflow]: https://github.com/setchy/dgs-extended-formatters/actions/workflows/build.yml\n\n[latest-release-badge]: https://img.shields.io/maven-central/v/io.github.setchy/dgs-extended-formatters?logo=sonatype\n[latest-release]: https://central.sonatype.com/artifact/io.github.setchy/dgs-extended-formatters\n\n[coverage-badge]: https://img.shields.io/sonar/coverage/setchy_dgs-extended-formatters?server=https%3A%2F%2Fsonarcloud.io\u0026logo=sonarcloud\n[coverage]: https://sonarcloud.io/summary/new_code?id=setchy_dgs-extended-formatters\n\n[quality-badge]: https://img.shields.io/sonar/quality_gate/setchy_dgs-extended-formatters?server=https%3A%2F%2Fsonarcloud.io\u0026logo=sonarcloud\n[quality]: https://sonarcloud.io/summary/new_code?id=setchy_dgs-extended-formatters\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetchy%2Fdgs-extended-formatters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetchy%2Fdgs-extended-formatters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetchy%2Fdgs-extended-formatters/lists"}