GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Security key doesn't respect endpoint explicitly setting anonymous access (via `{}`) · Issue #1372 · openapi-generators/openapi-python-client Open DescriptionThanks for this wonderful library! It's been SO helpful :) Describe the bug
Example: This is due to this line
We would want the last two to return False. We should check if This would do the trick: requires_security_check = lambda sec: bool(sec or []) and {} not in (sec or []) OpenAPI Spec File openapi: 3.1.0 info: title: Security Test API version: 1.0.0 servers: - url: https://example.com paths: /no-auth-specified: get: summary: Truly anonymous security: [] # client: Client | AuthenticatedClient (EXPECTED: same) responses: '200': description: OK /explicit-anon: get: summary: Requires auth but has empty object security: # <--- client: AuthenticatedClient (EXPECTED: not sure, but def not this) - {} responses: '200': description: OK /auth-optional-explicit: get: summary: Requires auth but has empty object security: # <--- client: AuthenticatedClient (EXPECTED: Client | AuthenticatedClient) - {} - ApiKeyAuth: [] responses: '200': description: OK /auth-required: get: summary: Requires API key security: # <--- client: AuthenticatedClient - ApiKeyAuth: [] responses: '200': description: OK components: securitySchemes: ApiKeyAuth: type: apiKey in: header name: X-API-Key Desktop (please complete the following information):
Additional context ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |