Deprecate x-traitTag

This commit is contained in:
Roman Hotsiy 2016-10-31 12:32:03 +02:00
parent 84349a451a
commit 9e7ba0ea8d
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,7 @@ info:
### Tag Object vendor extensions
Extends OpenAPI [Tag Object](http://swagger.io/specification/#tagObject)
#### x-traitTag
#### x-traitTag [DEPRECATED]
| 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) |

View File

@ -154,6 +154,9 @@ export class SpecManager {
description: tag.description,
'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;