perseid 0.12.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- package/checksums.json +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ const pets = await petstore.pets.list({ limit: 10, status: "available" });
|
|
|
59
59
|
|
|
60
60
|
```python
|
|
61
61
|
petstore = Petstore(api_key="sk_live_...")
|
|
62
|
-
pets = petstore.pets.list(limit=10, status=
|
|
62
|
+
pets = petstore.pets.list(limit=10, status="available")
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
```csharp
|
|
@@ -69,7 +69,7 @@ var pets = await petstore.Pets.ListAsync(new() { Limit = 10, Status = PetStatus.
|
|
|
69
69
|
|
|
70
70
|
## Features
|
|
71
71
|
|
|
72
|
-
| | |
|
|
72
|
+
| Area | Support |
|
|
73
73
|
|---|---|
|
|
74
74
|
| Languages | Rust, TypeScript, Python (sync and async), Go, Java, C# |
|
|
75
75
|
| Requests | Typed errors by status, retries with backoff and `Retry-After`, idempotency keys, per-call timeouts and headers |
|
|
@@ -79,7 +79,7 @@ var pets = await petstore.Pets.ListAsync(new() { Limit = 10, Status = PetStatus.
|
|
|
79
79
|
| Webhooks | An opt-in [Standard Webhooks](https://www.standardwebhooks.com) verifier in every language |
|
|
80
80
|
| Tests | A test per operation in every SDK, run in process against the response the spec declares |
|
|
81
81
|
| Docs | An `api.md` per SDK, regenerated with the code, and a README calling your API's own operations |
|
|
82
|
-
| Specs | OpenAPI 3.0, 3.1 and 3.2, external `$ref`s, parameter styles, nullable and recursive schemas, webhook-only specs |
|
|
82
|
+
| Specs | Swagger 2.0, OpenAPI 3.0, 3.1 and 3.2, external `$ref`s, parameter styles, nullable and recursive schemas, webhook-only specs |
|
|
83
83
|
| Customizing | Middleware, resource snippets, ejectable templates |
|
|
84
84
|
| CI | `perseid generate --check` fails when the SDKs drift from the spec |
|
|
85
85
|
|
|
@@ -135,7 +135,7 @@ See [repository layouts](docs/ci.md#repository-layouts).
|
|
|
135
135
|
|
|
136
136
|
## Commands
|
|
137
137
|
|
|
138
|
-
| Command | |
|
|
138
|
+
| Command | Description |
|
|
139
139
|
|---|---|
|
|
140
140
|
| `init` | Write `perseid.toml` and the workflows. Local only: nothing is sent to GitHub. |
|
|
141
141
|
| `generate` | Write the SDKs. `--out <dir>` previews, `--check` fails on drift, `--pr` opens pull requests. |
|
|
@@ -143,7 +143,9 @@ See [repository layouts](docs/ci.md#repository-layouts).
|
|
|
143
143
|
| `connect <owner/repo>` | In the API repository: push the spec to the SDKs repository. |
|
|
144
144
|
| `app` | Set up a GitHub App of your own instead of the perseid App. |
|
|
145
145
|
| `status` | Check the setup: secrets, workflows, last spec pushed, open pull requests, last runs. |
|
|
146
|
-
| `inspect` | Print the model the templates receive, as JSON
|
|
146
|
+
| `inspect` | Print the model the templates receive, as JSON, with its `model_version`. |
|
|
147
|
+
| `docs-data` | Print how each SDK names and calls every operation, as JSON for a docs site. See [docs data](docs/customizing.md#docs-data). |
|
|
148
|
+
| `targets` | Write the [targets](docs/ci.md#targets) of `perseid.toml`, such as the spec and docs data of a docs repository, or a [pack](docs/customizing.md#packs) wrapping an SDK, such as a CLI. `--out <dir>` previews, `--pr` opens pull requests. |
|
|
147
149
|
| `eject <lang>` | Copy the built-in templates and runtime of a language to `.perseid/` to edit them. |
|
|
148
150
|
| `tools list`, `tools install` | List or download the pinned formatters and oasdiff. |
|
|
149
151
|
|
|
@@ -159,11 +161,13 @@ signs in with `GH_TOKEN`, `GITHUB_TOKEN`, the token `gh` stores, or a browser lo
|
|
|
159
161
|
- [Auth, pagination, streaming, raw responses and encoding](docs/features.md)
|
|
160
162
|
- [Customizing](docs/customizing.md): handwritten code, middleware, snippets, templates, webhooks
|
|
161
163
|
- [Testing](docs/testing.md): how perseid itself is tested, for contributors
|
|
164
|
+
- [Migrating from Stainless](docs/migrating-from-stainless.md): `perseid init --from stainless.yml`, and what changes for your users
|
|
165
|
+
- [Comparison](docs/comparison.md): perseid next to Stainless, Fern, Speakeasy, Scalar, openapi-generator and Kiota
|
|
162
166
|
|
|
163
167
|
## Status
|
|
164
168
|
|
|
165
|
-
perseid reads OpenAPI 3.0, 3.1 and 3.2, in JSON or YAML.
|
|
166
|
-
|
|
169
|
+
perseid reads Swagger 2.0 and OpenAPI 3.0, 3.1 and 3.2, in JSON or YAML. Swagger 2.0 is converted
|
|
170
|
+
to OpenAPI 3 in memory, with no conversion step of your own.
|
|
167
171
|
|
|
168
172
|
It generates the [Meteroid SDKs](https://github.com/search?q=org%3Ameteroid-oss+sdk&type=repositories). SDKs from the
|
|
169
173
|
Stripe, GitHub, OpenAI, Twilio, DigitalOcean and Linode specs compile in every language, with one
|
|
@@ -175,6 +179,12 @@ with `exclude = ["<operation id>"]`, and open an issue with the spec attached.
|
|
|
175
179
|
|
|
176
180
|
perseid started as a fork of [Svix's openapi-codegen](https://github.com/svix/openapi-codegen).
|
|
177
181
|
|
|
182
|
+
## Contributing
|
|
183
|
+
|
|
184
|
+
Bug reports with a spec attached, fixes and features are welcome. See
|
|
185
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) for the setup, the tests, and how a change reaches all six
|
|
186
|
+
languages.
|
|
187
|
+
|
|
178
188
|
## License
|
|
179
189
|
|
|
180
190
|
Apache-2.0, see [LICENSE](LICENSE). Third-party attributions are in [NOTICE](NOTICE).
|
package/checksums.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"perseid-aarch64-apple-darwin.tar.gz": "
|
|
3
|
-
"perseid-aarch64-unknown-linux-musl.tar.gz": "
|
|
4
|
-
"perseid-x86_64-apple-darwin.tar.gz": "
|
|
5
|
-
"perseid-x86_64-unknown-linux-musl.tar.gz": "
|
|
2
|
+
"perseid-aarch64-apple-darwin.tar.gz": "bfa5d9257d07bc6462eb493719a0f930cf12e57110f22c5f9d0f9ff837c01371",
|
|
3
|
+
"perseid-aarch64-unknown-linux-musl.tar.gz": "d70f2a4b25bf58049198389ac94dcdb36eda4e09d7f9f2bebe8957c0be460248",
|
|
4
|
+
"perseid-x86_64-apple-darwin.tar.gz": "de0cb9de2029ffa4d38227c056ade4c5df6835f26d593cfd091dda6ba74926a3",
|
|
5
|
+
"perseid-x86_64-unknown-linux-musl.tar.gz": "2325bfab941d319f12e108360b02f5bf694418d2d59c4512cec640c0195e3501"
|
|
6
6
|
}
|