{"id":17964811,"url":"https://github.com/seniverse/fieldmask","last_synced_at":"2025-04-03T19:30:30.024Z","repository":{"id":62429574,"uuid":"188979750","full_name":"seniverse/fieldmask","owner":"seniverse","description":"fieldmask implements Partial Responses protocol of Google+ API in Erlang.","archived":false,"fork":false,"pushed_at":"2019-05-29T10:31:47.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T22:29:47.030Z","etag":null,"topics":["erlang","google-api","graphql","partial-responses"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seniverse.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}},"created_at":"2019-05-28T07:44:52.000Z","updated_at":"2025-01-28T09:13:53.000Z","dependencies_parsed_at":"2022-11-01T19:47:05.626Z","dependency_job_id":null,"html_url":"https://github.com/seniverse/fieldmask","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Ffieldmask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Ffieldmask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Ffieldmask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Ffieldmask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seniverse","download_url":"https://codeload.github.com/seniverse/fieldmask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247065051,"owners_count":20877693,"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":["erlang","google-api","graphql","partial-responses"],"created_at":"2024-10-29T12:08:50.299Z","updated_at":"2025-04-03T19:30:29.970Z","avatar_url":"https://github.com/seniverse.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"## fieldmask\n\n[![Build Status](https://travis-ci.org/seniverse/fieldmask.svg?branch=master)](https://travis-ci.org/seniverse/fieldmask)\n[![Coverage Status](https://coveralls.io/repos/github/seniverse/fieldmask/badge.svg?branch=master)](https://coveralls.io/github/seniverse/fieldmask?branch=master)\n[![hex.pm version](https://img.shields.io/hexpm/v/fieldmask.svg)](https://hex.pm/packages/fieldmask)\n[![hex.pm downloads](https://img.shields.io/hexpm/dt/fieldmask.svg)](https://hex.pm/packages/fieldmask)\n![hex.pm license](https://img.shields.io/hexpm/l/fieldmask.svg)\n![GitHub top language](https://img.shields.io/github/languages/top/seniverse/fieldmask.svg)\n\nfieldmask implements [Partial Responses](https://developers.google.com/+/web/api/rest/#partial-response) protocol of Google+ API in Erlang, like [json-mask](https://www.npmjs.com/package/json-mask) in JavaScript and [jsonmask](https://pypi.org/project/jsonmask/) in Python.\n\nMask of fieldmask is the same as `fields` parameter of Google+ API, for example, `\u003c\u003c\"a,b\"\u003e\u003e` means the fields you want to keep is `\"a\"` and `\"b\"`.\n\n```\n1\u003e Mask = \u003c\u003c\"a,b\"\u003e\u003e.\n\u003c\u003c\"a,b\"\u003e\u003e\n```\n\nAnd fieldmask use map object format of [jsone](https://github.com/sile/jsone) to represent a JSON value.\n\n```\n2\u003e Value = jsone:decode(\u003c\u003c\"{\\\"a\\\":1, \\\"b\\\": 2, \\\"c\\\": 3}\"\u003e\u003e).\n#{\u003c\u003c\"a\"\u003e\u003e =\u003e 1,\u003c\u003c\"b\"\u003e\u003e =\u003e 2,\u003c\u003c\"c\"\u003e\u003e =\u003e 3}.\n```\n\nCall `fieldmask:mask/2` to get the specific parts of a value you've selected.\n\n```\n3\u003e fieldmask:mask(Mask, Value).\n#{\u003c\u003c\"a\"\u003e\u003e =\u003e 1,\u003c\u003c\"b\"\u003e\u003e =\u003e 2}\n```\n\n\n### Installation\n\nadd `fieldmask` dependency to your project's `rebar.config`\n\n```\n{deps, [fieldmask]}.\n```\n\n\n### License\n\nfieldmask is released under Apache 2 License. Check [LICENSE](./LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseniverse%2Ffieldmask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseniverse%2Ffieldmask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseniverse%2Ffieldmask/lists"}