An open API service indexing awesome lists of open source software.

https://github.com/tomeraberbach/typespec-fast-check

🐒 A TypeSpec emitter for fast-check arbitraries.
https://github.com/tomeraberbach/typespec-fast-check

codegen fast-check property-based-testing typespec

Last synced: 4 months ago
JSON representation

🐒 A TypeSpec emitter for fast-check arbitraries.

Awesome Lists containing this project

README

          


typespec-fast-check



version


CI


Sponsor


A TypeSpec emitter for
fast-check
arbitraries.

## Install

```sh
$ npm i typespec-fast-check
```

## Usage

Via the command line:

```sh
tsp compile . --emit=typespec-fast-check
```

Via the config:

```yaml
emit:
- 'typespec-fast-check'
```

See the
[TypeSpec documentation](https://typespec.io/docs/emitters/protobuf/reference/emitter)
for more information.

> [!NOTE]
>
> This package doesn't support all TypeSpec features yet. See the
> [open issues](https://github.com/TomerAberbach/typespec-fast-check/issues) for
> what's planned.

## Examples

See [`openai/arbitraries.js`](./test/snapshots/openai/arbitraries.js), which was
generated from the TypeSpec files in Brian Terlson's
[`openai-in-typespec`](https://github.com/bterlson/openai-in-typespec)
repository.

## Contributing

Stars are always welcome!

For bugs and feature requests,
[please create an issue](https://github.com/TomerAberbach/typespec-fast-check/issues/new).

## License

[MIT](https://github.com/TomerAberbach/typespec-fast-check/blob/main/license) ©
[Stainless Software, Inc.](https://www.stainlessapi.com)