-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Fix Swagger Linting Error for Microsoft.Features #3841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
annatisch
merged 3 commits into
Azure:master
from
zjpjack:msft-jizen/features_violations
Sep 19, 2018
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
.../resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/getFeature.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceProviderNamespace": "Resource Provider Namespace", | ||
| "featureName": "feature", | ||
| "api-version": "2015-12-01", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "name": "Feature1", | ||
| "properties": { | ||
| "state": "registered" | ||
| }, | ||
| "id": "feature_id1", | ||
| "type": "type1" | ||
| } | ||
| } | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
...esource-manager/Microsoft.Features/stable/2015-12-01/examples/listFeaturesOperations.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2015-12-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "FeaturesOpeartion1", | ||
| "display": { | ||
| "provider": "Microsoft.ResourceProvider", | ||
| "resource": "Resource1", | ||
| "operation": "Read" | ||
| } | ||
| }, | ||
| { | ||
| "name": "FeaturesOpeartion2", | ||
| "display": { | ||
| "provider": "Microsoft.ResourceProvider", | ||
| "resource": "Resource2", | ||
| "operation": "Write" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
32 changes: 32 additions & 0 deletions
32
.../resource-manager/Microsoft.Features/stable/2015-12-01/examples/listProviderFeatures.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceProviderNamespace": "Resource Provider Namespace", | ||
| "api-version": "2015-12-01", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Feature1", | ||
| "properties": { | ||
| "state": "registered" | ||
| }, | ||
| "id": "feature_id1", | ||
| "type": "type1" | ||
| }, | ||
| { | ||
| "name": "Feature2", | ||
| "properties": { | ||
| "state": "unregistered" | ||
| }, | ||
| "id": "feature_id2", | ||
| "type": "type2" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
31 changes: 31 additions & 0 deletions
31
...ource-manager/Microsoft.Features/stable/2015-12-01/examples/listSubscriptionFeatures.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2015-12-01", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Feature1", | ||
| "properties": { | ||
| "state": "registered" | ||
| }, | ||
| "id": "feature_id1", | ||
| "type": "type1" | ||
| }, | ||
| { | ||
| "name": "Feature2", | ||
| "properties": { | ||
| "state": "unregistered" | ||
| }, | ||
| "id": "feature_id2", | ||
| "type": "type2" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
21 changes: 21 additions & 0 deletions
21
...urces/resource-manager/Microsoft.Features/stable/2015-12-01/examples/registerFeature.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceProviderNamespace": "Resource Provider Namespace", | ||
| "featureName": "feature", | ||
| "api-version": "2015-12-01", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "name": "Feature1", | ||
| "properties": { | ||
| "state": "registered" | ||
| }, | ||
| "id": "feature_id1", | ||
| "type": "type1" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,13 +36,48 @@ | |
| } | ||
| }, | ||
| "paths": { | ||
| "/providers/Microsoft.Features/operations": { | ||
| "get": { | ||
| "tags": [ | ||
| "Operations" | ||
| ], | ||
| "operationId": "ListOperations", | ||
| "description": "Lists all of the available Microsoft.Features REST API operations.", | ||
| "x-ms-examples": { | ||
| "List Features operations": { | ||
| "$ref": "./examples/listFeaturesOperations.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/OperationListResult" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Features/features": { | ||
| "get": { | ||
| "tags": [ | ||
| "Features" | ||
| ], | ||
| "operationId": "Features_ListAll", | ||
| "description": "Gets all the preview features that are available through AFEC for the subscription.", | ||
| "x-ms-examples": { | ||
| "List subscription Features": { | ||
| "$ref": "./examples/listSubscriptionFeatures.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
|
|
@@ -71,6 +106,11 @@ | |
| ], | ||
| "operationId": "Features_List", | ||
| "description": "Gets all the preview features in a provider namespace that are available through AFEC for the subscription.", | ||
| "x-ms-examples": { | ||
| "List provider Features": { | ||
| "$ref": "./examples/listProviderFeatures.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "name": "resourceProviderNamespace", | ||
|
|
@@ -106,6 +146,11 @@ | |
| ], | ||
| "operationId": "Features_Get", | ||
| "description": "Gets the preview feature with the specified name.", | ||
| "x-ms-examples": { | ||
| "Get feature": { | ||
| "$ref": "./examples/getFeature.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "name": "resourceProviderNamespace", | ||
|
|
@@ -145,6 +190,11 @@ | |
| ], | ||
| "operationId": "Features_Register", | ||
| "description": "Registers the preview feature for the subscription.", | ||
| "x-ms-examples": { | ||
| "Register feature": { | ||
| "$ref": "./examples/registerFeature.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "name": "resourceProviderNamespace", | ||
|
|
@@ -224,6 +274,49 @@ | |
| } | ||
| }, | ||
| "description": "List of previewed features." | ||
| }, | ||
| "Operation": { | ||
| "description": "Microsoft.Features operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "description": "Operation name: {provider}/{resource}/{operation}", | ||
| "type": "string" | ||
| }, | ||
| "display": { | ||
| "description": "The object that represents the operation.", | ||
| "properties": { | ||
| "provider": { | ||
| "description": "Service provider: Microsoft.Features", | ||
| "type": "string" | ||
| }, | ||
| "resource": { | ||
| "description": "Resource on which the operation is performed: Profile, endpoint, etc.", | ||
| "type": "string" | ||
| }, | ||
| "operation": { | ||
| "description": "Operation type: Read, write, delete, etc.", | ||
| "type": "string" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be an enum of specific values?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Usually, the operation type only has read, write, delete and action. |
||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "OperationListResult": { | ||
| "description": "Result of the request to list Microsoft.Features operations. It contains a list of operations and a URL link to get the next set of results.", | ||
| "properties": { | ||
| "value": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/Operation" | ||
| }, | ||
| "description": "List of Microsoft.Features operations." | ||
| }, | ||
| "nextLink": { | ||
| "type": "string", | ||
| "description": "URL to get the next set of operation list results if there are any." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.