the-codegen-project / cli

Simplify your implementation in any language when using standards such as AsyncAPI
https://the-codegen-project.netlify.app/
Apache License 2.0
17 stars 0 forks source link

Cannot add two generators of the same preset without custom id #66

Closed jonaslagoni closed 3 months ago

jonaslagoni commented 3 months ago

The following configuration is not possible:

{
  "$schema": "https://raw.githubusercontent.com/the-codegen-project/cli/main/schemas/configuration-schema-0.json",
  "inputType": "asyncapi",
  "inputPath": "../asyncapi.json",
  "language": "csharp",
  "generators": [
    {
      "preset": "payloads",
      "outputPath": "__gen__/payloads/newtonsoft",
      "serializationType": "json",
      "serializationLibrary": "newtonsoft",
      "namespace": "The.Codegen.Project.Newtonsoft"
    },
    {
      "preset": "payloads",
      "outputPath": "__gen__/payloads/json",
      "serializationType": "json",
      "serializationLibrary": "json",
      "namespace": "The.Codegen.Project.Json"
    }
  ]
}