You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,11 @@
46
46
</table>
47
47
48
48
# Core Features
49
-
- 📃 Generate [payload](https://the-codegen-project.org/docs/generators/payloads), [headers](https://the-codegen-project.org/docs/generators/headers) or [parameter](https://the-codegen-project.org/docs/generators/parameters) representations from your AsyncAPI document (including Protobuf, RAML, OpenAPI Schema) or OpenAPI (Swagger 2.0, 3.0, and 3.1)
50
-
- 📊 Customize the output to your hearts desire
51
-
- 💫 Regenerate once the input changes
52
-
- 👀 Integrate it into any project (such as [Next.JS](./examples/typescript-nextjs), [TypeScript Libraries](./examples/typescript-library), you name it.)
49
+
- 📃 Generate [payloads](https://the-codegen-project.org/docs/generators/payloads), [headers](https://the-codegen-project.org/docs/generators/headers), [parameters](https://the-codegen-project.org/docs/generators/parameters), [protocol helpers](https://the-codegen-project.org/docs/generators/channels), [full clients](https://the-codegen-project.org/docs/generators/client), [models](https://the-codegen-project.org/docs/generators/models), [simple types](https://the-codegen-project.org/docs/generators/types), or all of the above from your [AsyncAPI v2 and v3](https://the-codegen-project.org/docs/inputs/asyncapi)
50
+
- 📃 Generate [payloads](https://the-codegen-project.org/docs/generators/payloads), [headers](https://the-codegen-project.org/docs/generators/headers), [parameters](https://the-codegen-project.org/docs/generators/parameters), [models](https://the-codegen-project.org/docs/generators/models), [simple types](https://the-codegen-project.org/docs/generators/types), or all of the above from your [Swagger 2.0, or OpenAPI 3.0, and 3.1](https://the-codegen-project.org/docs/inputs/openapi)
51
+
- 📃 Generate [models](https://the-codegen-project.org/docs/generators/models) or [completely customize it](https://the-codegen-project.org/docs/generators/custom) for [JSON Schema Draft-4, Draft-6 and Draft-7](https://the-codegen-project.org/docs/inputs/jsonschema)
52
+
- 📊 Every generator fully customizable to fit your hearts desire
53
+
- 👀 Integrate it into any project (Demos in [Next.JS](./examples/typescript-nextjs), [TypeScript Libraries](./examples/typescript-library))
53
54
- 💅 [Create custom generators to your use-case](https://the-codegen-project.org/docs/generators/custom)
54
55
- 🗄️ Protocol agnostic generator ([NATS](https://the-codegen-project.org/docs/protocols/nats), [Kafka](https://the-codegen-project.org/docs/protocols/kafka), [MQTT](https://the-codegen-project.org/docs/protocols/mqtt), [AMQP](https://the-codegen-project.org/docs/protocols/amqp), [event-source](https://the-codegen-project.org/docs/protocols/eventsource), [HTTP Client](https://the-codegen-project.org/docs/protocols/http_client), [WebSocket](https://the-codegen-project.org/docs/protocols/websocket), read the [docs](https://the-codegen-project.org/docs#protocols) for the full list and information)
Copy file name to clipboardExpand all lines: docs/inputs/asyncapi.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ There is a lot of overlap with existing tooling, however the idea is to form the
24
24
|[`channels`](../generators/channels.md)| ✅ |
25
25
|[`client`](../generators/client.md)| ✅ |
26
26
|[`custom`](../generators/custom.md)| ✅ |
27
+
|[`models`](../generators/custom.md)| ✅ |
27
28
28
29
## Basic AsyncAPI Document Structure
29
30
@@ -920,4 +921,4 @@ Short answer: Use the `info.version` field in your AsyncAPI document and conside
920
921
Long answer: It's hard to version APIs, there are tons of resources how to handle versioning of your API which is far beyond what we can offer here.
921
922
922
923
### Can I customize the generated code structure?
923
-
Yes, use the `x-the-codegen-project` extension properties to customize channel names, function mappings, and other generation aspects. If you want full control, use the [custom preset](../generators/custom.md)
924
+
Yes, use the `x-the-codegen-project` extension properties to customize channel names, function mappings, and other generation aspects or the configuration file [while taking a look at the different generators](../generators).
### Can I use both OpenAPI and AsyncAPI in the same project?
111
68
112
69
Yes! You can have separate configuration files for each input type and generate code to different output directories.
113
70
114
-
### What's the difference between OpenAPI 3.0 and 3.1?
115
-
116
-
OpenAPI 3.1 is fully compatible with JSON Schema 2020-12 and includes additional features like `const`, conditional schemas, and enhanced examples support.
117
-
118
-
### How do I handle authentication in generated clients?
119
-
120
-
Define security schemes in your OpenAPI document, and the generated client code will include appropriate authentication handling.
121
-
122
71
### Can I customize the generated code?
123
72
124
-
Yes, use the custom generator preset to create your own templates and generation logic.
73
+
Yes, use the [custom generator](../generators/custom) preset to create your own generation logic.
We upgraded the AsyncAPI Modelina dependency to the `next` version so for the next few versions it will contain breaking changes as we continue to improve the tool.
0 commit comments