File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ def edit_links(node, base_url):
168168except FileNotFoundError :
169169 print ("No security definitions available for this API" )
170170
171+ untagged = 0
171172for filename in os .listdir (selected_api_dir ):
172173 if not filename .endswith (".yaml" ):
173174 continue
@@ -185,6 +186,11 @@ def edit_links(node, base_url):
185186 if path not in output ["paths" ]:
186187 output ["paths" ][path ] = {}
187188 output ["paths" ][path ][method ] = spec
189+ if "tags" not in spec .keys ():
190+ print ("Warning: {} {} is not tagged ({})." .format (method .upper (), path , filename ))
191+ untagged += 1
192+ if untagged != 0 :
193+ print ("{} untagged operations, you may want to look into fixing that." .format (untagged ))
188194
189195edit_links (output , base_url )
190196
You can’t perform that action at this time.
0 commit comments