docs: API spec generation for Stainless

This commit is contained in:
Alexey Rybak 2025-10-02 09:10:27 -07:00
parent 1d02385e48
commit 0338b4a6eb
4 changed files with 31513 additions and 2 deletions

View file

@ -948,6 +948,10 @@ class Generator:
# Include only deprecated endpoints
if deprecated:
filtered_operations.append(op)
elif self.options.stability_filter == "stainless":
# Include both stable (v1 non-deprecated) and experimental (v1alpha, v1beta) endpoints
if (stability_level == "v1" and not deprecated) or stability_level in ["v1alpha", "v1beta"]:
filtered_operations.append(op)
operations = filtered_operations
print(