Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18f2597

Browse files
committed
minor tweaks
1 parent 16eb5ee commit 18f2597

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

documentation/creating-swagger.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ theResource.Location = "North US";
387387
theResource.Foo.Name = "fooB";
388388
theResource.Foo.Capacity = 100;
389389
```
390-
### When will AutoRest flatten resources
390+
### When will AutoRest flatten resources?
391391
If any model or its parent is marked with an extension `"x-ms-azure-resource" : true`, then AutoRest will flatten the
392392
Resource-specific properties by one level for that model.
393393

@@ -497,11 +497,13 @@ Swagger as the list of items and the `nextLink`. Tag the operation as `x-ms-page
497497
methods for navigating between pages.
498498

499499
#### x-ms-pageable extension definition
500-
```json
500+
```
501501
{
502502
"x-ms-pageable" : {
503-
"nextLinkName": "Specify the name of the property that provides the nextLink. If your model does not have the nextLink property then specify null.",
504-
"itemName": "Specify the name of the property that provides the collection of pageable items. It is optional. Default value is 'value'."
503+
"nextLinkName": "Specify the name of the property that provides the nextLink.
504+
If your model does not have the nextLink property then specify null.",
505+
"itemName": "Specify the name of the property that provides the collection
506+
of pageable items. It is optional. Default value is 'value'."
505507
}
506508
}
507509
```
@@ -616,4 +618,4 @@ If an operation requires that a parameter is exposed as a method parameter, it i
616618

617619
TODO: naming standards for operations Create, CreateOrUpdate, Update (respect etag), Get, List, Delete, Patch
618620
TODO: patch => no validate
619-
[Swagger-spec2.0]:https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md
621+
[Swagger-spec2.0]:https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md

0 commit comments

Comments
 (0)