Skip to content

Why default value trigger generated typescript class become optional, how can i get rid of it? #597

Closed Answered by CroMarmot
CroMarmot asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not familiar with openapi, I used protobuf before. Maybe this is a problem with fastapi and not openapi-ts. I don't know.

But I just found another issue fastapi/fastapi#10453 this seems work for me

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@CroMarmot
Comment options

@mrlubos
Comment options

@CroMarmot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by CroMarmot
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