Repository navigation
Conversation
No app names in Rust: schema comes from GET /v1/apps/<app>/schema, validated locally, posted with a stable Idempotency-Key. Also fixes --data and --method not taking values in the flag parser. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Duyet Le <me@duyet.net> Co-authored-by: duyetbot <bot@duyet.net>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Duyet Le <me@duyet.net> Co-authored-by: duyetbot <bot@duyet.net>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Duyet Le <me@duyet.net> Co-authored-by: duyetbot <bot@duyet.net>
duyetbot
approved these changes
Oct 21, 2026
duyetbot
left a comment
Member
There was a problem hiding this comment.
Reviewed: validator, auth origin, path encoding, input cap (fixed in this branch), release binary 3.30 MiB (<4 MiB), tests pass.
This branch has not been deployed
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.
What
Generic, app-agnostic publishing, like
anyr api. No app names in Rust.anyr api:--data @file,--data -(stdin),-H key:value(repeatable),--idempotency-key.anyr publish <app> [file|-] [--visibility unlisted|private|public] [--yes] [--dry-run] [--json]: GET/v1/apps/<app>/schema, validate locally, exit 2 with field errors, POST/v1/apps/<app>/submissionswithIdempotency-Key= hash of app + canonical payload, print the URL.anyr apps schema|ls|rm|visibility: thin wrappers over the same client.--dataand--methodwere not value flags in the parser, soanyr api ... --data '{...}'never worked. They are now.Notes
src/schema.rs, ~200 lines), not thejsonschemacrate: that crate pulls regex and more, which risks the 4 MiB binary cap and the wasm build. Covers type, enum, const, properties, required, additionalProperties, items, prefixItems, size bounds, anyOf/oneOf/allOf/not, local$ref.patternandformatare ignored locally; the server re-validates.feat/app-submissions-api.--yesin scripts).Tests
cargo test --locked --all-targets,cargo clippy,cargo fmt --checkall clean.tests/publish.rs(12): stdin/@file/-H, local validation exit 2 with no POST, stable idempotency key, 404 exit 3, visibility, apps verbs, and a grep test that no app name appears insrc/outside help examples.🤖 Generated with Claude Code