sortofsleepyS
Convex Communityโ€ข2y agoโ€ข
18 replies
sortofsleepy

Trying to generate a OpenAPI C client - repeatedly fails to generate "any_type.h"

๐Ÿ‘‹

Trying to explore and see if Convex might be a good choice for a simple side project. I'm basically looking to interact with Convex through a Zig application.

That being the case, it seemed like generating a C client is the right call, unfortunately the generator appears to constantly fail to generate the necessary files. When I go to build, the compiler keeps complaining about a missing file called
any_type.h


Not sure whether it's an issue with the spec generator or OpenAPI itself; figured I'd ask here first.

If it matters I'm on Windows.

For reference, this is pretty much the api I need:

import {mutation, query} from "./_generated/server";
import {v} from "convex/values"

export const get = query({
    args: {}, handler: async (ctx) => {
        return await ctx.db.query("links").collect()
    }
})

export const add = mutation({
    args: {
        label: v.string(),
        city: v.string(),
        ip: v.string(),
        link_id: v.string()
    },
    handler: async (ctx, args) => {

        return await ctx.db.insert("stats", {...args})
    }
})


Thank you!๐ŸŽ‰
Was this page helpful?