Ask a Question

Stoplight tags

Gayathri10
New Contributor

Stoplight tags

In open api file tags are set as
tags:
- name: Users
I use json reference files for api path .Here
i use "tags": [
"Users"
], to call the tags.In stoplight in bundle reference i am able to see the tags in in studio documentation tags are not appearing.
3 REPLIES 3
ponelat
Staff

Hi @Gayathri10 ,

 

Will need more information and possibly screenshots. I don't know what you're expecting to see, nor where you expect to see it.

It sounds like you understand tags quite well, so it might be a bug. If not, you can see more docs here: https://swagger.io/docs/specification/grouping-operations-with-tags/

Hi @ponelat .

I am using stoplight bitbucket cloud integration for my project.

The issue is that.

I have a main openapi (yaml) file with global tags

 tags:
- name: Users
description: Everything about Users

and in main openapi (yaml) file i use references of json files for paths and it ooks like this

paths:
/users/login:
post:
$ref: ../paxafe_backend/API/LoginPostApi.json

 

In LoginPostApi.json file i have tags like "tags": [
"Users"
].

The issue is when i directly upload these files in stoplight i have no issue 

Gayathri10_0-1679684272812.png

 But when i update the changes in local branch and then i git push the changes to the respected branch It looks like this 

Gayathri10_1-1679684341253.png

 Also on git push styleguide.json and .spectral files are automatically created.Can i know is there any fix for the git push in stoplight for not adding these two files and for this tags issue

ponelat
Staff

Thanks for expanding @Gayathri10 ,

From an OpenAPI point of view, what you're doing looks fine. 

 

I don't know much about how Stoplight works with their branching models, I imagine the best place would be to reach out to them via their support channels... https://support.stoplight.io/s/ 

cancel
Showing results for 
Search instead for 
Did you mean: