Add JSON Schema for subscription migration scheduling - #8587
Open
gonzaloriestra wants to merge 1 commit into
Open
gonzaloriestra wants to merge 1 commit into
gonzaloriestra wants to merge 1 commit into
Conversation
3 tasks done
gonzaloriestra
added this pull request to stack #8590
September 18, 2026 12:23
gonzaloriestra
force-pushed
the
gonzalo/json-subscription-migrations-schedule
branch
from
September 21, 2026 12:17
8b7438e to
f733c40
Compare
gonzaloriestra
force-pushed
the
gonzalo/json-subscription-migrations-schedule
branch
3 times, most recently
from
September 24, 2026 10:32
2fb86a1 to
c1274ae
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gonzaloriestra
force-pushed
the
gonzalo/json-subscription-migrations-schedule
branch
from
September 24, 2026 10:41
c1274ae to
76ac9ea
Compare
gonzaloriestra
marked this pull request as ready for review
September 24, 2026 10:46
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.
WHY are these changes introduced?
Make the existing scheduling JSON contract discoverable and validated.
Related to shop/issues-develop#23886. Stacked on #8586.
WHAT is this pull request doing?
Add a shared submission schema using the operation and error schemas from #8541, and infer submission types from it. Connect the shared schedule/unschedule encoder while preserving accepted operations, failure details, watch output, and exit codes. Expose the contract on
schedule;unschedulefollows later in this stack.The JSON contract follows CLI versioning and has no separate
schemaVersionfield.Example output
shopify app subscription-migrations schedule --input migrations.csv --forceText output (banner borders omitted):
With
--json:{ "clientId": "client-id", "action": "schedule", "inputDigest": "input-digest", "total": 1, "operations": [ { "batchIndex": 0, "batchPayloadDigest": "batch-digest", "operation": { "id": "operation-one", "status": "RUNNING", "total": 1, "results": { "edges": [] } } } ] }How to manually test your changes?
Checklist