miyaji255 / hono-typia-openapi

Open API Schema Generator for Hono with typia
MIT License
8 stars 1 forks source link

Empty schema #1

Closed starsolaris closed 2 months ago

starsolaris commented 2 months ago

Generate empty schema if code will be like:

app.get();
app.post();

Work if code like:

app.get().post()
miyaji255 commented 2 months ago

hono-typia-openapi uses the type app to generate the schema. If you do not write in method chain, the app type will not contain a schema.

Therefore you must write all methods in a method chain. (This is similar to Hono Client).