-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
350f40f
commit d278c14
Showing
7 changed files
with
656 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: generator-exec | ||
error-discrimination: | ||
strategy: property | ||
property-name: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
imports: | ||
config: config.yml | ||
types: | ||
BackwardsCompatibleGeneratorConfig: | ||
properties: | ||
dryRun: boolean | ||
irFilepath: string | ||
output: BackwardsCompatibleGeneratorOutputConfig | ||
publish: | ||
type: optional<BackwardsCompatGeneratorPublishConfig> | ||
docs: Deprecated. Use output.mode instead. | ||
workspaceName: string | ||
organization: string | ||
customConfig: unknown | ||
environment: config.GeneratorEnvironment | ||
BackwardsCompatibleGeneratorOutputConfig: | ||
properties: | ||
path: string | ||
mode: BackwardsCompatibleOutputMode | ||
BackwardsCompatibleOutputMode: | ||
union: | ||
publish: BackwardsCompatGeneratorPublishConfig | ||
downloadFiles: {} | ||
github: config.GithubOutputMode | ||
BackwardsCompatGeneratorPublishConfig: | ||
docs: For the TS generators that use strict parsing. | ||
properties: | ||
registries: | ||
type: config.GeneratorRegistriesConfig | ||
docs: Deprecated, use publishTargets instead. | ||
registriesV2: | ||
type: BackwardsCompatibleRegistriesConfigV2 | ||
docs: Deprecated, use publishTargets instead. | ||
publishTarget: | ||
type: optional<BackwardsCompatiblePublishTarget> | ||
docs: Must always be TS for TypeScript | ||
version: string | ||
BackwardsCompatibleRegistriesConfigV2: | ||
docs: For the ts generators that are not backwards compatible. | ||
properties: | ||
maven: config.MavenRegistryConfigV2 | ||
npm: config.NpmRegistryConfigV2 | ||
pypi: config.PypiRegistryConfig | ||
BackwardsCompatiblePublishTarget: | ||
union: | ||
npm: config.NpmRegistryConfigV2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,228 @@ | ||
imports: | ||
logging: logging.yml | ||
types: | ||
GeneratorConfig: | ||
properties: | ||
dryRun: boolean | ||
irFilepath: string | ||
originalReadmeFilepath: optional<string> | ||
license: optional<LicenseConfig> | ||
output: GeneratorOutputConfig | ||
publish: | ||
type: optional<GeneratorPublishConfig> | ||
docs: Deprecated. Use output.mode instead. | ||
workspaceName: string | ||
organization: string | ||
customConfig: unknown | ||
environment: GeneratorEnvironment | ||
whitelabel: boolean | ||
writeUnitTests: boolean | ||
generatePaginatedClients: optional<boolean> | ||
generateOauthClients: boolean | ||
LicenseConfig: | ||
union: | ||
basic: BasicLicense | ||
custom: CustomLicense | ||
BasicLicense: | ||
properties: | ||
id: LicenseId | ||
LicenseId: | ||
enum: | ||
- MIT | ||
- name: apache2 | ||
value: Apache-2.0 | ||
CustomLicense: | ||
properties: | ||
filename: string | ||
GeneratorOutputConfig: | ||
properties: | ||
path: string | ||
snippetFilepath: optional<string> | ||
snippetTemplateFilepath: optional<string> | ||
publishingMetadata: optional<PublishingMetadata> | ||
mode: OutputMode | ||
OutputMode: | ||
union: | ||
publish: GeneratorPublishConfig | ||
downloadFiles: {} | ||
github: GithubOutputMode | ||
GeneratorPublishConfig: | ||
properties: | ||
registries: | ||
type: GeneratorRegistriesConfig | ||
docs: Deprecated, use publishTargets instead. | ||
registriesV2: | ||
type: GeneratorRegistriesConfigV2 | ||
docs: Deprecated, use publishTargets instead. | ||
publishTarget: optional<GeneratorPublishTarget> | ||
version: string | ||
GithubOutputMode: | ||
properties: | ||
version: string | ||
repoUrl: | ||
type: string | ||
docs: A full repo url (i.e. https://github.com/fern-api/fern) | ||
installationToken: | ||
type: optional<string> | ||
docs: > | ||
The token scoped to installing the repository. If not specified, the | ||
generator | ||
should NOT attempt to clone the repository. | ||
publishInfo: optional<GithubPublishInfo> | ||
OutputMetadataAuthor: | ||
properties: | ||
name: string | ||
email: string | ||
OutputMetadata: | ||
properties: | ||
description: optional<string> | ||
authors: optional<list<OutputMetadataAuthor>> | ||
PublishingMetadata: | ||
docs: >- | ||
This should effectively be deprecated in favor of a more specific | ||
configuration per-output mode (pypi, maven, etc.). | ||
properties: | ||
package_description: optional<string> | ||
publisher_email: optional<string> | ||
reference_url: optional<string> | ||
publisher_name: optional<string> | ||
GithubPublishInfo: | ||
union: | ||
npm: NpmGithubPublishInfo | ||
maven: MavenGithubPublishInfo | ||
postman: PostmanGithubPublishInfo | ||
pypi: PypiGithubPublishInfo | ||
rubygems: RubyGemsGithubPublishInfo | ||
nuget: NugetGithubPublishInfo | ||
EnvironmentVariable: string | ||
NpmGithubPublishInfo: | ||
properties: | ||
registryUrl: string | ||
packageName: string | ||
tokenEnvironmentVariable: EnvironmentVariable | ||
shouldGeneratePublishWorkflow: optional<boolean> | ||
MavenCentralSignatureGithubInfo: | ||
properties: | ||
keyIdEnvironmentVariable: EnvironmentVariable | ||
passwordEnvironmentVariable: EnvironmentVariable | ||
secretKeyEnvironmentVariable: EnvironmentVariable | ||
MavenGithubPublishInfo: | ||
properties: | ||
registryUrl: string | ||
coordinate: string | ||
usernameEnvironmentVariable: EnvironmentVariable | ||
passwordEnvironmentVariable: EnvironmentVariable | ||
signature: optional<MavenCentralSignatureGithubInfo> | ||
shouldGeneratePublishWorkflow: optional<boolean> | ||
PostmanGithubPublishInfo: | ||
properties: | ||
apiKeyEnvironmentVariable: EnvironmentVariable | ||
workspaceIdEnvironmentVariable: EnvironmentVariable | ||
PypiMetadata: | ||
extends: OutputMetadata | ||
properties: | ||
keywords: optional<list<string>> | ||
documentationLink: optional<string> | ||
homepageLink: optional<string> | ||
PypiGithubPublishInfo: | ||
properties: | ||
registryUrl: string | ||
packageName: string | ||
usernameEnvironmentVariable: EnvironmentVariable | ||
passwordEnvironmentVariable: EnvironmentVariable | ||
pypiMetadata: optional<PypiMetadata> | ||
shouldGeneratePublishWorkflow: optional<boolean> | ||
RubyGemsGithubPublishInfo: | ||
properties: | ||
registryUrl: string | ||
packageName: string | ||
apiKeyEnvironmentVariable: EnvironmentVariable | ||
shouldGeneratePublishWorkflow: optional<boolean> | ||
NugetGithubPublishInfo: | ||
properties: | ||
registryUrl: string | ||
packageName: string | ||
apiKeyEnvironmentVariable: EnvironmentVariable | ||
shouldGeneratePublishWorkflow: optional<boolean> | ||
GeneratorRegistriesConfig: | ||
properties: | ||
maven: MavenRegistryConfig | ||
npm: NpmRegistryConfig | ||
MavenCentralSignature: | ||
properties: | ||
keyId: string | ||
password: string | ||
secretKey: string | ||
MavenRegistryConfig: | ||
properties: | ||
registryUrl: string | ||
username: string | ||
password: string | ||
group: string | ||
signature: optional<MavenCentralSignature> | ||
NpmRegistryConfig: | ||
properties: | ||
registryUrl: string | ||
token: string | ||
scope: string | ||
GeneratorRegistriesConfigV2: | ||
properties: | ||
maven: MavenRegistryConfigV2 | ||
npm: NpmRegistryConfigV2 | ||
pypi: PypiRegistryConfig | ||
rubygems: RubyGemsRegistryConfig | ||
nuget: NugetRegistryConfig | ||
GeneratorPublishTarget: | ||
union: | ||
maven: MavenRegistryConfigV2 | ||
npm: NpmRegistryConfigV2 | ||
pypi: PypiRegistryConfig | ||
postman: PostmanConfig | ||
rubygems: RubyGemsRegistryConfig | ||
nuget: NugetRegistryConfig | ||
MavenRegistryConfigV2: | ||
properties: | ||
registryUrl: string | ||
username: string | ||
password: string | ||
coordinate: string | ||
signature: optional<MavenCentralSignature> | ||
NpmRegistryConfigV2: | ||
properties: | ||
registryUrl: string | ||
token: string | ||
packageName: string | ||
PypiRegistryConfig: | ||
properties: | ||
registryUrl: string | ||
username: string | ||
password: string | ||
packageName: string | ||
pypiMetadata: optional<PypiMetadata> | ||
RubyGemsRegistryConfig: | ||
properties: | ||
registryUrl: string | ||
apiKey: string | ||
packageName: string | ||
NugetRegistryConfig: | ||
properties: | ||
registryUrl: string | ||
apiKey: string | ||
packageName: string | ||
PostmanConfig: | ||
properties: | ||
apiKey: string | ||
workspaceId: string | ||
GeneratorEnvironment: | ||
union: | ||
local: {} | ||
remote: RemoteGeneratorEnvironment | ||
discriminant: | ||
name: type | ||
value: _type | ||
RemoteGeneratorEnvironment: | ||
properties: | ||
coordinatorUrl: string | ||
coordinatorUrlV2: string | ||
id: logging.TaskId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
types: | ||
TaskId: string | ||
GeneratorUpdate: | ||
union: | ||
init: InitUpdate | ||
initV2: InitUpdateV2 | ||
log: LogUpdate | ||
publishing: | ||
type: PackageCoordinate | ||
key: publishing | ||
published: | ||
type: PackageCoordinate | ||
key: published | ||
exitStatusUpdate: | ||
type: ExitStatusUpdate | ||
key: exitStatusUpdate | ||
discriminant: | ||
name: type | ||
value: _type | ||
InitUpdate: | ||
properties: | ||
packagesToPublish: list<PackageCoordinate> | ||
InitUpdateV2: | ||
properties: | ||
publishingToRegistry: optional<RegistryType> | ||
RegistryType: | ||
enum: | ||
- NPM | ||
- MAVEN | ||
- PYPI | ||
- RUBYGEMS | ||
- NUGET | ||
LogUpdate: | ||
properties: | ||
level: LogLevel | ||
message: string | ||
LogLevel: | ||
enum: | ||
- DEBUG | ||
- INFO | ||
- WARN | ||
- ERROR | ||
PackageCoordinate: | ||
union: | ||
npm: NpmCoordinate | ||
maven: MavenCoordinate | ||
discriminant: | ||
name: type | ||
value: _type | ||
NpmCoordinate: | ||
properties: | ||
name: string | ||
version: string | ||
MavenCoordinate: | ||
properties: | ||
group: string | ||
artifact: string | ||
version: string | ||
ExitStatusUpdate: | ||
union: | ||
successful: SuccessfulStatusUpdate | ||
error: ErrorExitStatusUpdate | ||
discriminant: | ||
name: type | ||
value: _type | ||
SuccessfulStatusUpdate: | ||
properties: | ||
zipFilename: optional<string> | ||
ErrorExitStatusUpdate: | ||
properties: | ||
message: string | ||
service: | ||
auth: false | ||
base-path: /api/generator-logging | ||
endpoints: | ||
sendUpdate: | ||
path: /{taskId} | ||
path-parameters: | ||
taskId: TaskId | ||
request: | ||
body: | ||
type: list<GeneratorUpdate> |
Oops, something went wrong.