Skip to content

chore: regenerate client from updated OpenAPI spec#14

Closed
hotdata-automation[bot] wants to merge 2 commits intomainfrom
openapi-update-23056636959
Closed

chore: regenerate client from updated OpenAPI spec#14
hotdata-automation[bot] wants to merge 2 commits intomainfrom
openapi-update-23056636959

Conversation

@hotdata-automation
Copy link
Contributor

Auto-generated from updated HotData OpenAPI spec.

authors = ["OpenAPI Generator team and contributors"]
description = "Powerful data platform API for datasets, queries, and analytics."
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
Copy link

Choose a reason for hiding this comment

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

P1 — Unintentional license change. The generator template defaults to Unlicense and even leaves a breadcrumb comment saying to override it. The original project license was MIT. Shipping this would silently change the legal terms of the published crate.

Suggested change
license = "Unlicense"
license = "MIT"

description = "Rust client for the HotData API"
license = "MIT"
version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
Copy link

Choose a reason for hiding this comment

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

Generator default — should be removed or replaced with the actual project author(s). Publishing with "OpenAPI Generator team and contributors" is misleading.

Suggested change
authors = ["OpenAPI Generator team and contributors"]
authors = ["HotData"]

impl Default for Configuration {
fn default() -> Self {
Configuration {
base_path: "https://app.hotdata.dev".to_owned(),
Copy link

Choose a reason for hiding this comment

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

The hardcoded version 0.0.0 doesn't match the package version (1.0.0). Consider deriving this from env!("CARGO_PKG_VERSION") so it stays in sync automatically.

Suggested change
base_path: "https://app.hotdata.dev".to_owned(),
user_agent: Some(format!("hotdata-rust/{}", env!("CARGO_PKG_VERSION"))),

return params;
}

unimplemented!("Only objects are supported with style=deepObject")
Copy link

Choose a reason for hiding this comment

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

unimplemented!() panics at runtime. Since this function is public, a caller passing a non-object serde_json::Value (e.g. an array or scalar) will crash the process. Consider returning a Vec (empty or with a best-effort conversion) or making the function return Result/Option instead.

Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Review

Issues

  • Cargo.toml line 7 — License changed from MIT to Unlicense. The generator template emits Unlicense as its default and even comments that it should be overridden. This silently changes the published crate's legal terms. Must be restored to MIT before merge.

Action Required

Restore license = "MIT" in Cargo.toml. The generator's Unlicense default should be suppressed via the generator config (e.g. .openapi-generator-ignore or a custom template override for Cargo.toml.mustache) so future regenerations don't reintroduce this.

@zfarrell zfarrell closed this Mar 14, 2026
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