Skip to content

feat: add type alias support#32

Merged
pkieltyka merged 2 commits intowebrpc:masterfrom
klaidliadon:feat/type-alias
Mar 31, 2026
Merged

feat: add type alias support#32
pkieltyka merged 2 commits intowebrpc:masterfrom
klaidliadon:feat/type-alias

Conversation

@klaidliadon
Copy link
Copy Markdown
Contributor

Adds OpenAPI schema rendering for RIDL type aliases as named schema components.

A type Username: string in RIDL now renders as:

Username:
  type: string

Fields referencing Username already resolve via $ref: '#/components/schemas/Username' through the existing fieldType template fallthrough.

Also updates go.mod to webrpc@v0.36.1 and fixes a stream method compatibility issue in the example RIDL (mixed succinct/non-succinct form).

@klaidliadon klaidliadon force-pushed the feat/type-alias branch 2 times, most recently from d100200 to 6104edc Compare March 30, 2026 20:45
Renders RIDL type aliases as named OpenAPI schema components. Updates go.mod to webrpc v0.36.1 and fixes stream method succinct form compatibility.
@pkieltyka pkieltyka merged commit 7d115b6 into webrpc:master Mar 31, 2026
1 check 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.

2 participants