mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
Deprecate x-traitTag
This commit is contained in:
parent
84349a451a
commit
9e7ba0ea8d
|
@ -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) |
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user