perseid 0.12.1 → 0.13.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 CHANGED
@@ -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. |
@@ -144,6 +144,7 @@ See [repository layouts](docs/ci.md#repository-layouts).
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
146
  | `inspect` | Print the model the templates receive, as JSON. |
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). |
147
148
  | `eject <lang>` | Copy the built-in templates and runtime of a language to `.perseid/` to edit them. |
148
149
  | `tools list`, `tools install` | List or download the pinned formatters and oasdiff. |
149
150
 
@@ -159,11 +160,13 @@ signs in with `GH_TOKEN`, `GITHUB_TOKEN`, the token `gh` stores, or a browser lo
159
160
  - [Auth, pagination, streaming, raw responses and encoding](docs/features.md)
160
161
  - [Customizing](docs/customizing.md): handwritten code, middleware, snippets, templates, webhooks
161
162
  - [Testing](docs/testing.md): how perseid itself is tested, for contributors
163
+ - [Migrating from Stainless](docs/migrating-from-stainless.md): `perseid init --from stainless.yml`, and what changes for your users
164
+ - [Comparison](docs/comparison.md): perseid next to Stainless, Fern, Speakeasy, Scalar, openapi-generator and Kiota
162
165
 
163
166
  ## Status
164
167
 
165
- perseid reads OpenAPI 3.0, 3.1 and 3.2, in JSON or YAML. Convert Swagger 2.0 first, for example with
166
- `npx swagger2openapi`.
168
+ perseid reads Swagger 2.0 and OpenAPI 3.0, 3.1 and 3.2, in JSON or YAML. Swagger 2.0 is converted
169
+ to OpenAPI 3 in memory, with no conversion step of your own.
167
170
 
168
171
  It generates the [Meteroid SDKs](https://github.com/search?q=org%3Ameteroid-oss+sdk&type=repositories). SDKs from the
169
172
  Stripe, GitHub, OpenAI, Twilio, DigitalOcean and Linode specs compile in every language, with one
@@ -175,6 +178,12 @@ with `exclude = ["<operation id>"]`, and open an issue with the spec attached.
175
178
 
176
179
  perseid started as a fork of [Svix's openapi-codegen](https://github.com/svix/openapi-codegen).
177
180
 
181
+ ## Contributing
182
+
183
+ Bug reports with a spec attached, fixes and features are welcome. See
184
+ [CONTRIBUTING.md](CONTRIBUTING.md) for the setup, the tests, and how a change reaches all six
185
+ languages.
186
+
178
187
  ## License
179
188
 
180
189
  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": "31122e276e3fa85fb1d969d79e51cf337431ec3eb6ed3b09cd19bea4933a0571",
3
- "perseid-aarch64-unknown-linux-musl.tar.gz": "e672b515b53a289d7f2ddc0c717fa8005200d5aed74ee14ed12e3e63783e3104",
4
- "perseid-x86_64-apple-darwin.tar.gz": "723dce8813f980d514b93f74ebcce4885c2a994e70b90a8c832ddb05f77a3314",
5
- "perseid-x86_64-unknown-linux-musl.tar.gz": "3fa5788c9f7d231727a6b7a564c407c969837ce988935256bbdf44c0d2da49de"
2
+ "perseid-aarch64-apple-darwin.tar.gz": "99ad7b8a29aa713b707e7f75697edfa7d13a132a3d74eec799f12c131ed685c8",
3
+ "perseid-aarch64-unknown-linux-musl.tar.gz": "c7842cda7b4a8167fd3c87296ddae3d47db420acd09e75a7359eeab3c36a690f",
4
+ "perseid-x86_64-apple-darwin.tar.gz": "c0c414b5512fcfc6116bc080e9ee0054277cb509cb0443ef570730161829ae3e",
5
+ "perseid-x86_64-unknown-linux-musl.tar.gz": "e97edbd644ebfccda15f188da7a53b4232f98aa64e8092d8b83b6f19d95a9440"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perseid",
3
- "version": "0.12.1",
3
+ "version": "0.13.0",
4
4
  "description": "OpenAPI in, idiomatic SDKs out: Rust, TypeScript, Python, Go, Java and C# from one static binary",
5
5
  "keywords": [
6
6
  "openapi",