File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -517,6 +517,9 @@ def generate_api_docs_as_docstring(model: Type[BaseModel],
517517 arg_line = f"{ indent } { field_name } ({ type_str } ): "
518518 if status := field_info .get ("status" , None ):
519519 arg_line += f":tag:`{ status } ` "
520+ else :
521+ arg_line += f":tag:`stable` "
522+
520523 if field_description :
521524 arg_line += field_description .split ('\n ' )[0 ] # First line with type
522525
@@ -571,9 +574,6 @@ def _process_pydantic_model(self, cls: Type[BaseModel]) -> None:
571574 status = field_info .json_schema_extra ['status' ]
572575 self ._amend_pydantic_field_description_with_tags (
573576 cls , [field_name ], status )
574- elif LABEL_STABLE_APIS :
575- self ._amend_pydantic_field_description_with_tags (
576- cls , [field_name ], "stable" )
577577
578578 def _amend_pydantic_field_description_with_tags (self , cls : Type [BaseModel ],
579579 field_names : list [str ],
You can’t perform that action at this time.
0 commit comments