Skip to content

Commit

Permalink
Merge pull request #475 from dgramop/fix_terminal_codegen
Browse files Browse the repository at this point in the history
fix(codegen): stripe "terminal" is not an object, but its subpaths are
  • Loading branch information
arlyon authored Jan 24, 2024
2 parents bf72ecb + bf7e117 commit bcd8f8f
Show file tree
Hide file tree
Showing 5 changed files with 720 additions and 4 deletions.
3 changes: 3 additions & 0 deletions openapi/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ pub fn metadata_requests<'a>(
// special case for usage_records
(_, _, Some("usage_records")) => "usage_records".to_string(),

// special case: terminal is a resource, not an object
(Some("terminal"), Some(x), _) => format!("terminal.{}", x),

(Some(x), _, _) => x.to_string(),
_ => {
// this should never happen
Expand Down
Loading

0 comments on commit bcd8f8f

Please sign in to comment.