Skip to content

Conversation

@goodsonjr
Copy link
Owner

No description provided.

@goodsonjr goodsonjr force-pushed the default_responses branch 5 times, most recently from b2b11d4 to 39a4707 Compare August 21, 2025 17:37
This modifies the internal Response object to use either `HTTPStatus`
or a string literal "default" for status codes and modifies parsing
in the `Endpoint` class to match.

This additionally modifies the endpoint jinja2 template to handle
this alternate response status code field by using the default response,
if it exists, as the fallback case instead of the UnexpectedStatus error
or returning None, and modifies the return typing to match.
This ads a function test which tests whether an endpoint with a
default response option generates the expected alternate typing.

This also includes a regeneration of the e2e tests after adding
and endpoint utilizing default responses to the base test APIs.
@goodsonjr goodsonjr closed this Aug 25, 2025
@jgoodson jgoodson deleted the default_responses branch September 20, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants