Conversation
…ions Introduces new CLI commands to interact with the SCAPI Schemas API: - `scapi schemas list` - List available SCAPI schemas with filtering by apiFamily, apiName, apiVersion, and status - `scapi schemas get` - Get a specific schema with selective expansion support for context-efficient output (ideal for agentic/LLM use cases) Key features: - Schema collapsing by default (paths show methods, schemas show names only) - Selective expansion via --expand-paths, --expand-schemas, --expand-examples - List available items via --list-paths, --list-schemas, --list-examples - YAML output support via --yaml flag - Custom properties expansion (enabled by default) SDK additions: - OpenAPI spec and generated types for SCAPI Schemas API - createScapiSchemasClient() factory with OAuth scope sfcc.scapi-schemas - collapseOpenApiSchema() utility for three-tier disclosure model - Helper functions: getPathKeys, getSchemaNames, getExampleNames Also includes documentation page and b2c-cli skill for the new commands.
- Reorder class members per perfectionist rules - Fix union type ordering (null before string[]) - Remove unnecessary length check in Array.some() - Fix test assertion to use lowercase 'apiFamily'
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.
Summary
scapi schemas listcommand to list available SCAPI schemas with filtering by apiFamily, apiName, apiVersion, and statusscapi schemas getcommand to retrieve a specific schema with selective expansion support for context-efficient output (ideal for agentic/LLM use cases)--expand-paths,--expand-schemas,--expand-examplesflags--list-paths,--list-schemas,--list-examplesflags--yamlflagsfcc.scapi-schemasGUS: W-20783316