@@ -387,7 +387,7 @@ theResource.Location = "North US";
387
387
theResource.Foo.Name = "fooB";
388
388
theResource.Foo.Capacity = 100;
389
389
```
390
- ### When will AutoRest flatten resources
390
+ ### When will AutoRest flatten resources?
391
391
If any model or its parent is marked with an extension `"x-ms-azure-resource" : true`, then AutoRest will flatten the
392
392
Resource-specific properties by one level for that model.
393
393
@@ -497,11 +497,13 @@ Swagger as the list of items and the `nextLink`. Tag the operation as `x-ms-page
497
497
methods for navigating between pages.
498
498
499
499
#### x-ms-pageable extension definition
500
- ```json
500
+ ```
501
501
{
502
502
"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'."
505
507
}
506
508
}
507
509
```
@@ -616,4 +618,4 @@ If an operation requires that a parameter is exposed as a method parameter, it i
616
618
617
619
TODO: naming standards for operations Create, CreateOrUpdate, Update (respect etag), Get, List, Delete, Patch
618
620
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