Closed tadelesh closed 2 weeks ago
blocking scvmm release.
I am reading from extension in emitter for .NET
reading openapi extension info is not a good solution.
@timotheeguerin I heard that we have assumption that for type url
it would implicitly imply true
for x-ms-skip-url-encoding and with type string
it would imply false
. Is this correct?
Personally I don't think url vs string type would imply any encoding info.
found some previous discussion but not fully understood the final decision: https://github.com/microsoft/typespec/issues/851. @markcowl could you also help with this question?
why not we just model the type of resourceUri
to armResourceIdentifier
? In practice, this place is always an armResourceIdentifier
.
And we could add the skip-url-encoding
extension to the definition of armResourceIdentifier
because when an arm id was put in path, url encoding should always be skipped.
For this perspective, maybe it is wrong that we defined armResourceIdentifier
to extends string
. Maybe it should extends url
Also there is a requirement from dotnet MPG generator that this type is an arm id.
Could we also rename the parameter to be resourceId
maybe to be more specific? Because it is an arm id in ARM standard and practice.
the difficulty here is to be backward compatible with swagger: https://github.com/Azure/azure-rest-api-specs/blob/87a08b955c257c773a3bd42553c718d4b1092955/specification/common-types/resource-management/v6/types.json#L627
will close in favor of hte core design issue for this https://github.com/microsoft/typespec/issues/3736
The definition is as follows:
How can emitter know the
resourceUri
does not need url encoding since it is not typed withurl
? IDK whetherurl
type is by design for that?