{"id":21816988,"url":"https://github.com/maartenvanvliet/absinthe_streamdata","last_synced_at":"2026-06-29T15:31:09.122Z","repository":{"id":41722895,"uuid":"417927570","full_name":"maartenvanvliet/absinthe_streamdata","owner":"maartenvanvliet","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-22T00:58:30.000Z","size":58,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-15T12:08:37.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/maartenvanvliet.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":"2021-10-16T19:30:56.000Z","updated_at":"2021-11-18T06:06:16.000Z","dependencies_parsed_at":"2024-11-27T15:49:47.027Z","dependency_job_id":null,"html_url":"https://github.com/maartenvanvliet/absinthe_streamdata","commit_stats":{"total_commits":30,"total_committers":3,"mean_commits":10.0,"dds":0.5,"last_synced_commit":"1f12cbd95ed68e1d40562c95d0df83b1fbd7e871"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maartenvanvliet/absinthe_streamdata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fabsinthe_streamdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fabsinthe_streamdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fabsinthe_streamdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fabsinthe_streamdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maartenvanvliet","download_url":"https://codeload.github.com/maartenvanvliet/absinthe_streamdata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fabsinthe_streamdata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34933498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-27T15:38:35.672Z","updated_at":"2026-06-29T15:31:09.102Z","avatar_url":"https://github.com/maartenvanvliet.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Absinthe StreamData\n\n## [![Hex pm](http://img.shields.io/hexpm/v/absinthe_streamdata.svg?style=flat)](https://hex.pm/packages/absinthe_streamdata) [![Hex Docs](https://img.shields.io/badge/hex-docs-9768d1.svg)](https://hexdocs.pm/absinthe_streamdata) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)![.github/workflows/elixir.yml](https://github.com/maartenvanvliet/subscriptions-transport-ws/workflows/.github/workflows/elixir.yml/badge.svg)\n\n\u003c!-- MDOC !--\u003e\n\nBuild StreamData generator for valid Absinthe documents from an Absinthe schema.\n\nIt can take an entire schema, or single root queries/mutations and generate valid\ndocuments from them. Supports variables and arguments.\n\nBy default supports all graphql scalar types but can be extended with\ncustom typemappers.\n\nThis gives you the chance to run random GraphQL documents against your schema and see whether\nany of them returns errors you don't expect.\n\n## Installation\n\nThe package can be installed by adding `absinthe_streamdata` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:absinthe_streamdata, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Example\n\n```elixir\ndefmodule Absinthe.StreamDataTest do\n  use MyApp.DataCase, async: false\n  use ExUnitProperties\n\n  defmodule TypeMapper do\n    use Absinthe.StreamData.TypeMapper\n\n    def from_type(%{name: \"CustomScalar\"}, schema, name, type_mapper) do\n      StreamData.constant(\"bogus\")\n    end\n\n    def from_type(type, schema, name, type_mapper) do\n      Absinthe.StreamData.DefaultTypeMapper.from_type(type, schema, name, type_mapper)\n    end\n  end\n\n  property \"runs all docs\" do\n    schema = Your.Schema\n\n    check all operation \u003c- Absinthe.StreamData.operation_of(schema),\n              field \u003c- Absinthe.StreamData.field_of(schema, operation),\n              doc \u003c-\n                Absinthe.StreamData.document_of(schema, operation, field),\n              vars \u003c- Absinthe.StreamData.variables_of(schema, doc, {TypeMapper, []}),\n              runs \u003c- Absinthe.StreamData.execution_of(schema, doc, variables: vars) do\n      {:ok, blueprint} = runs\n\n      assert blueprint.errors == []\n    end\n  end\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/absinthe_streamdata](https://hexdocs.pm/absinthe_streamdata).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Fabsinthe_streamdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaartenvanvliet%2Fabsinthe_streamdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Fabsinthe_streamdata/lists"}