konfig.yaml
konfig.yaml
is a required configuration file that tells konfig
CLI how to operate. Explore the schema here.
Example
Here is an example konfig.yaml
that contains configuration to generate SDKs for many languages.
_74outputDirectory: /tmp/acme-sdks-out_74specPath: api.yaml_74generators:_74 java:_74 version: 1.0.0_74 groupId: com.acme_74 artifactId: acme-java-sdk_74 outputDirectory: java_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/java_74 python:_74 version: 1.0.0_74 packageName: acme_client_74 projectName: acme-python-sdk_74 outputDirectory: python_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/python_74 typescript:_74 version: 1.0.0_74 npmName: acme-typescript-sdk_74 outputDirectory: typescript_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/typescript_74 csharp:_74 version: 1.0.0_74 packageName: Acme.Net_74 logoPath: logo.png_74 outputDirectory: csharp_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/csharp_74 swift:_74 version: 1.0.0_74 projectName: Acme_74 podAuthors: acme.com_74 outputDirectory: swift_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/swift_74 objc:_74 version: 1.0.0_74 podName: AcmeClient_74 authorName: acme.com_74 authorEmail: engineering@acme.com_74 classPrefix: A_74 outputDirectory: objc_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/objc_74 kotlin:_74 version: 1.0.0_74 groupId: com.acme_74 artifactId: acme-kotlin-sdk_74 outputDirectory: kotlin_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/kotlin_74 go:_74 version: 1.0.0_74 packageName: acme_74 outputDirectory: go_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/go_74 php:_74 version: 1.0.0_74 packageName: acme-php_74 outputDirectory: php_74 git:_74 userId: konfig-dev_74 repoId: acme-sdks/tree/main/php