Skip to content

Add Early Access wireless operations from Meraki's beta spec - #16

Closed
jooakar wants to merge 1 commit into
mainfrom
int-723-beta-operations
Closed

jooakar wants to merge 1 commit into
mainfrom
int-723-beta-operations

Conversation

@jooakar

@jooakar jooakar commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds three Early Access wireless operations. The client can't generate them today because they're only in Meraki's beta OpenAPI spec, so callers have to make raw requests instead.

  • get_organization_wireless_devices_telemetry, get_organization_wireless_radio_status_by_network, and by_organization_wireless_radio_rf_health_neighbors_rssi_device on the wireless scope, sync and async.
  • New beta_spec_version and beta_operations keys in codegen/spec_overrides.toml. Codegen downloads the pinned beta tag (v1.75.1-beta.2) and copies only the listed operations into the GA spec before generation. The rest of the client stays GA.
    • Fails on an unknown operation ID or on an operation that uses $ref, since its components would only exist in the beta spec.
    • Logs a warning and skips the copy once an operation reaches the GA spec, matching the existing override pattern.
  • Operations whose spec has x-release-stage: beta get a docstring note that the organization must opt in to Early Access.
  • The three operations are in skip_tests, because the generated integration tests would fail for orgs that haven't opted in.

Where to look: merge_beta_operations in codegen/main.py, and the two response overrides at the bottom of spec_overrides.toml. The beta spec doesn't match what the API returns:

  • Radio status band is a string ("2.4", "5", "6"), not an integer. It's overridden to str, which still accepts ints through coerce_numbers_to_str.
  • Radio status settings come back as channel and power, not channelSettings and powerSettings. They're kept as extra fields rather than modelled.
  • Telemetry metrics[].values is an object for "Client Count" and an array for other metrics such as "Channel Utilization". It's overridden to Any.

The generated files under meraki_client/ are mechanical output of make generate.

Test plan

  • make generate produces 1042 operations (1039 GA plus the 3 beta ones) with no override warnings, and the generated diff only touches the wireless scope.
  • Ran the three methods, sync and async, against a mocked HTTP transport. Query parameters were encoded as serials[] and networkIds[], telemetry followed the Link header to a second page, and a 404 raised ResourceNotFoundError.
  • Called each method against an organization opted in to Early Access, for a floor plan with 7 APs. All responses validated: 7 telemetry items, 19 radios with band values "2.4", "5" and "6", and 79 neighbor RSSI stats. "Client Count" values came back as an object and the other six metrics as arrays. Radio settings came back as channel/power extras.
  • Results from the three methods matched what the same endpoints return through the official meraki SDK.
  • Call get_organization_wireless_radio_status_by_network against an organization that isn't opted in, and confirm it raises ResourceNotFoundError (404).

Generate get_organization_wireless_devices_telemetry,
get_organization_wireless_radio_status_by_network, and
by_organization_wireless_radio_rf_health_neighbors_rssi_device from
Meraki's beta OpenAPI spec. They are missing from the GA spec.

New beta_spec_version and beta_operations spec overrides copy only the
listed operations from a pinned beta spec tag into the GA spec. Codegen
warns once an operation reaches the GA spec.
@jooakar jooakar added the enhancement New feature or request label Nov 3, 2026
@jooakar jooakar closed this Nov 3, 2026
@jooakar
jooakar deleted the int-723-beta-operations branch November 3, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant