1.4.18 (2023-01-16)
- #67: treat
null
with higher priority (9f633cc), closes #67 - handle invalid number+enum case if schema.type is Array (07e5133)
- #60: support schema.type list from openapi 3.1 (519de14), closes #60
- playground: add api.doc.json default tab (75edaf1)
1.4.17 (2023-01-09)
1.4.16 (2023-01-05)
1.4.15 (2022-12-13)
- missing zod chains on z.object(..) refs props (9b5c2cb)
1.4.14 (2022-12-13)
- schema.type = number with string default should be inlined as number (b2786b9)
1.4.13 (2022-12-12)
- autofix wrong schema.type case as QoL improvement (e589663)
1.4.12 (2022-12-12)
1.4.11 (2022-12-12)
- ParameterObject with missing schema AND content (20e075c)
1.4.10 (2022-12-12)
- ParameterObject with content (and no schema) (a7533a5)
1.4.8 (2022-12-11)
- rm sheep & re-publish since it broke the package.. (794721a)
1.4.7 (2022-12-11)
- #49: min+max shouldnt mean EXACT but between (d394d86), closes #49
- #49: missing .and for allOf (fb2fc0c), closes #49
1.4.6 (2022-12-10)
- #49: numerical enum shouldnt be wrapped in quotes + dont append .int() for them (cc1ced0), closes #49
1.4.5 (2022-12-07)
- #45: add guard on possibly undefined value (be431b6), closes #45
- getZodVarName when result is a ref with chains (17a7091)
- schema.pattern when not wrapped with /xxx/ (bda6ecb)
- allow passing own instance of handlebars to generateZodClientFromOpenAPI (3675691)
1.4.0 (2022-11-17)
- add updateOutput action where needed (e9b376f)
- build (2d201bf)
- build + preview + dev (still gets hydration mismatch) (1659ecb)
- check for url length before history.replace/copy to clipboard (dccff7b)
- ci (c2b0ece)
- ci ? (4d4e720)
- ci ?? (0fd0a03)
- circular refs detection (d48fad2)
- examples (9501d4b)
- handle refs with dots in name (7a1a69d)
- is it fine now please (b119d70)
- lib deps (fee2ce3)
- lib: group xxx-file should ignore options.apiClientName (65b4c43)
- lib: normalize schema names in template context (d5705dd)
- lock (5fa9865)
- missing graphs dependencies (465e06f)
- monorepo build (68d7190)
- mv preconstruct scripts to root (6f42e65)
- output TabsList x-axis overflow scroll (987ff76)
- playground: catch & log errors & notify user (3fd1186)
- playground: display parsing error (560d155)
- playground: reset groupStrategy to none for schemas-only preset template (4aca386)
- pnpx add postinstall in root package (a11a574)
- pnpx by removing src in files ? (64c74a7)
- pnpx maybe (2e3b004)
- pnpx with postinstall (2360ef9)
- preconstruct / babel ? (e0ccf2b)
- presetTemplate checked (8f622bd)
- server-side package with ssr external + rakkas preview (a48ea7e)
- simplify output templateString (71a6810)
- update selected template/doc on input when it was empty or when removing file tab (c851903)
- use fs-extra version that support esm.. (76a6025)
- using exports ? (eddfcfe)
- Actions menu wip + initial template file tab (270d7ab)
- cli: add --api-client-name option (deca178)
- export getHandlesbars / maybePretty (ca734db)
- FileForm.content as monaco editor (bdeff23)
- init docusaurus + vanilla-extract + monaco (f7e09a5)
- input files list + editable + reset to petstore btn (1549de4)
- lib: options.willSuppressWarnings (5ae86e5)
- lib: whence.functions = true (ab1041f)
- options builder + preview cli options/ts usage with copy button (78aed6a)
- playground: add zod + @zodios/core declarations to monaco (5e53982)
- playground: customizable prettier config + multiple prettier tabs (bf68177)
- playground: go to file (e28e409)
- playground: PoC for in-browser lib usage (772e301)
- playground: prettier schema in editor (331e0a8)
- playground: support groupStrategy xxx-file (26263f7)
- save current state to URL & copy to clipboard (b85b1a6)
- selectedOpenApiFileName/selectedTemplateName (c44b400)
- SplitPane: options + fix overflow auto on 2nd pane (69b1b2b)
- updateSelectedTemplateName with override options (9276cb4)
- useState/Memo -> Playground.machine (ab0b863)
1.0.0 (2022-10-26)
- add full zod chains for parameters (b4e5af1)
- response acceptance condition should not take default (2b15d15)
- adds z.default(xxx) (1e791f2)
- CLI: add --default-status option (181ac76)
- options.defaultStatusBehavior (3c3456f)
- requestFormat binary, form-url, form-data, text (099d9da)
0.9.0 (2022-10-25)
- openapi3-ts to 3.0.2 (3ab62f9)
0.8.0 (2022-10-24)
options.apiClientName
+ custom for groups (846ae52)- basic --group-strategy option implementation (596e9d4)
- group-strategy:
xxx-file
common.ts + index.ts (a0c3170) - include transitive dependencies / sort schemas by deps order + getRefName (682b0e3)
0.7.0 (2022-10-21)
0.6.1 (2022-10-20)
0.6.0 (2022-10-20)
0.5.0 (2022-10-19)
- #15: handle missing operationId for requestBody var name (2d85f42), closes #15
- #21: infer missing schema as
z.void()
when no matching MediaTypeObject or no ContentObject (4aa9180), closes #21 - $ref in another file (dcef06a)
- add fallback to requestBody.content (dc0895e)
- add missing default response (704d28f)
- also generate types for deep dependencies of circular ref types (cc616ea)
- autofix unusual ref format (3521840)
- cli: append .client after .yaml (88b86b0)
- cli: v0.0.7 generateZodClientFromOpenAPI templatePath (d23069e)
- default schemas overriding 200 response (c746ef5)
- do not fail if schema doesn't exist (e7aa1ad)
- getZodClientTemplateContext: replacer / variables order by dependencies (ca918dd)
- handle refs without var name (such as arrays) (3a613e7)
- issue#2: format path param (1896dfb), closes issue#2
- kebab-case-in-props name should be normalized (0127722)
- makeRefHash add letter as prefix (b1ca8cb)
- missing maybeReplaceTokenOrVarnameWithRef on errors schema (2c08ba0)
- openApiToTypescript openapi integer -> bigint (943f864)
- openApiToTypescript with enum as root (098a8ad)
- outputs all deep dependencies as TS for each circular schema (868107f)
- reduce unions to single type when oneOf/anyOf/allOf length is 1 (d042afb)
- reverse order of schema kind in getOpenApiDependencyGraph (091d469)
- rm bigint -> number (b0c2181)
- rm options.baseUrl default value (4654ab4)
- rm unnecessary .optional() (7c46eac)
- unintentional shared context -> make a new object (5e80cee)
- use
asApi
helper rather thanas const
(59ee30b) - var names starting with number (74c72db)
- visit additionalProperties to determine schema deps (15e3f5f)
- --with-deprecated option (defaults to false) (9a20e6f)
- #13: implement zodios errors (216cca1), closes #13 #12
- #19: --export-schemas option (ed8d7bd), closes #19
- #23: withImplicitRequiredProps option (31adcc2), closes #23
- #24: add path params (82094e9), closes #24
- cli: -b, -a, -h, -v options (bc6c249)
- cli: add template/prettier args (a8e8ba7)
- export getOpenApiDependencyGraph (25eb3e3)
- generate TS types so that z.lazy is typed properly (635d0f5)
- infer as object when type not set but properties/additionalProperties is (bdb220b)
- isMediaTypeAllowed option (46bf611)
- mark recursive schemas with @circular token (1944f41)
- openApiToTypescript with tanu.js (b4f8352)
- openApiToTypescript: handle additionalProperties (101e1b0)
- string/number/array validations + format #8 + #9 (e4d6354)