@meshery/schemas 1.3.121 → 1.3.122
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 +6 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -151,6 +151,11 @@ schemas/
|
|
|
151
151
|
<construct>/ # Generated client per pilot construct
|
|
152
152
|
tests/ # Hand-maintained pytest suites
|
|
153
153
|
|
|
154
|
+
rust/ # meshery-schemas crate (commit regenerated output when a bundled pilot spec changes)
|
|
155
|
+
Cargo.toml, Cargo.lock # Hand-maintained scaffold (crate identity, dependencies, features)
|
|
156
|
+
src/lib.rs # Hand-maintained scaffold (declares the construct modules)
|
|
157
|
+
src/<construct>/ # Generated models (types/) and async client (mod.rs) per pilot construct
|
|
158
|
+
tests/ # Hand-maintained cargo integration tests
|
|
154
159
|
dist/ # Built distribution (do NOT commit)
|
|
155
160
|
index.js, index.d.ts
|
|
156
161
|
cloudApi.js, mesheryApi.js
|
|
@@ -498,6 +503,7 @@ Meshery supports **automated code generation** from schemas for:
|
|
|
498
503
|
* **TypeScript Schemas**: OpenAPI schemas as const JS objects → `typescript/generated/<version>/<package>/<Package>Schema.ts`
|
|
499
504
|
* **RTK Query**: Clients generated from OpenAPI for use with Redux → `typescript/rtk/`
|
|
500
505
|
* **Python**: Typed clients generated from OpenAPI (pilot: key construct) → `python/generated/` (`meshery-schemas` distribution)
|
|
506
|
+
* **Rust**: Models and a typed async client generated from OpenAPI with progenitor (pilot: key construct) → `rust/` (`meshery-schemas` crate)
|
|
501
507
|
* **JSON/YAML**: Templates with defaults and resolved references.
|
|
502
508
|
|
|
503
509
|
### TypeScript Schema Exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshery/schemas",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.122",
|
|
4
4
|
"description": "<p style=\"text-align:center;\" align=\"center\"><a href=\"https://meshery.io\"><picture> <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-light-text-side.svg\"> <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-dark-text-side.svg\"> <img src=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-dark-text-side.svg\" alt=\"Meshery Logo\" width=\"70%\" /></picture></a><br /><br /></p> <p align=\"center\"> <a href=\"https://hub.docker.com/r/meshery/meshery\" alt=\"Docker pulls\"> <img src=\"https://img.shields.io/docker/pulls/meshery/meshery.svg\" /></a> <a href=\"https://github.com/issues?q=is%3Aopen+is%3Aissue+archived%3Afalse+org%meshery+org%3Ameshery+org%3Aservice-mesh-performance+org%3Aservice-mesh-patterns+org%3A+label%3A%22help+wanted%22+\" alt=\"GitHub issues by-label\"> <img src=\"https://img.shields.io/github/issues/meshery/meshery/help%20wanted.svg?color=informational\" /></a> <a href=\"https://github.com/meshery/meshery/blob/master/LICENSE\" alt=\"LICENSE\"> <img src=\"https://img.shields.io/github/license/meshery/meshery?color=brightgreen\" /></a> <a href=\"https://artifacthub.io/packages/helm/meshery/meshery\" alt=\"Artifact Hub Meshery\"> <img src=\"https://img.shields.io/endpoint?color=brightgreen&label=Helm%20Chart&style=plastic&url=https%3A%2F%2Fartifacthub.io%2Fbadge%2Frepository%2Fartifact-hub\" /></a> <a href=\"https://goreportcard.com/report/github.com/meshery/meshery\" alt=\"Go Report Card\"> <img src=\"https://goreportcard.com/badge/github.com/meshery/meshery\" /></a> <a href=\"https://github.com/meshery/meshery/actions\" alt=\"Build Status\"> <img src=\"https://img.shields.io/github/actions/workflow/status/meshery/meshery/release-drafter.yml\" /></a> <a href=\"https://bestpractices.coreinfrastructure.org/projects/3564\" alt=\"CLI Best Practices\"> <img src=\"https://bestpractices.coreinfrastructure.org/projects/3564/badge\" /></a> <a href=\"http://discuss.meshery.io\" alt=\"Discuss Users\"> <img src=\"https://img.shields.io/discourse/users?label=discuss&logo=discourse&server=https%3A%2F%2Fdiscuss.meshery.io\" /></a> <a href=\"https://slack.meshery.io\" alt=\"Join Slack\"> <img src=\"https://img.shields.io/badge/Slack-@meshery.svg?logo=slack\" /></a> <a href=\"https://twitter.com/intent/follow?screen_name=mesheryio\" alt=\"Twitter Follow\"> <img src=\"https://img.shields.io/twitter/follow/mesheryio.svg?label=Follow+Meshery&style=social\" /></a> <a href=\"https://github.com/meshery/meshery/releases\" alt=\"Meshery Downloads\"> <img src=\"https://img.shields.io/github/downloads/meshery/meshery/total\" /></a> <!-- <a href=\"https://app.fossa.com/projects/git%2Bgithub.com%2Fmeshery%2Fmeshery?ref=badge_shield\" alt=\"License Scan Report\"> <img src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmeshery%2Fmeshery.svg?type=shield\"/></a> --> </p>",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"build:rtk": "node ./build/generate-rtk.js",
|
|
56
56
|
"build:all": "node ./build/index.js all",
|
|
57
57
|
"generate:python": "node ./build/generate-python.js",
|
|
58
|
+
"generate:rust": "node ./build/generate-rust.js",
|
|
58
59
|
"test": "node --test \"typescript/**/*.test.ts\"",
|
|
59
60
|
"test:validate-schemas": "go test ./validation/...",
|
|
60
61
|
"generate:types": "node ./build/generate-typescript.js",
|