Skip to content

I'd like to make a property visible for openapi but hidden to a custom emitter - how would I do that? #2511

Answered by timotheeguerin
Kieranties asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Kieranties that's awesome to hear you trying to write an emitter for typespec!

For your question it is a good one, we think your approach is a correct way of representing it, we talked a little bit with the team and sounds like we have probably a bug/some change to do in the http library regarding that body resolution. I filed an issue for that part #2513

Taking a step back however:
Is that header combo always the same? At least the lambda converted name? Could that name be automatically resolved by the emitter, I feel like that if you require user to do that it might be quite error prone. That could probably be mitigated with some template model that you spread to get those propertie…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by markcowl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants