@polygonlabs/example-schemas 1.2.4 → 1.2.6
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/CHANGELOG.md +12 -0
- package/README.md +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @polygonlabs/example-schemas
|
|
2
2
|
|
|
3
|
+
## 1.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#102](https://github.com/0xPolygon/apps-team-ts-template/pull/102) [`8ce9c0d`](https://github.com/0xPolygon/apps-team-ts-template/commit/8ce9c0df861975bbf0e6a341b2d49de58d3845ac) Thanks [@MaximusHaximus](https://github.com/MaximusHaximus)! - Exercise a release of a public package after moving to the newer changesets CLI.
|
|
8
|
+
|
|
9
|
+
## 1.2.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#84](https://github.com/0xPolygon/apps-team-ts-template/pull/84) [`ade0879`](https://github.com/0xPolygon/apps-team-ts-template/commit/ade0879b1b99471d2531257f31b3095befa8d107) Thanks [@MaximusHaximus](https://github.com/MaximusHaximus)! - Adds a README that explains what the package contains and how to import its schemas, registry and OpenAPI spec.
|
|
14
|
+
|
|
3
15
|
## 1.2.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @polygonlabs/example-schemas
|
|
2
|
+
|
|
3
|
+
Zod response schemas, the OpenAPI registry, and the committed OpenAPI spec for the template's example REST
|
|
4
|
+
API. It is the template's example of a published library: the REST API validates its responses against these
|
|
5
|
+
schemas, and the generated client imports the same Zod values, so client and server agree on every shape.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { BlockNumberResponse } from '@polygonlabs/example-schemas';
|
|
9
|
+
import { buildRegistry } from '@polygonlabs/example-schemas/registry';
|
|
10
|
+
import spec from '@polygonlabs/example-schemas/openapi.json' with { type: 'json' };
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This package exists to demonstrate the pattern. Copies of the template rename it to `<service>-schemas`.
|