Undeprecate x-traitTag

This commit is contained in:
Roman Hotsiy 2017-02-02 23:24:00 +02:00
parent 8c5251688f
commit 05be7561f0
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 1 additions and 4 deletions

View File

@ -100,7 +100,7 @@ info:
### Tag Object vendor extensions ### Tag Object vendor extensions
Extends OpenAPI [Tag Object](http://swagger.io/specification/#tagObject) Extends OpenAPI [Tag Object](http://swagger.io/specification/#tagObject)
#### x-traitTag [DEPRECATED] #### x-traitTag
| Field Name | Type | Description | | Field Name | Type | Description |
| :------------- | :------: | :---------- | | :------------- | :------: | :---------- |
| x-traitTag | boolean | In Swagger two operations can have multiply tags. This property distinguish between tags that are used to group operations (default) from tags that are used to mark operation with certain trait (`true` value) | | x-traitTag | boolean | In Swagger two operations can have multiply tags. This property distinguish between tags that are used to group operations (default) from tags that are used to mark operation with certain trait (`true` value) |

View File

@ -162,9 +162,6 @@ export class SpecManager {
description: tag.description, description: tag.description,
'x-traitTag': tag['x-traitTag'] || false 'x-traitTag': tag['x-traitTag'] || false
}; };
if (tag['x-traitTag']) {
console.warn(`x-traitTag (${tag.name}) is deprecated since v1.5.0 and will be removed in the future`);
}
} }
return tagsMap; return tagsMap;