Skip to content

Commit 77d16b5

Browse files
committed
fix: remove unnecessary pullResponseExamples call from outputSchema getter
Performance regression since v24.0.0 - the outputSchema getter was calling the expensive pullResponseExamples() operation on every access, even though examples are only needed for OpenAPI documentation generation (getResponses). This fixes the issue where simply accessing the output schema for runtime validation was unnecessarily triggering example generation.
1 parent 34a2c55 commit 77d16b5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
### v27.2.4
66

7-
- Fixed performance regression since v24.4.0:
8-
- Removed unnecessary `pullResponseExamples()` call in `outputSchema` getter;
7+
- Fixed performance regression since v24.0.0:
8+
- Removed unnecessary processing of output schema examples;
9+
- Those used to be processed when the first API request occurred on endpoint;
910
- Examples are only required for OpenAPI generators, not for runtime validation.
1011

1112
### v27.2.3

0 commit comments

Comments
 (0)