You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"CharFilter": {
"type": "object",
"description": "Base type for character filters.",
"properties": {
"@odata.type": {
"type": "string",
"description": "The discriminator for derived types.",
"x-ms-client-name": "odataType"
},
"name": {
"type": "string",
"description": "The name of the char filter. It must only contain letters, digits, spaces,\ndashes or underscores, can only start and end with alphanumeric characters, and\nis limited to 128 characters."
}
},
"discriminator": "odataType",
"required": [
"@odata.type",
"name"
]
},
@xiangyan99 since this is an openapi emitter issue, you should open this issue in the TypeSpec repo. I also confirmed this isn't an issue on the python emitter, we're generating with wire name @odata.type. Would you be ok if I transferred this to the typespec repo?
I have such code in tsp file https://github.com/Azure/azure-rest-api-specs/blob/6835b53e2d8ba8a41fcf88b1eae56d4ad44ff9fb/specification/search/Azure.Search/models-service.tsp#L6202-L6214:
I expected
odataType
can be renamed into@odata.type
, including the one in the discriminator.But the generated openapi.json https://github.com/Azure/azure-rest-api-specs/blob/6835b53e2d8ba8a41fcf88b1eae56d4ad44ff9fb/specification/search/data-plane/Search/stable/2024-07-01/openapi.json#L2899-L2918 only has
It still uses "discriminator": "odataType".
The entire project can be found at https://github.com/Azure/azure-rest-api-specs/tree/search_tsp/specification/search/Azure.Search
The text was updated successfully, but these errors were encountered: