Skip to content

docs+test: OpenAPI disabled serving vs openapi_json (issue #16) - #31

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-16-openapi-disabled-behavior
Apr 26, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue-16-openapi-disabled-behavior

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

What

  • docs/openapi.md: include_openapi and set_openapi_served share one flag; when off, GET/HEAD /openapi.json are not special-cased (typically 404); openapi_json() still reflects registered routes.
  • tests: ASGI coverage for include_openapi=False and set_openapi_served(False).

Closes #16

- Document include_openapi and set_openapi_served as the same flag; GET/HEAD
  fall through to routing when off; openapi_json() still works
- ASGI tests: constructor and set_openapi_served(False)

Closes #16
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Apr 26, 2026

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit dbae787 into dev Apr 26, 2026
16 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue-16-openapi-disabled-behavior branch April 26, 2026 19:41
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.

1 participant