Skip to content

feat(openapi): add operation frontmatter to generated messages#347

Merged
boyney123 merged 1 commit intomainfrom
feat/openapi-operation-frontmatter
Feb 27, 2026
Merged

feat(openapi): add operation frontmatter to generated messages#347
boyney123 merged 1 commit intomainfrom
feat/openapi-operation-frontmatter

Conversation

@boyney123
Copy link
Contributor

Summary

  • Adds operation frontmatter (method, path, statusCodes) to OpenAPI-generated messages (commands, queries, events)
  • Status codes are extracted from response definitions, excluding default responses
  • Operation frontmatter is always overridden from the OpenAPI spec on regeneration (not persisted from existing messages)

Test plan

  • Tests for POST, GET, PUT, DELETE operations
  • Test that statusCodes excludes default response code
  • Test that operation frontmatter is overridden on regeneration
  • Test for event messages with operation frontmatter

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Feb 26, 2026

🦋 Changeset detected

Latest commit: c1e9721

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@eventcatalog/generator-openapi Minor
@eventcatalog/generator-apicurio Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@boyney123 boyney123 merged commit 0d0cb36 into main Feb 27, 2026
6 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.

1 participant