mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
Undeprecate x-traitTag
This commit is contained in:
parent
8c5251688f
commit
05be7561f0
|
@ -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) |
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user