feat: add UCP JavaScript SDK#39
Open
artemii-karkusha wants to merge 1 commit intosourcemeta:masterfrom
Open
Conversation
Member
|
Hey @artemii-karkusha , I'm a bit confused about this one. The tagline of the repo says "Runtime-validated Zod schemas and TypeScript types for the Universal Commerce Protocol (UCP)", so not JSON Schema? Even though then it says "100 schemas including checkout, orders, payments, fulfillment, discovery profiles, and all inline enums"? Is there a way you can keep the JSON Schemas you generate in git? Asking because I wonder if it makes more sense to be showcased as a JSON Schema collection in https://schemas.sourcemeta.com. Or if it is mostly a library, might be worth submitting it to https://json-schema.org/tools. That page is a more comprehensive tooling page and we try to not compete with it by not listing tooling in this repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the UCP JavaScript SDK as a tool entry in
data.yaml.What it is
The official JavaScript/TypeScript SDK for the Universal Commerce Protocol — runtime-validated Zod schemas auto-generated from the UCP JSON Schema spec (Draft 2020-12).
Coverage:
Features:
.parse()and.safeParse()$RefParserto fully dereference and bundle JSON Schema$refs@omnixhq/ucp-js-sdkWhy it belongs here
A real-world production example of tooling built on JSON Schema Draft 2020-12 — the full UCP spec is defined in JSON Schema and this SDK auto-generates TypeScript validators from it.