@webpieces/openapi-generator 0.4.810 → 0.4.811
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 +10 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Render a webpieces API contract to **OpenAPI 3.1.0**.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
wp-openapi --manifest path/to/openapi.manifest.json --out path/to/
|
|
6
|
+
wp-openapi --manifest path/to/openapi.manifest.json --out path/to/dist [--format json|yaml|both]
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
## Which documents you get is a property of your CONTRACTS
|
|
@@ -114,8 +114,15 @@ is no flag to switch that off — the cure is at the contract, by naming the typ
|
|
|
114
114
|
|
|
115
115
|
## Worked example
|
|
116
116
|
|
|
117
|
-
`apps/app-example/partner-api` in this repo: a real contract, its manifest,
|
|
118
|
-
and a spec that regenerates and diffs them.
|
|
117
|
+
`apps/app-example/partner-api` in this repo: a real contract, its manifest, golden documents under
|
|
118
|
+
`src/__tests__/goldens/`, and a spec that regenerates and diffs them.
|
|
119
|
+
|
|
120
|
+
## In an nx workspace
|
|
121
|
+
|
|
122
|
+
Inside nx, nobody chooses `--out`: the `@webpieces/nx-webpieces-rules:openapi-generate` executor writes
|
|
123
|
+
into the project's own build `outputPath`, so the documents are packed and published inside the api
|
|
124
|
+
library's package, and are never committed. It runs THIS package from the consumer's `node_modules`
|
|
125
|
+
and refuses one older than it needs. See `.claude/rules/api-docs.md` in webpieces-ts.
|
|
119
126
|
|
|
120
127
|
## Dependencies
|
|
121
128
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webpieces/openapi-generator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.811",
|
|
4
4
|
"description": "Render an ApiDocModel to OpenAPI 3.1.0 — the canonical internal document and the customer-published one, JSON and YAML, from one generation pass. Ships the wp-openapi bin.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@webpieces/api-doc-model": "0.4.
|
|
27
|
-
"@webpieces/core-util": "0.4.
|
|
26
|
+
"@webpieces/api-doc-model": "0.4.811",
|
|
27
|
+
"@webpieces/core-util": "0.4.811",
|
|
28
28
|
"typescript": "5.9.3"
|
|
29
29
|
},
|
|
30
30
|
"bin": {
|