Skip to content

Enhance pings documentation (within swaggers) / add to clients#138

Open
skelz0r wants to merge 4 commits into
developfrom
enhance/pings-documentation
Open

Enhance pings documentation (within swaggers) / add to clients#138
skelz0r wants to merge 4 commits into
developfrom
enhance/pings-documentation

Conversation

@skelz0r
Copy link
Copy Markdown
Member

@skelz0r skelz0r commented May 20, 2026

No description provided.

skelz0r added 4 commits May 19, 2026 17:50
…rticulierv2)

Add rswag specs for all ping routes: global ping, provider pings list,
and individual provider ping. These endpoints are unauthenticated
(security: []) and grouped under the new "Disponibilité" tag.

Adapt the swagger generation pipeline to handle unauthenticated endpoints:
- ErrorInjector skips error injection for security: [] operations
- augment_openapi_files skips maintenances/code samples for security: []
- spec_helper x-operationId hook guards against controllers without
  operation_id (PingController inherits ApplicationController, not
  ApiController), checking both protected and private visibility
The ping endpoints added to the OpenAPI specs use `security: []`
(no auth required). The scaffold scripts were picking them up as a
new "ping" provider, which is incorrect — they are monitoring
endpoints, not data provider resources for the SDK.

Both Ruby and Node scaffold scripts now skip operations with an
empty security array, keeping the generated client code unchanged.
Both APIs expose unauthenticated monitoring endpoints (security: []
in OpenAPI): ping, pings, and ping_provider. These were not surfaced
in the SDK clients.

Changes:
- Add get_public/getPublic to ClientBase (skips auth + audit param
  validation, keeps User-Agent, timeouts, logging, error mapping)
- Add ping(), pings(), ping_provider() directly on each Client class
  (not via scaffold, since these aren't data-provider resources)
- Sync vendored commons to both Ruby gems and Node packages
- Add tests verifying no Authorization header is sent
- Document public endpoints in SPECS.md §9.5 and conformance checklist
The ping endpoints (security: []) have no x-operationId, no response
schema, no provider, and no test case entry — by design, since they
are public monitoring endpoints, not data-provider resources.

Skip paths with security: [] in the 4 specs that iterate over all
swagger paths: open_api_validation, open_api_schema_to_example,
endpoints_with_test_case, and extract_provider_from_path.
@skelz0r skelz0r self-assigned this May 20, 2026
@skelz0r skelz0r marked this pull request as ready for review May 20, 2026 11:50
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