Skip to content

Use object value syntax for @service parameter#1

Merged
mario-guerra merged 1 commit intomario-guerra:mainfrom
jbethune:main
Nov 17, 2025
Merged

Use object value syntax for @service parameter#1
mario-guerra merged 1 commit intomario-guerra:mainfrom
jbethune:main

Conversation

@jbethune
Copy link

The example code no longer compiles because the @service decorator expects an #object value parameter in post-1.0 typespec code.

Relevant upstream PR:

The updated code has been tested with the latest typespec 1.6 compiler and language server.

The example code no longer compiles because the @service decorator
expects an #object value parameter in post-1.0 typespec code.

Relevant upstream PR:

* microsoft/typespec#6108

The updated code has been tested with the latest typespec 1.6 compiler
and language server.
@jbethune
Copy link
Author

jbethune commented Nov 16, 2025

I also want to say: Thank you for making TypeSpec! This is really cool. Also thanks for creating this tutorial.

@mario-guerra
Copy link
Owner

Thank you for contributing this fix!

@mario-guerra mario-guerra merged commit 01a075a into mario-guerra:main Nov 17, 2025
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