Skip to content

Add Detect API v1-to-v2 migration guidance to call-rest-apis skill - #23

Merged
jstjoe merged 1 commit into
mainfrom
claude/skyflow-detect-api-v2-iqp434
Jul 6, 2026
Merged

Add Detect API v1-to-v2 migration guidance to call-rest-apis skill#23
jstjoe merged 1 commit into
mainfrom
claude/skyflow-detect-api-v2-iqp434

Conversation

@jstjoe

@jstjoe jstjoe commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the v2 Detect API docs (#20). Adds a dedicated "Migrating from v1 to v2" section to the call-rest-apis skill so users moving off v1 have a single mapping reference instead of diffing the v1 and v2 sections themselves.

Kept inside the existing skill (not a separate skill) so v1, v2, and the migration guide stay discoverable together — the migration content is inherently a mapping between the two versions the skill already documents.

Changes

  • detect-api.md — New # Migrating from v1 to v2 section covering:
    • Endpoint mapping table (v1 → v2), including the note that v1's per-type file endpoints consolidate into POST /v2/detect/deidentify/file.
    • What changes: configuration-based request model (configurationId / inline configuration), camelCase fields, flattened file inputs (dataSource/value/dataFormat), uppercase enums (and efs_pathPRESIGNED_URL), the new metrics object.
    • Field-name reference table (snake_casecamelCase) plus response shape changes (re-identify string field rename, re-identify file output object → array, uppercase processed-file types).
    • A before/after curl example for de-identify string.
    • A migration checklist, including a reminder to verify guardrails casing against the live endpoint.
  • SKILL.md — Added a callout linking to the migration section.

Notes

  • Documentation-only change to the skill; no code affected.
  • Mappings derived from the v1 and v2 schemas/examples in detect.openapi.json.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXQaHgcqTYu8QxzsMbPywb


Generated by Claude Code

Add a "Migrating from v1 to v2" section to detect-api.md covering the
endpoint mapping, the configuration-based request model, camelCase field
renames, flattened file inputs, enum/casing changes, response shape
differences, a before/after example, and a migration checklist. Link to
it from SKILL.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TXQaHgcqTYu8QxzsMbPywb

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated migration reference for users moving from Skyflow Detect API v1 to v2 within the existing call-rest-apis skill documentation, so consumers don’t need to diff the two version sections manually.

Changes:

  • Added a new “Migrating from v1 to v2” section to the Detect API guide, including endpoint mapping, field/shape changes, and a checklist.
  • Added a callout in SKILL.md that links directly to the new migration section for discoverability.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
skyflow-skills-plugin/skills/call-rest-apis/SKILL.md Adds a callout linking to the Detect API v1→v2 migration section.
skyflow-skills-plugin/skills/call-rest-apis/detect-api.md Introduces a new v1→v2 migration section with mappings, examples, and checklist.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jstjoe
jstjoe merged commit fcf11bd into main Jul 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants