Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.1k forks source link

Service Bus swagger errors #962

Closed hovsepm closed 7 years ago

hovsepm commented 7 years ago

as mentioned here - https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/swagger-checklist.md

/arm-servicebus/2015-08-01/swagger/servicebus.json#L44 • Operation should be named List and not ListBySubscription

Body parameter and the response MUST be the same for a PUT operation • /arm-servicebus/2015-08-01/swagger/servicebus.json#L109 • /arm-servicebus/2015-08-01/swagger/servicebus.json#L335 • /arm-servicebus/2015-08-01/swagger/servicebus.json#L639 • /arm-servicebus/2015-08-01/swagger/servicebus.json#L847 • /arm-servicebus/2015-08-01/swagger/servicebus.json#L1179 • /arm-servicebus/2015-08-01/swagger/servicebus.json#L1390 • /arm-servicebus/2015-08-01/swagger/servicebus.json#L1736

/arm-servicebus/2015-08-01/swagger/servicebus.json#L562 • Should be named Queues_ListByNamspace (instead of Queues_ListAll)

/arm-servicebus/2015-08-01/swagger/servicebus.json#L1102 • Should be named Topics_ListByNamspace (instead of Topics_ListAll)

/arm-servicebus/2015-08-01/swagger/servicebus.json#L1645 • Should be named Subscriptions_ListByTopic (instead of Subscriptions_ListAll)

description missing for: https://github.com/Azure/azure-rest-api-specs/blob/master/arm-servicebus/2015-08-01/swagger/servicebus.json#L2253 https://github.com/Azure/azure-rest-api-specs/blob/master/arm-servicebus/2015-08-01/swagger/servicebus.json#L2392 https://github.com/Azure/azure-rest-api-specs/blob/master/arm-servicebus/2015-08-01/swagger/servicebus.json#L2516

anuchandy commented 7 years ago

Can we add these information to the description?

Can we add these information to the description? Can we fix same this for TopicProperties::autoDeleteOnIdle, subscriptionProperties:: autoDeleteOnIdle as well?

anuchandy commented 7 years ago

Could you confirm that DELETE on Queue and Topic resource are instant action (non-LRO)? Namespace DELETE is defined as LRO, but same operation on Queue and Topic is defined as non-LRO, would like to ensure this is really the behavior.

sazeesha commented 7 years ago

Yes, DELETE on Queue and Topic resource are instant action unlike namespace.

sazeesha commented 7 years ago

@v-Ajnava we should remove "service supports "text/json" payload " from consumes and produces section.

sazeesha commented 7 years ago

@anuchandy about questions related to TimeSpan our service supports C# Standard TimeSpan Format while Swagger supports only ISO8601 format. We had rolled out a change in our service to support ISO8601 but have had a major incident and we had to roll out that change.We will be supporting that with a newer API version, we plan to do that some time next month.

sazeesha commented 7 years ago

@anuchandy Does SB RP return an error response with properties more than code and message? No, so we do not need to define a new response object.

anuchandy commented 7 years ago

@sazeesha Thank you for the clarification.

  1. Can we include the TimeSpan wire format in the properties description?

  2. If the user wants to disable auto delete of queue then what should be the value set to the property QueueProperties.autoDeleteOnIdle? TimeSpan.MaxValue [10675199.02:48:05.4775807], TimeSpan.Zero [00:00:00], TimeSpan.MinValue [-10675199.02:48:05.4775808] or anything else? Can we include this information in the description?

sazeesha commented 7 years ago

@anuchandy yes, @v-Ajnava lets put a link to C# Standard TimeSpan Format in the description wherever we use the TimeSpan format in the service and on the wire it can still be a string.

v-Ajnava commented 7 years ago

@anuchandy, added a link in description as suggested by Zeeshan.

anuchandy commented 7 years ago

thanks @v-Ajnava @sazeesha!. @hovsepm are you fine with closing this issue?