Skip to content

docs(openapi): describe the schema fields in the spec - #202

Open
ariel-formance wants to merge 1 commit into
mainfrom
docs/openapi-schema-descriptions
Open

docs(openapi): describe the schema fields in the spec#202
ariel-formance wants to merge 1 commit into
mainfrom
docs/openapi-schema-descriptions

Conversation

@ariel-formance

Copy link
Copy Markdown

Why

The Orchestration OpenAPI spec declares its schemas without saying what any of the fields mean, so the generated SDKs ship bare field names and the API reference renders a name and a type with no explanation.

What

Adds description to the schema fields in openapi/v1.yaml and openapi/v2.yaml — workflows and their configs, instances, stages, triggers, and the error and cursor types.

openapi.yaml is regenerated from those two plus the overlay, as just openapi does. It is a pure addition (454 lines added, none removed) with no reformatting of the existing content, so the Dirty check sees no churn beyond the new descriptions.

No structural changes: no fields added or removed, no types or required-ness touched, so generated clients keep the same shape and only pick up doc comments.

Part of a sweep doing the same across the module specs.

The Orchestration spec declared its workflow, instance, trigger and stage
schemas without saying what any of the fields mean. Add descriptions to
v1 and v2, and re-merge the root spec.
@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3cb5d533-47d2-4dd6-ac4f-749646cadcf1


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NumaryBot

Copy link
Copy Markdown
Contributor

🛑 Changes requested — automated review

Several added descriptions are ignored because they are siblings of $ref in an OpenAPI 3.0 specification, undermining the stated documentation goal.

@NumaryBot NumaryBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NumaryBot posted 1 new inline finding.

Summary: #202 (comment)

Comment thread openapi/v1.yaml
balance:
type: string
description: Name of the balance within the wallet. Defaults to the main balance when omitted
StageSendDestinationWallet:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟠 [major] Wrap described references in schema objects

Because this is OpenAPI 3.0.3, siblings of a $ref Reference Object are ignored by compliant tooling, so this description—and the other newly described direct references such as ActivityStripeTransfer and their v2 equivalents—will not appear in generated documentation or SDK comments. Wrap each reference with allOf and place the description on the containing schema instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants