-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build Stripe's OpenAPI spec with "not yet implemented". panic from proc macro from typify-impl
#850
Comments
I think this proximate failure may be addressed by the fix for oxidecomputer/typify#616. Once I try that I get:
This seems to be caused by this: "/v1/account": {
"get": {
"description": "<p>Retrieves the details of an account.</p>",
"operationId": "GetAccount",
"parameters": [
{
"description": "Specifies which fields in the response should be expanded.",
"explode": true,
"in": "query",
"name": "expand",
"required": false,
"schema": {
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
"style": "deepObject"
}
], It's a bit confusing: I see other uses of |
FWIW I moved on to using |
That seems like a good option! Some notes for myself if we get back here: It uses Stripe docs:
serde_qs: #[derive(Deserialize, Serialize, Debug, Clone)]
struct Foo {
expand: Vec<String>,
}
fn main() {
let foo = Foo {
expand: vec!["customer".to_string(), "invoice.subscription".to_string()],
};
let out = serde_qs::to_string(&foo).unwrap();
assert_eq!(out, "expand[0]=customer&expand[1]=invoice.subscription");
} I'd bet that the Stripe API is using Javascript's |
The OpenAPI spec is here.
The failure is at "
typify-288d5a84bbbe6a46/25e11d8/typify-impl/src/util.rs:246:25:
"When building with the macro, the error comes from a proc macro panic which offers very little context:
I got more info running it from a
build.rs
:The text was updated successfully, but these errors were encountered: