Skip to content

fix(parser): add title and summary to v3 ServerObject type#1178

Closed
q404365631 wants to merge 1 commit into
asyncapi:masterfrom
q404365631:fix/server-object-title-summary-1137
Closed

fix(parser): add title and summary to v3 ServerObject type#1178
q404365631 wants to merge 1 commit into
asyncapi:masterfrom
q404365631:fix/server-object-title-summary-1137

Conversation

@q404365631

Copy link
Copy Markdown

What

Adds the missing title?: string and summary?: string fields to the v3
ServerObject TypeScript type in packages/parser/src/spec-types/v3.ts.

Why

As reported in #1137, the AsyncAPI 3.0 specification allows title and
summary on the Server Object,
but the parser's TypeScript types omitted them. The runtime model already
exposed them via the inherited CoreModel methods (server.title(),
server.hasTitle(), server.summary(), server.hasSummary()), so users
could not type-safely access server.title / server.summary even though
the values were populated.

This is part of the MICROGRANT 2026-06 #1167
aggregated issue.

Changes

packages/parser/src/spec-types/v3.ts : 2 fields added to ServerObject.

Plus a changeset for @asyncapi/parser (patch).

2 files changed, 16 insertions(+).

Fixes #1137

@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e1de867

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

This PR includes changesets to release 1 package
Name Type
@asyncapi/parser Patch

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

@sonarqubecloud

sonarqubecloud Bot commented Jun 4, 2026

Copy link
Copy Markdown

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.

[BUG] Absent fields 'title' and 'summary' for AsyncAPI 3.0

1 participant