[tcgc] add support for a MultiPartFile
type
#165
Labels
lib:tcgc
Issues for @azure-tools/typespec-client-generator-core library
MultiPartFile
type
#165
Currently, our code at large assumes models to be JSON objects. Since we need to support
multipart/form-data
, this is not the case. For example, in the following modelprop
will default to a b64 encoded string, which is the correct behavior. However, in a model used for multipart, we would instead want to recognize thebytes
as being for a file, and also add information aboutcontent-type
andfilename
.So proposal is to add a new primitive type like the following, which would be the above property
picture
's typeThe text was updated successfully, but these errors were encountered: