{"id":20345439,"url":"https://github.com/flippercloud/expressions","last_synced_at":"2025-03-04T15:43:00.003Z","repository":{"id":188655530,"uuid":"620441641","full_name":"flippercloud/expressions","owner":"flippercloud","description":"A schema for Flipper Expressions","archived":false,"fork":false,"pushed_at":"2024-04-03T18:30:52.000Z","size":260,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-14T20:59:39.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flippercloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-28T17:30:06.000Z","updated_at":"2023-10-13T18:05:23.000Z","dependencies_parsed_at":"2025-01-14T20:51:18.230Z","dependency_job_id":"82f4c04c-2d2f-4d5f-ab8c-eac0b1393f26","html_url":"https://github.com/flippercloud/expressions","commit_stats":null,"previous_names":["fewerandfaster/expressions.js","flippercloud/expressions.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flippercloud%2Fexpressions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flippercloud%2Fexpressions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flippercloud%2Fexpressions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flippercloud%2Fexpressions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flippercloud","download_url":"https://codeload.github.com/flippercloud/expressions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241876508,"owners_count":20035396,"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":[],"created_at":"2024-11-14T22:08:32.049Z","updated_at":"2025-03-04T15:42:59.983Z","avatar_url":"https://github.com/flippercloud.png","language":"JavaScript","readme":"# Flipper Expressions\n\n\u003e A schema for Flipper Expressions\n\nThe structure for flipper Expressions is defined in [`schemas/schema.json`](./schemas/schema.json) using [JSON Schema](https://json-schema.org) ([draft-07](https://json-schema.org/specification-links.html#draft-7)).\n\nTo learn more about JSON Schema, read [Understanding JSON Schema](https://json-schema.org/understanding-json-schema/) or the [Ajv JSON schema validator docs](https://ajv.js.org/json-schema.html).\n\n## Adding a new expression\n\n1. Describe arguments by creating a new file in [`schemas/`](schemas/) named `NewName.schema.json`. You can copy an existing function that has similar semantics to get started.\n2. Add the new function in [`schemas/schema.json`](schemas/schema.json) to `definitions/function`.\n3. Create a new file in [`examples/`](./examples) named `NewName.json` with valid and invalid examples for the new function. See other examples for inspiration.\n4. Run `yarn test` and ensure tests pass.\n\nImplement the expression in [@flippercloud/flipper](https://github.com/flippercloud/flipper):\n\n1. Add `lib/flipper/expressions/new_name.rb` to [@flippercloud/flipper](https://github.com/flippercloud/flipper/tree/main/lib/flipper/expressions).\n2. Run `rspec` to ensure tests pass.\n\nSee [this commit that adds Min/Max functions](https://github.com/jnunemaker/flipper/commit/ee46fab0cda21a32c3a921a8ed1fb94b0842b6b4) for a concrete example.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflippercloud%2Fexpressions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflippercloud%2Fexpressions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflippercloud%2Fexpressions/lists"}