diff --git a/packages/cli/cli/package.json b/packages/cli/cli/package.json index 85821646514..884a09e3349 100644 --- a/packages/cli/cli/package.json +++ b/packages/cli/cli/package.json @@ -46,6 +46,7 @@ "@fern-api/core-utils": "workspace:*", "@fern-api/docs-preview": "workspace:*", "@fern-api/docs-validator": "workspace:*", + "@fern-api/dynamic-snippets": "workspace:*", "@fern-api/fern-definition-formatter": "workspace:*", "@fern-api/fern-definition-schema": "workspace:*", "@fern-api/fern-definition-validator": "workspace:*", diff --git a/packages/cli/cli/src/cli.ts b/packages/cli/cli/src/cli.ts index 29305edae24..fff9210afa6 100644 --- a/packages/cli/cli/src/cli.ts +++ b/packages/cli/cli/src/cli.ts @@ -43,6 +43,7 @@ import { FERN_CWD_ENV_VAR } from "./cwd"; import { rerunFernCliAtVersion } from "./rerunFernCliAtVersion"; import { isURL } from "./utils/isUrl"; import { generateJsonschemaForWorkspaces } from "./commands/jsonschema/generateJsonschemaForWorkspace"; +import { generateDynamicIrForWorkspaces } from "./commands/generate-dynamic-ir/generateDynamicIrForWorkspaces"; import { setGlobalDispatcher, Agent } from "undici"; setGlobalDispatcher(new Agent({ connect: { timeout: 5_000 } })); @@ -142,6 +143,7 @@ async function tryRunCli(cliContext: CliContext) { addIrCommand(cli, cliContext); addFdrCommand(cli, cliContext); addOpenAPIIrCommand(cli, cliContext); + addDynamicIrCommand(cli, cliContext); addValidateCommand(cli, cliContext); addRegisterCommand(cli, cliContext); addRegisterV2Command(cli, cliContext); @@ -514,6 +516,54 @@ function addOpenAPIIrCommand(cli: Argv, cliContext: CliContext ); } +function addDynamicIrCommand(cli: Argv, cliContext: CliContext) { + cli.command( + "dynamic-ir ", + false, + (yargs) => + yargs + .positional("path-to-output", { + type: "string", + description: "Path to write intermediate representation (IR)", + demandOption: true + }) + .option("api", { + string: true, + description: "Only run the command on the provided API" + }) + .option("version", { + string: true, + description: "The version of IR to produce" + }) + .option("language", { + choices: Object.values(generatorsYml.GenerationLanguage), + description: "Generate IR for a particular language" + }) + .option("audience", { + type: "array", + string: true, + default: new Array(), + description: "Filter the IR for certain audiences" + }), + async (argv) => { + await generateDynamicIrForWorkspaces({ + project: await loadProjectAndRegisterWorkspacesWithContext(cliContext, { + commandLineApiWorkspace: argv.api, + defaultToAllApiWorkspaces: false, + sdkLanguage: argv.language + }), + irFilepath: resolve(cwd(), argv.pathToOutput), + cliContext, + generationLanguage: argv.language, + audiences: { type: "all" }, + version: argv.version, + keywords: undefined, + smartCasing: false + }); + } + ); +} + function addFdrCommand(cli: Argv, cliContext: CliContext) { cli.command( "fdr ", diff --git a/packages/cli/cli/src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts b/packages/cli/cli/src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts new file mode 100644 index 00000000000..f4bfa36b9c1 --- /dev/null +++ b/packages/cli/cli/src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts @@ -0,0 +1,55 @@ +import { Audiences, generatorsYml } from "@fern-api/configuration"; +import { AbsoluteFilePath, streamObjectToFile, stringifyLargeObject } from "@fern-api/fs-utils"; +import { Project } from "@fern-api/project-loader"; +import path from "path"; +import { CliContext } from "../../cli-context/CliContext"; +import { generateIrForFernWorkspace } from "../generate-ir/generateIrForFernWorkspace"; +import { convertIrToDynamicSnippetsIr } from "@fern-api/dynamic-snippets"; + +export async function generateDynamicIrForWorkspaces({ + project, + irFilepath, + cliContext, + generationLanguage, + audiences, + version, + keywords, + smartCasing +}: { + project: Project; + irFilepath: AbsoluteFilePath; + cliContext: CliContext; + generationLanguage: generatorsYml.GenerationLanguage | undefined; + audiences: Audiences; + version: string | undefined; + keywords: string[] | undefined; + smartCasing: boolean; +}): Promise { + await Promise.all( + project.apiWorkspaces.map(async (workspace) => { + await cliContext.runTaskForWorkspace(workspace, async (context) => { + cliContext.logger.info(`Generating IR for workspace ${workspace.workspaceName ?? "api"}`); + const fernWorkspace = await workspace.toFernWorkspace({ context }); + + const intermediateRepresentation = await generateIrForFernWorkspace({ + workspace: fernWorkspace, + context, + generationLanguage, + keywords, + smartCasing, + disableExamples: false, + audiences, + readme: undefined + }); + + const dynamicIntermediateRepresentation = await convertIrToDynamicSnippetsIr( + intermediateRepresentation + ); + + const irOutputFilePath = path.resolve(irFilepath); + await streamObjectToFile(AbsoluteFilePath.of(irOutputFilePath), dynamicIntermediateRepresentation); + context.logger.info(`Wrote IR to ${irOutputFilePath}`); + }); + }) + ); +} diff --git a/packages/cli/cli/tsconfig.json b/packages/cli/cli/tsconfig.json index 04d471d3230..2a24eca7ebc 100644 --- a/packages/cli/cli/tsconfig.json +++ b/packages/cli/cli/tsconfig.json @@ -11,6 +11,7 @@ { "path": "../auth" }, { "path": "../configuration" }, { "path": "../docs-preview" }, + { "path": "../dynamic-snippets" }, { "path": "../generation/ir-generator" }, { "path": "../generation/ir-migrations" }, { "path": "../generation/local-generation/local-workspace-runner" }, diff --git a/packages/cli/dynamic-snippets/.depcheckrc.json b/packages/cli/dynamic-snippets/.depcheckrc.json new file mode 100644 index 00000000000..a3a4f43188c --- /dev/null +++ b/packages/cli/dynamic-snippets/.depcheckrc.json @@ -0,0 +1,10 @@ +{ + "ignores": [ + "@types/jest", + "globals", + "@types/node" + ], + "ignore-patterns": [ + "lib" + ] +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/.prettierrc.cjs b/packages/cli/dynamic-snippets/.prettierrc.cjs new file mode 100644 index 00000000000..39cf0d0b8c9 --- /dev/null +++ b/packages/cli/dynamic-snippets/.prettierrc.cjs @@ -0,0 +1 @@ +module.exports = require("../../../.prettierrc.json"); diff --git a/packages/cli/dynamic-snippets/package.json b/packages/cli/dynamic-snippets/package.json new file mode 100644 index 00000000000..94598e5c1af --- /dev/null +++ b/packages/cli/dynamic-snippets/package.json @@ -0,0 +1,50 @@ +{ + "name": "@fern-api/dynamic-snippets", + "version": "0.0.0", + "repository": { + "type": "git", + "url": "https://github.com/fern-api/fern.git", + "directory": "packages/cli/dynamic-snippets" + }, + "private": true, + "files": [ + "lib" + ], + "type": "module", + "source": "src/index.ts", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "sideEffects": false, + "scripts": { + "clean": "rm -rf ./lib && tsc --build --clean", + "compile": "tsc --build", + "test": "vitest --run", + "test:update": "vitest --run -u", + "lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore", + "lint:eslint:fix": "yarn lint:eslint --fix", + "format": "prettier --write --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "format:check": "prettier --check --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", + "organize-imports": "organize-imports-cli tsconfig.json", + "depcheck": "depcheck" + }, + "dependencies": { + "@fern-api/configuration": "workspace:*", + "@fern-api/core-utils": "workspace:*", + "@fern-api/fs-utils": "workspace:*", + "@fern-api/ir-generator": "workspace:*", + "@fern-api/ir-sdk": "workspace:*", + "@fern-api/project-loader": "workspace:*", + "@fern-api/task-context": "workspace:*", + "@fern-api/workspace-loader": "workspace:*", + "url-join": "^5.0.0" + }, + "devDependencies": { + "@types/node": "18.7.18", + "depcheck": "^1.4.6", + "eslint": "^8.56.0", + "globals": "link:@types/vitest/globals", + "organize-imports-cli": "^0.10.0", + "typescript": "4.6.4", + "vitest": "^2.0.5" + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/DynamicSnippetsConverter.ts b/packages/cli/dynamic-snippets/src/DynamicSnippetsConverter.ts new file mode 100644 index 00000000000..ddf6be00a74 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/DynamicSnippetsConverter.ts @@ -0,0 +1,604 @@ +import { assertNever } from "@fern-api/core-utils"; +import { + AliasTypeDeclaration, + ApiAuth, + ContainerType, + DeclaredTypeName, + dynamic as DynamicSnippets, + EndpointId, + EnumTypeDeclaration, + FernFilepath, + FileProperty, + FileUploadRequestProperty, + HttpEndpoint, + HttpRequestBody, + IntermediateRepresentation, + Literal, + Name, + NameAndWireValue, + NamedType, + ObjectProperty, + ObjectTypeDeclaration, + PathParameter, + PrimitiveType, + SdkRequestBodyType, + SdkRequestWrapper, + SingleUnionTypeProperties, + SingleUnionTypeProperty, + TypeDeclaration, + TypeId, + TypeReference, + UndiscriminatedUnionTypeDeclaration, + UnionTypeDeclaration +} from "@fern-api/ir-sdk"; +import urlJoin from "url-join"; +import { Version } from "./version"; + +interface EndpointWithFilepath extends HttpEndpoint { + fernFilepath: FernFilepath; +} + +export declare namespace DynamicSnippetsConverter { + interface Args { + ir: IntermediateRepresentation; + } +} + +export class DynamicSnippetsConverter { + private readonly auth: DynamicSnippets.Auth | undefined; + + constructor(private readonly ir: IntermediateRepresentation) { + this.auth = this.convertAuth(ir.auth); + } + + public convert(): DynamicSnippets.DynamicIntermediateRepresentation { + return { + version: Version, + types: this.convertNamedTypes(), + headers: this.convertHeaders(), + endpoints: this.convertEndpoints() + }; + } + + private convertNamedTypes(): Record { + return Object.fromEntries( + Object.entries(this.ir.types).map(([typeId, typeDeclaration]) => [ + typeId, + this.convertTypeDeclaration(typeDeclaration) + ]) + ); + } + + private convertHeaders(): DynamicSnippets.NamedParameter[] { + return this.convertWireValueParameters({ wireValueParameters: this.ir.headers }); + } + + private convertEndpoints(): Record { + const endpoints = this.getAllHttpEndpoints(); + return Object.fromEntries(endpoints.map((endpoint) => [endpoint.id, this.convertEndpoint(endpoint)])); + } + + private convertEndpoint(endpoint: EndpointWithFilepath): DynamicSnippets.Endpoint { + return { + auth: this.auth, + declaration: this.convertDeclaration({ name: endpoint.name, fernFilepath: endpoint.fernFilepath }), + location: this.convertEndpointLocation({ endpoint }), + request: this.convertRequest({ endpoint }), + response: DynamicSnippets.Response.json() + }; + } + + private convertRequest({ endpoint }: { endpoint: EndpointWithFilepath }): DynamicSnippets.Request { + const pathParameters = this.convertPathParameters({ pathParameters: endpoint.allPathParameters }); + if (endpoint.sdkRequest == null && endpoint.requestBody == null) { + return DynamicSnippets.Request.body({ pathParameters, body: undefined }); + } + if (endpoint.sdkRequest == null) { + throw new Error(`Internal error; endpoint "${endpoint.id}" has a request body but no SDK request`); + } + switch (endpoint.sdkRequest.shape.type) { + case "justRequestBody": + return DynamicSnippets.Request.body({ + pathParameters, + body: this.convertReferencedRequestBodyType({ body: endpoint.sdkRequest.shape.value }) + }); + case "wrapper": + return this.convertInlinedRequest({ + fernFilepath: endpoint.fernFilepath, + wrapper: endpoint.sdkRequest.shape, + pathParameters, + queryParameters: this.convertWireValueParameters({ wireValueParameters: endpoint.queryParameters }), + headers: this.convertWireValueParameters({ wireValueParameters: endpoint.headers }), + body: endpoint.requestBody + }); + default: + assertNever(endpoint.sdkRequest.shape); + } + } + + private convertReferencedRequestBodyType({ + body + }: { + body: SdkRequestBodyType; + }): DynamicSnippets.ReferencedRequestBodyType { + switch (body.type) { + case "bytes": + return DynamicSnippets.ReferencedRequestBodyType.bytes(); + case "typeReference": + return DynamicSnippets.ReferencedRequestBodyType.typeReference( + this.convertTypeReference(body.requestBodyType) + ); + default: + assertNever(body); + } + } + + private convertInlinedRequest({ + fernFilepath, + wrapper, + pathParameters, + queryParameters, + headers, + body + }: { + fernFilepath: FernFilepath; + wrapper: SdkRequestWrapper; + pathParameters: DynamicSnippets.NamedParameter[]; + queryParameters: DynamicSnippets.NamedParameter[]; + headers: DynamicSnippets.NamedParameter[]; + body: HttpRequestBody | undefined; + }): DynamicSnippets.Request { + return DynamicSnippets.Request.inlined({ + declaration: this.convertDeclaration({ name: wrapper.wrapperName, fernFilepath }), + pathParameters, + queryParameters, + headers, + body: body != null ? this.convertInlinedRequestBody({ wrapper, body }) : undefined + }); + } + + private convertInlinedRequestBody({ + wrapper, + body + }: { + wrapper: SdkRequestWrapper; + body: HttpRequestBody; + }): DynamicSnippets.InlinedRequestBody { + switch (body.type) { + case "inlinedRequestBody": { + const properties = [...(body.extendedProperties ?? []), ...body.properties]; + return DynamicSnippets.InlinedRequestBody.properties( + this.convertWireValueParameters({ wireValueParameters: properties }) + ); + } + case "reference": + return DynamicSnippets.InlinedRequestBody.referenced({ + bodyKey: wrapper.bodyKey, + bodyType: DynamicSnippets.ReferencedRequestBodyType.typeReference( + this.convertTypeReference(body.requestBodyType) + ) + }); + case "bytes": + return DynamicSnippets.InlinedRequestBody.referenced({ + bodyKey: wrapper.bodyKey, + bodyType: DynamicSnippets.ReferencedRequestBodyType.bytes() + }); + case "fileUpload": + return this.convertFileUploadRequestBody({ properties: body.properties }); + default: + assertNever(body); + } + } + + private convertFileUploadRequestBody({ + properties + }: { + properties: FileUploadRequestProperty[]; + }): DynamicSnippets.InlinedRequestBody { + return DynamicSnippets.InlinedRequestBody.fileUpload({ + properties: this.convertFileUploadRequestBodyProperties({ properties }) + }); + } + + private convertFileUploadRequestBodyProperties({ + properties + }: { + properties: FileUploadRequestProperty[]; + }): DynamicSnippets.FileUploadRequestBodyProperty[] { + return properties.map((property) => { + switch (property.type) { + case "file": + return this.convertFileUploadRequestBodyFileProperty({ fileProperty: property.value }); + case "bodyProperty": + return DynamicSnippets.FileUploadRequestBodyProperty.bodyProperty({ + name: property.name, + typeReference: this.convertTypeReference(property.valueType) + }); + default: + assertNever(property); + } + }); + } + + private convertFileUploadRequestBodyFileProperty({ + fileProperty + }: { + fileProperty: FileProperty; + }): DynamicSnippets.FileUploadRequestBodyProperty { + switch (fileProperty.type) { + case "file": + return DynamicSnippets.FileUploadRequestBodyProperty.file(fileProperty.key); + case "fileArray": + return DynamicSnippets.FileUploadRequestBodyProperty.fileArray(fileProperty.key); + default: + assertNever(fileProperty); + } + } + + private convertPathParameters({ + pathParameters + }: { + pathParameters: PathParameter[]; + }): DynamicSnippets.NamedParameter[] { + return pathParameters.map((pathParameter) => ({ + name: { + name: pathParameter.name, + wireValue: pathParameter.name.originalName + }, + typeReference: this.convertTypeReference(pathParameter.valueType) + })); + } + + private convertWireValueParameters({ + wireValueParameters + }: { + wireValueParameters: { name: NameAndWireValue; valueType: TypeReference }[]; + }): DynamicSnippets.NamedParameter[] { + return wireValueParameters.map((parameter) => ({ + name: { + name: parameter.name.name, + wireValue: parameter.name.wireValue + }, + typeReference: this.convertTypeReference(parameter.valueType) + })); + } + + private convertTypeReference(typeReference: TypeReference): DynamicSnippets.TypeReference { + switch (typeReference.type) { + case "container": + return this.convertContainerType(typeReference.container); + case "named": + return this.convertNamedType(typeReference); + case "primitive": + return this.convertPrimitiveType(typeReference.primitive); + case "unknown": + return this.convertUnknownType(); + default: + assertNever(typeReference); + } + } + + private convertContainerType(container: ContainerType): DynamicSnippets.TypeReference { + switch (container.type) { + case "list": + return DynamicSnippets.TypeReference.list(this.convertTypeReference(container.list)); + case "map": + return DynamicSnippets.TypeReference.map({ + key: this.convertTypeReference(container.keyType), + value: this.convertTypeReference(container.valueType) + }); + case "optional": + return DynamicSnippets.TypeReference.optional(this.convertTypeReference(container.optional)); + case "set": + return DynamicSnippets.TypeReference.set(this.convertTypeReference(container.set)); + case "literal": + return DynamicSnippets.TypeReference.literal(this.convertLiteral(container.literal)); + default: + assertNever(container); + } + } + + private convertNamedType(named: NamedType): DynamicSnippets.TypeReference { + return DynamicSnippets.TypeReference.named(named.typeId); + } + + private convertTypeDeclaration(typeDeclaration: TypeDeclaration): DynamicSnippets.NamedType { + const declaration = this.convertDeclaration(typeDeclaration.name); + switch (typeDeclaration.shape.type) { + case "alias": + return this.convertAlias({ declaration, alias: typeDeclaration.shape }); + case "enum": + return this.convertEnum({ declaration, enum_: typeDeclaration.shape }); + case "object": + return this.convertObject({ declaration, object: typeDeclaration.shape }); + case "union": + return this.convertDiscriminatedUnion({ declaration, union: typeDeclaration.shape }); + case "undiscriminatedUnion": + return this.convertUndiscriminatedUnion({ declaration, union: typeDeclaration.shape }); + default: + assertNever(typeDeclaration.shape); + } + } + + private convertAlias({ + declaration, + alias + }: { + declaration: DynamicSnippets.Declaration; + alias: AliasTypeDeclaration; + }): DynamicSnippets.NamedType { + return DynamicSnippets.NamedType.alias({ + declaration, + typeReference: this.convertTypeReference(alias.aliasOf) + }); + } + + private convertEnum({ + declaration, + enum_ + }: { + declaration: DynamicSnippets.Declaration; + enum_: EnumTypeDeclaration; + }): DynamicSnippets.NamedType { + return DynamicSnippets.NamedType.enum({ + declaration, + values: enum_.values.map((value) => value.name) + }); + } + + private convertObject({ + declaration, + object + }: { + declaration: DynamicSnippets.Declaration; + object: ObjectTypeDeclaration; + }): DynamicSnippets.NamedType { + const properties = [...(object.extendedProperties ?? []), ...object.properties]; + return this.convertObjectProperties({ + declaration, + properties + }); + } + + private convertObjectProperties({ + declaration, + properties + }: { + declaration: DynamicSnippets.Declaration; + properties: ObjectProperty[]; + }): DynamicSnippets.NamedType { + return DynamicSnippets.NamedType.object({ + declaration, + properties: this.convertWireValueParameters({ wireValueParameters: properties }) + }); + } + + private convertDiscriminatedUnion({ + declaration, + union + }: { + declaration: DynamicSnippets.Declaration; + union: UnionTypeDeclaration; + }): DynamicSnippets.NamedType { + const inheritedProperties = [...this.resolveProperties(union.extends), ...union.baseProperties]; + return DynamicSnippets.NamedType.discriminatedUnion({ + declaration, + discriminant: union.discriminant, + types: Object.fromEntries( + union.types.map((unionType) => [ + unionType.discriminantValue.wireValue, + this.convertDiscriminatedUnionType({ + inheritedProperties, + discriminantValue: unionType.discriminantValue, + singleUnionTypeProperties: unionType.shape + }) + ]) + ) + }); + } + + private convertDiscriminatedUnionType({ + inheritedProperties, + discriminantValue, + singleUnionTypeProperties + }: { + inheritedProperties: ObjectProperty[]; + discriminantValue: NameAndWireValue; + singleUnionTypeProperties: SingleUnionTypeProperties; + }): DynamicSnippets.SingleDiscriminatedUnionType { + switch (singleUnionTypeProperties.propertiesType) { + case "samePropertiesAsObject": + return this.convertDiscriminatedUnionTypeObject({ + inheritedProperties, + discriminantValue, + declaredTypeName: singleUnionTypeProperties + }); + case "singleProperty": + return this.convertDiscriminatedUnionTypeSingleProperty({ + inheritedProperties, + discriminantValue, + singleUnionTypeProperty: singleUnionTypeProperties + }); + case "noProperties": + return this.convertDiscriminatedUnionTypeNoProperties({ + inheritedProperties, + discriminantValue + }); + default: + assertNever(singleUnionTypeProperties); + } + } + + private convertDiscriminatedUnionTypeObject({ + inheritedProperties, + discriminantValue, + declaredTypeName + }: { + inheritedProperties: ObjectProperty[]; + discriminantValue: NameAndWireValue; + declaredTypeName: DeclaredTypeName; + }): DynamicSnippets.SingleDiscriminatedUnionType { + const properties = [...inheritedProperties, ...this.resolveProperties([declaredTypeName])]; + return DynamicSnippets.SingleDiscriminatedUnionType.samePropertiesAsObject({ + typeId: declaredTypeName.typeId, + discriminantValue, + properties: this.convertWireValueParameters({ wireValueParameters: properties }) + }); + } + + private convertDiscriminatedUnionTypeSingleProperty({ + inheritedProperties, + discriminantValue, + singleUnionTypeProperty + }: { + inheritedProperties: ObjectProperty[]; + discriminantValue: NameAndWireValue; + singleUnionTypeProperty: SingleUnionTypeProperty; + }): DynamicSnippets.SingleDiscriminatedUnionType { + return DynamicSnippets.SingleDiscriminatedUnionType.singleProperty({ + typeReference: this.convertTypeReference(singleUnionTypeProperty.type), + discriminantValue, + properties: + inheritedProperties.length > 0 + ? this.convertWireValueParameters({ wireValueParameters: inheritedProperties }) + : undefined + }); + } + + private convertDiscriminatedUnionTypeNoProperties({ + inheritedProperties, + discriminantValue + }: { + inheritedProperties: ObjectProperty[]; + discriminantValue: NameAndWireValue; + }): DynamicSnippets.SingleDiscriminatedUnionType { + return DynamicSnippets.SingleDiscriminatedUnionType.noProperties({ + discriminantValue, + properties: + inheritedProperties.length > 0 + ? this.convertWireValueParameters({ wireValueParameters: inheritedProperties }) + : undefined + }); + } + + private convertUndiscriminatedUnion({ + declaration, + union + }: { + declaration: DynamicSnippets.Declaration; + union: UndiscriminatedUnionTypeDeclaration; + }): DynamicSnippets.NamedType { + return DynamicSnippets.NamedType.undiscriminatedUnion({ + declaration, + types: union.members.map((member) => this.convertTypeReference(member.type)) + }); + } + + private convertLiteral(literal: Literal): DynamicSnippets.LiteralType { + switch (literal.type) { + case "boolean": + return DynamicSnippets.LiteralType.boolean(literal.boolean); + case "string": + return DynamicSnippets.LiteralType.string(literal.string); + default: + assertNever(literal); + } + } + + private convertPrimitiveType(primitive: PrimitiveType): DynamicSnippets.TypeReference { + return DynamicSnippets.TypeReference.primitive(primitive.v1); + } + + private convertUnknownType(): DynamicSnippets.TypeReference { + return DynamicSnippets.TypeReference.unknown(); + } + + private convertAuth(auth: ApiAuth): DynamicSnippets.Auth | undefined { + if (auth.schemes[0] == null) { + return undefined; + } + const scheme = auth.schemes[0]; + switch (scheme.type) { + case "basic": + return DynamicSnippets.Auth.basic(scheme); + case "bearer": + return DynamicSnippets.Auth.bearer(scheme); + case "header": + return DynamicSnippets.Auth.header({ + header: { + name: scheme.name, + typeReference: this.convertTypeReference(scheme.valueType) + } + }); + case "oauth": + // TODO: Support OAuth. + return undefined; + default: + assertNever(scheme); + } + } + + private convertDeclaration({ + name, + fernFilepath + }: { + name: Name; + fernFilepath: FernFilepath; + }): DynamicSnippets.Declaration { + return { + name, + fernFilepath + }; + } + + private convertEndpointLocation({ endpoint }: { endpoint: HttpEndpoint }): DynamicSnippets.EndpointLocation { + return { + method: endpoint.method, + path: this.getFullPathForEndpoint(endpoint) + }; + } + + private getAllHttpEndpoints(): EndpointWithFilepath[] { + return Object.values(this.ir.services).flatMap((service) => + service.endpoints.map((endpoint) => ({ + ...endpoint, + fernFilepath: service.name.fernFilepath + })) + ); + } + + private resolveProperties(declaredTypeNames: DeclaredTypeName[]): ObjectProperty[] { + const properties: ObjectProperty[] = []; + for (const declaredTypeName of declaredTypeNames) { + const typeDeclaration = this.resolveObjectTypeOrThrow(declaredTypeName.typeId); + properties.push(...this.resolveProperties(typeDeclaration.extends)); + properties.push(...typeDeclaration.properties); + } + return Object.values(properties); + } + + private resolveObjectTypeOrThrow(typeId: TypeId): ObjectTypeDeclaration { + const typeDeclaration = this.ir.types[typeId]; + if (typeDeclaration == null) { + throw new Error(`Internal error; type "${typeId}" not found`); + } + if (typeDeclaration.shape.type !== "object") { + throw new Error(`Internal error; type "${typeId}" is not an object`); + } + return typeDeclaration.shape; + } + + private getFullPathForEndpoint(endpoint: HttpEndpoint): string { + let url = ""; + if (endpoint.fullPath.head.length > 0) { + url = urlJoin(url, endpoint.fullPath.head); + } + for (const part of endpoint.fullPath.parts) { + url = urlJoin(url, "{" + part.pathParameter + "}"); + if (part.tail.length > 0) { + url = urlJoin(url, part.tail); + } + } + return url.startsWith("/") ? url : `/${url}`; + } +} diff --git a/packages/cli/dynamic-snippets/src/__test__/DynamicSnippetsConverter.test.ts b/packages/cli/dynamic-snippets/src/__test__/DynamicSnippetsConverter.test.ts new file mode 100644 index 00000000000..2e85bdc6ba6 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/DynamicSnippetsConverter.test.ts @@ -0,0 +1,31 @@ +import { AbsoluteFilePath, join, RelativeFilePath } from "@fern-api/fs-utils"; +import { loadApis } from "@fern-api/project-loader"; +import { createMockTaskContext } from "@fern-api/task-context"; +import path from "path"; +import { generateAndSnapshotDynamicIR } from "./generateAndSnapshotDynamicIR"; + +// eslint-disable-next-line @typescript-eslint/no-misused-promises +describe("test definitions", async () => { + const TEST_DEFINITIONS_DIR = path.join(__dirname, "../../../../../test-definitions"); + const apiWorkspaces = await loadApis({ + fernDirectory: join(AbsoluteFilePath.of(TEST_DEFINITIONS_DIR), RelativeFilePath.of("fern")), + context: createMockTaskContext(), + cliVersion: "0.0.0", + cliName: "fern", + commandLineApiWorkspace: undefined, + defaultToAllApiWorkspaces: true + }); + + await Promise.all( + apiWorkspaces.map(async (workspace) => { + it(`${workspace.workspaceName}`, async () => { + await generateAndSnapshotDynamicIR({ + absolutePathToIr: AbsoluteFilePath.of(path.join(__dirname, "test-definitions")), + workspace, + audiences: { type: "all" }, + workspaceName: workspace.workspaceName ?? "" + }); + }); + }) + ); +}); diff --git a/packages/cli/dynamic-snippets/src/__test__/generateAndSnapshotDynamicIR.ts b/packages/cli/dynamic-snippets/src/__test__/generateAndSnapshotDynamicIR.ts new file mode 100644 index 00000000000..629bc330f5b --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/generateAndSnapshotDynamicIR.ts @@ -0,0 +1,52 @@ +import { Audiences } from "@fern-api/configuration"; +import { AbsoluteFilePath, join, RelativeFilePath, stringifyLargeObject } from "@fern-api/fs-utils"; +import { serialization as IrSerialization } from "@fern-api/ir-sdk"; +import { createMockTaskContext } from "@fern-api/task-context"; +import { AbstractAPIWorkspace } from "@fern-api/workspace-loader"; +import { writeFile } from "fs/promises"; +import { generateIntermediateRepresentation } from "@fern-api/ir-generator"; +import { convertIrToDynamicSnippetsIr } from "../convertIrToDynamicSnippetsIr"; + +export async function generateAndSnapshotDynamicIR({ + workspace, + workspaceName, + audiences, + absolutePathToIr +}: { + workspace: AbstractAPIWorkspace; + workspaceName: string; + absolutePathToIr: AbsoluteFilePath; + audiences: Audiences; +}): Promise { + const context = createMockTaskContext(); + const fernWorkspace = await workspace.toFernWorkspace({ + context + }); + + const intermediateRepresentation = await generateIntermediateRepresentation({ + workspace: fernWorkspace, + generationLanguage: undefined, + audiences, + keywords: undefined, + smartCasing: true, + disableExamples: false, + readme: undefined, + version: undefined, + packageName: undefined, + context + }); + + const dynamicIntermediateRepresentation = await convertIrToDynamicSnippetsIr(intermediateRepresentation); + + const dynamicIntermediateRepresentationJson = IrSerialization.dynamic.DynamicIntermediateRepresentation.jsonOrThrow( + dynamicIntermediateRepresentation, + { + unrecognizedObjectKeys: "strip" + } + ); + + await writeFile( + join(AbsoluteFilePath.of(absolutePathToIr), RelativeFilePath.of(`${workspaceName}.json`)), + await stringifyLargeObject(dynamicIntermediateRepresentationJson, { pretty: true }) + ); +} diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias-extends.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias-extends.json new file mode 100644 index 00000000000..ad90cd567d0 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias-extends.json @@ -0,0 +1,316 @@ +{ + "version": "1.0.0", + "types": { + "type_:AliasType": { + "type": "alias", + "declaration": { + "name": { + "originalName": "AliasType", + "camelCase": { + "unsafeName": "aliasType", + "safeName": "aliasType" + }, + "snakeCase": { + "unsafeName": "alias_type", + "safeName": "alias_type" + }, + "screamingSnakeCase": { + "unsafeName": "ALIAS_TYPE", + "safeName": "ALIAS_TYPE" + }, + "pascalCase": { + "unsafeName": "AliasType", + "safeName": "AliasType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "named", + "value": "type_:Parent" + } + }, + "type_:Parent": { + "type": "object", + "declaration": { + "name": { + "originalName": "Parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "wireValue": "parent" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Child": { + "type": "object", + "declaration": { + "name": { + "originalName": "Child", + "camelCase": { + "unsafeName": "child", + "safeName": "child" + }, + "snakeCase": { + "unsafeName": "child", + "safeName": "child" + }, + "screamingSnakeCase": { + "unsafeName": "CHILD", + "safeName": "CHILD" + }, + "pascalCase": { + "unsafeName": "Child", + "safeName": "Child" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "wireValue": "parent" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "child", + "camelCase": { + "unsafeName": "child", + "safeName": "child" + }, + "snakeCase": { + "unsafeName": "child", + "safeName": "child" + }, + "screamingSnakeCase": { + "unsafeName": "CHILD", + "safeName": "CHILD" + }, + "pascalCase": { + "unsafeName": "Child", + "safeName": "Child" + } + }, + "wireValue": "child" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.extendedInlineRequestBody": { + "auth": null, + "declaration": { + "name": { + "originalName": "extendedInlineRequestBody", + "camelCase": { + "unsafeName": "extendedInlineRequestBody", + "safeName": "extendedInlineRequestBody" + }, + "snakeCase": { + "unsafeName": "extended_inline_request_body", + "safeName": "extended_inline_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "EXTENDED_INLINE_REQUEST_BODY", + "safeName": "EXTENDED_INLINE_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "ExtendedInlineRequestBody", + "safeName": "ExtendedInlineRequestBody" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/extends/extended-inline-request-body" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "InlinedChildRequest", + "camelCase": { + "unsafeName": "inlinedChildRequest", + "safeName": "inlinedChildRequest" + }, + "snakeCase": { + "unsafeName": "inlined_child_request", + "safeName": "inlined_child_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_CHILD_REQUEST", + "safeName": "INLINED_CHILD_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedChildRequest", + "safeName": "InlinedChildRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "wireValue": "parent" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "child", + "camelCase": { + "unsafeName": "child", + "safeName": "child" + }, + "snakeCase": { + "unsafeName": "child", + "safeName": "child" + }, + "screamingSnakeCase": { + "unsafeName": "CHILD", + "safeName": "CHILD" + }, + "pascalCase": { + "unsafeName": "Child", + "safeName": "Child" + } + }, + "wireValue": "child" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias.json new file mode 100644 index 00000000000..5a339b22bf6 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias.json @@ -0,0 +1,231 @@ +{ + "version": "1.0.0", + "types": { + "type_:TypeId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TypeId", + "camelCase": { + "unsafeName": "typeID", + "safeName": "typeID" + }, + "snakeCase": { + "unsafeName": "type_id", + "safeName": "type_id" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE_ID", + "safeName": "TYPE_ID" + }, + "pascalCase": { + "unsafeName": "TypeID", + "safeName": "TypeID" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_:Type": { + "type": "object", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:TypeId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Object": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + } + }, + "headers": [], + "endpoints": { + "endpoint_.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/{typeId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "typeId", + "camelCase": { + "unsafeName": "typeID", + "safeName": "typeID" + }, + "snakeCase": { + "unsafeName": "type_id", + "safeName": "type_id" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE_ID", + "safeName": "TYPE_ID" + }, + "pascalCase": { + "unsafeName": "TypeID", + "safeName": "TypeID" + } + }, + "wireValue": "typeId" + }, + "typeReference": { + "_type": "named", + "value": "type_:TypeId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/any-auth.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/any-auth.json new file mode 100644 index 00000000000..a1ed0743da5 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/any-auth.json @@ -0,0 +1,708 @@ +{ + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getToken": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getToken", + "camelCase": { + "unsafeName": "getToken", + "safeName": "getToken" + }, + "snakeCase": { + "unsafeName": "get_token", + "safeName": "get_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN", + "safeName": "GET_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetToken", + "safeName": "GetToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user.get": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/api-wide-base-path.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/api-wide-base-path.json new file mode 100644 index 00000000000..af728a79196 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/api-wide-base-path.json @@ -0,0 +1,199 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/test/{pathParam}/{serviceParam}/{endpointParam}/{resourceParam}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "pathParam", + "camelCase": { + "unsafeName": "pathParam", + "safeName": "pathParam" + }, + "snakeCase": { + "unsafeName": "path_param", + "safeName": "path_param" + }, + "screamingSnakeCase": { + "unsafeName": "PATH_PARAM", + "safeName": "PATH_PARAM" + }, + "pascalCase": { + "unsafeName": "PathParam", + "safeName": "PathParam" + } + }, + "wireValue": "pathParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "resourceParam", + "camelCase": { + "unsafeName": "resourceParam", + "safeName": "resourceParam" + }, + "snakeCase": { + "unsafeName": "resource_param", + "safeName": "resource_param" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_PARAM", + "safeName": "RESOURCE_PARAM" + }, + "pascalCase": { + "unsafeName": "ResourceParam", + "safeName": "ResourceParam" + } + }, + "wireValue": "resourceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "endpointParam", + "camelCase": { + "unsafeName": "endpointParam", + "safeName": "endpointParam" + }, + "snakeCase": { + "unsafeName": "endpoint_param", + "safeName": "endpoint_param" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT_PARAM", + "safeName": "ENDPOINT_PARAM" + }, + "pascalCase": { + "unsafeName": "EndpointParam", + "safeName": "EndpointParam" + } + }, + "wireValue": "endpointParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/audiences.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/audiences.json new file mode 100644 index 00000000000..fd60206a043 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/audiences.json @@ -0,0 +1,1404 @@ +{ + "version": "1.0.0", + "types": { + "type_commons:Imported": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_folder-a/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-b/common:Foo" + } + } + } + ] + }, + "type_folder-b/common:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-c/common:FolderCFoo" + } + } + } + ] + }, + "type_folder-c/common:FolderCFoo": { + "type": "object", + "declaration": { + "name": { + "originalName": "FolderCFoo", + "camelCase": { + "unsafeName": "folderCFoo", + "safeName": "folderCFoo" + }, + "snakeCase": { + "unsafeName": "folder_c_foo", + "safeName": "folder_c_foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C_FOO", + "safeName": "FOLDER_C_FOO" + }, + "pascalCase": { + "unsafeName": "FolderCFoo", + "safeName": "FolderCFoo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "bar_property", + "camelCase": { + "unsafeName": "barProperty", + "safeName": "barProperty" + }, + "snakeCase": { + "unsafeName": "bar_property", + "safeName": "bar_property" + }, + "screamingSnakeCase": { + "unsafeName": "BAR_PROPERTY", + "safeName": "BAR_PROPERTY" + }, + "pascalCase": { + "unsafeName": "BarProperty", + "safeName": "BarProperty" + } + }, + "wireValue": "bar_property" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + } + ] + }, + "type_folder-d/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_foo:ImportingType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingType", + "camelCase": { + "unsafeName": "importingType", + "safeName": "importingType" + }, + "snakeCase": { + "unsafeName": "importing_type", + "safeName": "importing_type" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_TYPE", + "safeName": "IMPORTING_TYPE" + }, + "pascalCase": { + "unsafeName": "ImportingType", + "safeName": "ImportingType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "wireValue": "imported" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Imported" + } + } + ] + }, + "type_foo:OptionalString": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "type_foo:FilteredType": { + "type": "object", + "declaration": { + "name": { + "originalName": "FilteredType", + "camelCase": { + "unsafeName": "filteredType", + "safeName": "filteredType" + }, + "snakeCase": { + "unsafeName": "filtered_type", + "safeName": "filtered_type" + }, + "screamingSnakeCase": { + "unsafeName": "FILTERED_TYPE", + "safeName": "FILTERED_TYPE" + }, + "pascalCase": { + "unsafeName": "FilteredType", + "safeName": "FilteredType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "public_property", + "camelCase": { + "unsafeName": "publicProperty", + "safeName": "publicProperty" + }, + "snakeCase": { + "unsafeName": "public_property", + "safeName": "public_property" + }, + "screamingSnakeCase": { + "unsafeName": "PUBLIC_PROPERTY", + "safeName": "PUBLIC_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PublicProperty", + "safeName": "PublicProperty" + } + }, + "wireValue": "public_property" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "private_property", + "camelCase": { + "unsafeName": "privateProperty", + "safeName": "privateProperty" + }, + "snakeCase": { + "unsafeName": "private_property", + "safeName": "private_property" + }, + "screamingSnakeCase": { + "unsafeName": "PRIVATE_PROPERTY", + "safeName": "PRIVATE_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PrivateProperty", + "safeName": "PrivateProperty" + } + }, + "wireValue": "private_property" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_folder-a/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder-d/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/partner-path" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_foo.find": { + "auth": null, + "declaration": { + "name": { + "originalName": "find", + "camelCase": { + "unsafeName": "find", + "safeName": "find" + }, + "snakeCase": { + "unsafeName": "find", + "safeName": "find" + }, + "screamingSnakeCase": { + "unsafeName": "FIND", + "safeName": "FIND" + }, + "pascalCase": { + "unsafeName": "Find", + "safeName": "Find" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "FindRequest", + "camelCase": { + "unsafeName": "findRequest", + "safeName": "findRequest" + }, + "snakeCase": { + "unsafeName": "find_request", + "safeName": "find_request" + }, + "screamingSnakeCase": { + "unsafeName": "FIND_REQUEST", + "safeName": "FIND_REQUEST" + }, + "pascalCase": { + "unsafeName": "FindRequest", + "safeName": "FindRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "optionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "wireValue": "optionalString" + }, + "typeReference": { + "_type": "named", + "value": "type_foo:OptionalString" + } + } + ], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "publicProperty", + "camelCase": { + "unsafeName": "publicProperty", + "safeName": "publicProperty" + }, + "snakeCase": { + "unsafeName": "public_property", + "safeName": "public_property" + }, + "screamingSnakeCase": { + "unsafeName": "PUBLIC_PROPERTY", + "safeName": "PUBLIC_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PublicProperty", + "safeName": "PublicProperty" + } + }, + "wireValue": "publicProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "privateProperty", + "camelCase": { + "unsafeName": "privateProperty", + "safeName": "privateProperty" + }, + "snakeCase": { + "unsafeName": "private_property", + "safeName": "private_property" + }, + "screamingSnakeCase": { + "unsafeName": "PRIVATE_PROPERTY", + "safeName": "PRIVATE_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PrivateProperty", + "safeName": "PrivateProperty" + } + }, + "wireValue": "privateProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/auth-environment-variables.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/auth-environment-variables.json new file mode 100644 index 00000000000..b043946d86b --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/auth-environment-variables.json @@ -0,0 +1,380 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [ + { + "name": { + "name": { + "originalName": "X-Another-Header", + "camelCase": { + "unsafeName": "xAnotherHeader", + "safeName": "xAnotherHeader" + }, + "snakeCase": { + "unsafeName": "x_another_header", + "safeName": "x_another_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_ANOTHER_HEADER", + "safeName": "X_ANOTHER_HEADER" + }, + "pascalCase": { + "unsafeName": "XAnotherHeader", + "safeName": "XAnotherHeader" + } + }, + "wireValue": "X-Another-Header" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "X-API-Version", + "camelCase": { + "unsafeName": "xAPIVersion", + "safeName": "xAPIVersion" + }, + "snakeCase": { + "unsafeName": "x_api_version", + "safeName": "x_api_version" + }, + "screamingSnakeCase": { + "unsafeName": "X_API_VERSION", + "safeName": "X_API_VERSION" + }, + "pascalCase": { + "unsafeName": "XAPIVersion", + "safeName": "XAPIVersion" + } + }, + "wireValue": "X-API-Version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "01-01-2000" + } + } + } + ], + "endpoints": { + "endpoint_service.getWithApiKey": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "APIKey", + "camelCase": { + "unsafeName": "apiKey", + "safeName": "apiKey" + }, + "snakeCase": { + "unsafeName": "api_key", + "safeName": "api_key" + }, + "screamingSnakeCase": { + "unsafeName": "API_KEY", + "safeName": "API_KEY" + }, + "pascalCase": { + "unsafeName": "APIKey", + "safeName": "APIKey" + } + }, + "wireValue": "X-FERN-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithApiKey", + "camelCase": { + "unsafeName": "getWithAPIKey", + "safeName": "getWithAPIKey" + }, + "snakeCase": { + "unsafeName": "get_with_api_key", + "safeName": "get_with_api_key" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_API_KEY", + "safeName": "GET_WITH_API_KEY" + }, + "pascalCase": { + "unsafeName": "GetWithAPIKey", + "safeName": "GetWithAPIKey" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/apiKey" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getWithHeader": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "APIKey", + "camelCase": { + "unsafeName": "apiKey", + "safeName": "apiKey" + }, + "snakeCase": { + "unsafeName": "api_key", + "safeName": "api_key" + }, + "screamingSnakeCase": { + "unsafeName": "API_KEY", + "safeName": "API_KEY" + }, + "pascalCase": { + "unsafeName": "APIKey", + "safeName": "APIKey" + } + }, + "wireValue": "X-FERN-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithHeader", + "camelCase": { + "unsafeName": "getWithHeader", + "safeName": "getWithHeader" + }, + "snakeCase": { + "unsafeName": "get_with_header", + "safeName": "get_with_header" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_HEADER", + "safeName": "GET_WITH_HEADER" + }, + "pascalCase": { + "unsafeName": "GetWithHeader", + "safeName": "GetWithHeader" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/apiKeyInHeader" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "HeaderAuthRequest", + "camelCase": { + "unsafeName": "headerAuthRequest", + "safeName": "headerAuthRequest" + }, + "snakeCase": { + "unsafeName": "header_auth_request", + "safeName": "header_auth_request" + }, + "screamingSnakeCase": { + "unsafeName": "HEADER_AUTH_REQUEST", + "safeName": "HEADER_AUTH_REQUEST" + }, + "pascalCase": { + "unsafeName": "HeaderAuthRequest", + "safeName": "HeaderAuthRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "X-Endpoint-Header", + "camelCase": { + "unsafeName": "xEndpointHeader", + "safeName": "xEndpointHeader" + }, + "snakeCase": { + "unsafeName": "x_endpoint_header", + "safeName": "x_endpoint_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_ENDPOINT_HEADER", + "safeName": "X_ENDPOINT_HEADER" + }, + "pascalCase": { + "unsafeName": "XEndpointHeader", + "safeName": "XEndpointHeader" + } + }, + "wireValue": "X-Endpoint-Header" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth-environment-variables.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth-environment-variables.json new file mode 100644 index 00000000000..43d77a55fd2 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth-environment-variables.json @@ -0,0 +1,348 @@ +{ + "version": "1.0.0", + "types": { + "type_errors:UnauthorizedRequestErrorBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnauthorizedRequestErrorBody", + "camelCase": { + "unsafeName": "unauthorizedRequestErrorBody", + "safeName": "unauthorizedRequestErrorBody" + }, + "snakeCase": { + "unsafeName": "unauthorized_request_error_body", + "safeName": "unauthorized_request_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "UNAUTHORIZED_REQUEST_ERROR_BODY", + "safeName": "UNAUTHORIZED_REQUEST_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "UnauthorizedRequestErrorBody", + "safeName": "UnauthorizedRequestErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_basic-auth.getWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithBasicAuth", + "camelCase": { + "unsafeName": "getWithBasicAuth", + "safeName": "getWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "get_with_basic_auth", + "safeName": "get_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_BASIC_AUTH", + "safeName": "GET_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "GetWithBasicAuth", + "safeName": "GetWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "GET", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_basic-auth.postWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithBasicAuth", + "camelCase": { + "unsafeName": "postWithBasicAuth", + "safeName": "postWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "post_with_basic_auth", + "safeName": "post_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_BASIC_AUTH", + "safeName": "POST_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithBasicAuth", + "safeName": "PostWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth.json new file mode 100644 index 00000000000..43d77a55fd2 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth.json @@ -0,0 +1,348 @@ +{ + "version": "1.0.0", + "types": { + "type_errors:UnauthorizedRequestErrorBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnauthorizedRequestErrorBody", + "camelCase": { + "unsafeName": "unauthorizedRequestErrorBody", + "safeName": "unauthorizedRequestErrorBody" + }, + "snakeCase": { + "unsafeName": "unauthorized_request_error_body", + "safeName": "unauthorized_request_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "UNAUTHORIZED_REQUEST_ERROR_BODY", + "safeName": "UNAUTHORIZED_REQUEST_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "UnauthorizedRequestErrorBody", + "safeName": "UnauthorizedRequestErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_basic-auth.getWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithBasicAuth", + "camelCase": { + "unsafeName": "getWithBasicAuth", + "safeName": "getWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "get_with_basic_auth", + "safeName": "get_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_BASIC_AUTH", + "safeName": "GET_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "GetWithBasicAuth", + "safeName": "GetWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "GET", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_basic-auth.postWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithBasicAuth", + "camelCase": { + "unsafeName": "postWithBasicAuth", + "safeName": "postWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "post_with_basic_auth", + "safeName": "post_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_BASIC_AUTH", + "safeName": "POST_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithBasicAuth", + "safeName": "PostWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/bearer-token-environment-variable.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/bearer-token-environment-variable.json new file mode 100644 index 00000000000..9ff58226711 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/bearer-token-environment-variable.json @@ -0,0 +1,107 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.getWithBearerToken": { + "auth": { + "type": "bearer", + "token": { + "originalName": "apiKey", + "camelCase": { + "unsafeName": "apiKey", + "safeName": "apiKey" + }, + "snakeCase": { + "unsafeName": "api_key", + "safeName": "api_key" + }, + "screamingSnakeCase": { + "unsafeName": "API_KEY", + "safeName": "API_KEY" + }, + "pascalCase": { + "unsafeName": "APIKey", + "safeName": "APIKey" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithBearerToken", + "camelCase": { + "unsafeName": "getWithBearerToken", + "safeName": "getWithBearerToken" + }, + "snakeCase": { + "unsafeName": "get_with_bearer_token", + "safeName": "get_with_bearer_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_BEARER_TOKEN", + "safeName": "GET_WITH_BEARER_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetWithBearerToken", + "safeName": "GetWithBearerToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/apiKey" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/bytes.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/bytes.json new file mode 100644 index 00000000000..c92fbe49433 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/bytes.json @@ -0,0 +1,88 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.upload": { + "auth": null, + "declaration": { + "name": { + "originalName": "upload", + "camelCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "snakeCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD", + "safeName": "UPLOAD" + }, + "pascalCase": { + "unsafeName": "Upload", + "safeName": "Upload" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/upload-content" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "bytes" + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references-advanced.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references-advanced.json new file mode 100644 index 00000000000..fe6e3b5d348 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references-advanced.json @@ -0,0 +1,937 @@ +{ + "version": "1.0.0", + "types": { + "type_:ImportingA": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingA", + "camelCase": { + "unsafeName": "importingA", + "safeName": "importingA" + }, + "snakeCase": { + "unsafeName": "importing_a", + "safeName": "importing_a" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_A", + "safeName": "IMPORTING_A" + }, + "pascalCase": { + "unsafeName": "ImportingA", + "safeName": "ImportingA" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_a:A" + } + } + } + ] + }, + "type_:RootType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RootType", + "camelCase": { + "unsafeName": "rootType", + "safeName": "rootType" + }, + "snakeCase": { + "unsafeName": "root_type", + "safeName": "root_type" + }, + "screamingSnakeCase": { + "unsafeName": "ROOT_TYPE", + "safeName": "ROOT_TYPE" + }, + "pascalCase": { + "unsafeName": "RootType", + "safeName": "RootType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_a:A": { + "type": "object", + "declaration": { + "name": { + "originalName": "A", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + ], + "packagePath": [], + "file": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_ast:ContainerValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ContainerValue", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "list": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "wireValue": "list" + }, + "properties": null + }, + "optional": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + }, + "wireValue": "optional" + }, + "properties": null + } + } + }, + "type_ast:PrimitiveValue": { + "type": "enum", + "declaration": { + "name": { + "originalName": "PrimitiveValue", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "STRING", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "STRING" + }, + { + "name": { + "originalName": "NUMBER", + "camelCase": { + "unsafeName": "number", + "safeName": "number" + }, + "snakeCase": { + "unsafeName": "number", + "safeName": "number" + }, + "screamingSnakeCase": { + "unsafeName": "NUMBER", + "safeName": "NUMBER" + }, + "pascalCase": { + "unsafeName": "Number", + "safeName": "Number" + } + }, + "wireValue": "NUMBER" + } + ] + }, + "type_ast:ObjectValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectValue", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "properties": [] + }, + "type_ast:FieldName": { + "type": "alias", + "declaration": { + "name": { + "originalName": "FieldName", + "camelCase": { + "unsafeName": "fieldName", + "safeName": "fieldName" + }, + "snakeCase": { + "unsafeName": "field_name", + "safeName": "field_name" + }, + "screamingSnakeCase": { + "unsafeName": "FIELD_NAME", + "safeName": "FIELD_NAME" + }, + "pascalCase": { + "unsafeName": "FieldName", + "safeName": "FieldName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_ast:FieldValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FieldValue", + "camelCase": { + "unsafeName": "fieldValue", + "safeName": "fieldValue" + }, + "snakeCase": { + "unsafeName": "field_value", + "safeName": "field_value" + }, + "screamingSnakeCase": { + "unsafeName": "FIELD_VALUE", + "safeName": "FIELD_VALUE" + }, + "pascalCase": { + "unsafeName": "FieldValue", + "safeName": "FieldValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "primitive_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:PrimitiveValue" + }, + "discriminantValue": { + "name": { + "originalName": "primitive_value", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "wireValue": "primitive_value" + }, + "properties": null + }, + "object_value": { + "type": "samePropertiesAsObject", + "typeId": "type_ast:ObjectValue", + "discriminantValue": { + "name": { + "originalName": "object_value", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "wireValue": "object_value" + }, + "properties": [] + }, + "container_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:ContainerValue" + }, + "discriminantValue": { + "name": { + "originalName": "container_value", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "wireValue": "container_value" + }, + "properties": null + } + } + }, + "type_ast:ObjectFieldValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectFieldValue", + "camelCase": { + "unsafeName": "objectFieldValue", + "safeName": "objectFieldValue" + }, + "snakeCase": { + "unsafeName": "object_field_value", + "safeName": "object_field_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_FIELD_VALUE", + "safeName": "OBJECT_FIELD_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectFieldValue", + "safeName": "ObjectFieldValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "named", + "value": "type_ast:FieldName" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_ast:FieldValue" + } + } + ] + } + }, + "headers": [], + "endpoints": {} +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references.json new file mode 100644 index 00000000000..f826fffc341 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references.json @@ -0,0 +1,840 @@ +{ + "version": "1.0.0", + "types": { + "type_:ImportingA": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingA", + "camelCase": { + "unsafeName": "importingA", + "safeName": "importingA" + }, + "snakeCase": { + "unsafeName": "importing_a", + "safeName": "importing_a" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_A", + "safeName": "IMPORTING_A" + }, + "pascalCase": { + "unsafeName": "ImportingA", + "safeName": "ImportingA" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_a:A" + } + } + } + ] + }, + "type_:RootType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RootType", + "camelCase": { + "unsafeName": "rootType", + "safeName": "rootType" + }, + "snakeCase": { + "unsafeName": "root_type", + "safeName": "root_type" + }, + "screamingSnakeCase": { + "unsafeName": "ROOT_TYPE", + "safeName": "ROOT_TYPE" + }, + "pascalCase": { + "unsafeName": "RootType", + "safeName": "RootType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_a:A": { + "type": "object", + "declaration": { + "name": { + "originalName": "A", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + ], + "packagePath": [], + "file": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_ast:FieldValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FieldValue", + "camelCase": { + "unsafeName": "fieldValue", + "safeName": "fieldValue" + }, + "snakeCase": { + "unsafeName": "field_value", + "safeName": "field_value" + }, + "screamingSnakeCase": { + "unsafeName": "FIELD_VALUE", + "safeName": "FIELD_VALUE" + }, + "pascalCase": { + "unsafeName": "FieldValue", + "safeName": "FieldValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "primitive_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:PrimitiveValue" + }, + "discriminantValue": { + "name": { + "originalName": "primitive_value", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "wireValue": "primitive_value" + }, + "properties": null + }, + "object_value": { + "type": "samePropertiesAsObject", + "typeId": "type_ast:ObjectValue", + "discriminantValue": { + "name": { + "originalName": "object_value", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "wireValue": "object_value" + }, + "properties": [] + }, + "container_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:ContainerValue" + }, + "discriminantValue": { + "name": { + "originalName": "container_value", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "wireValue": "container_value" + }, + "properties": null + } + } + }, + "type_ast:ContainerValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ContainerValue", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "list": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "wireValue": "list" + }, + "properties": null + }, + "optional": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + }, + "wireValue": "optional" + }, + "properties": null + } + } + }, + "type_ast:PrimitiveValue": { + "type": "enum", + "declaration": { + "name": { + "originalName": "PrimitiveValue", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "STRING", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "STRING" + }, + { + "name": { + "originalName": "NUMBER", + "camelCase": { + "unsafeName": "number", + "safeName": "number" + }, + "snakeCase": { + "unsafeName": "number", + "safeName": "number" + }, + "screamingSnakeCase": { + "unsafeName": "NUMBER", + "safeName": "NUMBER" + }, + "pascalCase": { + "unsafeName": "Number", + "safeName": "Number" + } + }, + "wireValue": "NUMBER" + } + ] + }, + "type_ast:ObjectValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectValue", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "properties": [] + }, + "type_ast:JsonLike": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "JsonLike", + "camelCase": { + "unsafeName": "jsonLike", + "safeName": "jsonLike" + }, + "snakeCase": { + "unsafeName": "json_like", + "safeName": "json_like" + }, + "screamingSnakeCase": { + "unsafeName": "JSON_LIKE", + "safeName": "JSON_LIKE" + }, + "pascalCase": { + "unsafeName": "JSONLike", + "safeName": "JSONLike" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "types": [ + { + "_type": "list", + "value": { + "_type": "named", + "value": "type_ast:JsonLike" + } + }, + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_ast:JsonLike" + } + }, + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "primitive", + "value": "INTEGER" + }, + { + "_type": "primitive", + "value": "BOOLEAN" + } + ] + } + }, + "headers": [], + "endpoints": {} +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/cross-package-type-names.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/cross-package-type-names.json new file mode 100644 index 00000000000..38ad96f6b03 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/cross-package-type-names.json @@ -0,0 +1,1279 @@ +{ + "version": "1.0.0", + "types": { + "type_commons:Imported": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_folder-a/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-b/common:Foo" + } + } + } + ] + }, + "type_folder-b/common:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-c/common:Foo" + } + } + } + ] + }, + "type_folder-c/common:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "bar_property", + "camelCase": { + "unsafeName": "barProperty", + "safeName": "barProperty" + }, + "snakeCase": { + "unsafeName": "bar_property", + "safeName": "bar_property" + }, + "screamingSnakeCase": { + "unsafeName": "BAR_PROPERTY", + "safeName": "BAR_PROPERTY" + }, + "pascalCase": { + "unsafeName": "BarProperty", + "safeName": "BarProperty" + } + }, + "wireValue": "bar_property" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + } + ] + }, + "type_folder-d/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-b/common:Foo" + } + } + } + ] + }, + "type_foo:ImportingType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingType", + "camelCase": { + "unsafeName": "importingType", + "safeName": "importingType" + }, + "snakeCase": { + "unsafeName": "importing_type", + "safeName": "importing_type" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_TYPE", + "safeName": "IMPORTING_TYPE" + }, + "pascalCase": { + "unsafeName": "ImportingType", + "safeName": "ImportingType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "wireValue": "imported" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Imported" + } + } + ] + }, + "type_foo:OptionalString": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "headers": [], + "endpoints": { + "endpoint_folder-a/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder-d/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_foo.find": { + "auth": null, + "declaration": { + "name": { + "originalName": "find", + "camelCase": { + "unsafeName": "find", + "safeName": "find" + }, + "snakeCase": { + "unsafeName": "find", + "safeName": "find" + }, + "screamingSnakeCase": { + "unsafeName": "FIND", + "safeName": "FIND" + }, + "pascalCase": { + "unsafeName": "Find", + "safeName": "Find" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "FindRequest", + "camelCase": { + "unsafeName": "findRequest", + "safeName": "findRequest" + }, + "snakeCase": { + "unsafeName": "find_request", + "safeName": "find_request" + }, + "screamingSnakeCase": { + "unsafeName": "FIND_REQUEST", + "safeName": "FIND_REQUEST" + }, + "pascalCase": { + "unsafeName": "FindRequest", + "safeName": "FindRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "optionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "wireValue": "optionalString" + }, + "typeReference": { + "_type": "named", + "value": "type_foo:OptionalString" + } + } + ], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "publicProperty", + "camelCase": { + "unsafeName": "publicProperty", + "safeName": "publicProperty" + }, + "snakeCase": { + "unsafeName": "public_property", + "safeName": "public_property" + }, + "screamingSnakeCase": { + "unsafeName": "PUBLIC_PROPERTY", + "safeName": "PUBLIC_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PublicProperty", + "safeName": "PublicProperty" + } + }, + "wireValue": "publicProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "privateProperty", + "camelCase": { + "unsafeName": "privateProperty", + "safeName": "privateProperty" + }, + "snakeCase": { + "unsafeName": "private_property", + "safeName": "private_property" + }, + "screamingSnakeCase": { + "unsafeName": "PRIVATE_PROPERTY", + "safeName": "PRIVATE_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PrivateProperty", + "safeName": "PrivateProperty" + } + }, + "wireValue": "privateProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-namespace-conflict.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-namespace-conflict.json new file mode 100644 index 00000000000..57ac9c6badd --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-namespace-conflict.json @@ -0,0 +1,692 @@ +{ + "version": "1.0.0", + "types": { + "type_a/aa:A": { + "type": "object", + "declaration": { + "name": { + "originalName": "A", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "file": null + } + }, + "properties": [] + }, + "type_a/aa:B": { + "type": "object", + "declaration": { + "name": { + "originalName": "B", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "file": null + } + }, + "properties": [] + }, + "type_a/aa:SubTestType": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubTestType", + "camelCase": { + "unsafeName": "subTestType", + "safeName": "subTestType" + }, + "snakeCase": { + "unsafeName": "sub_test_type", + "safeName": "sub_test_type" + }, + "screamingSnakeCase": { + "unsafeName": "SUB_TEST_TYPE", + "safeName": "SUB_TEST_TYPE" + }, + "pascalCase": { + "unsafeName": "SubTestType", + "safeName": "SubTestType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:A" + } + }, + { + "name": { + "name": { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + }, + "wireValue": "b" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:B" + } + } + ] + }, + "type_b:TestType": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestType", + "camelCase": { + "unsafeName": "testType", + "safeName": "testType" + }, + "snakeCase": { + "unsafeName": "test_type", + "safeName": "test_type" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_TYPE", + "safeName": "TEST_TYPE" + }, + "pascalCase": { + "unsafeName": "TestType", + "safeName": "TestType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "packagePath": [ + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:A" + } + }, + { + "name": { + "name": { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + }, + "wireValue": "b" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:B" + } + } + ] + }, + "type_tasktest:Task": { + "type": "object", + "declaration": { + "name": { + "originalName": "Task", + "camelCase": { + "unsafeName": "task", + "safeName": "task" + }, + "snakeCase": { + "unsafeName": "task", + "safeName": "task" + }, + "screamingSnakeCase": { + "unsafeName": "TASK", + "safeName": "TASK" + }, + "pascalCase": { + "unsafeName": "Task", + "safeName": "Task" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_tasktest.hello": { + "auth": null, + "declaration": { + "name": { + "originalName": "hello", + "camelCase": { + "unsafeName": "hello", + "safeName": "hello" + }, + "snakeCase": { + "unsafeName": "hello", + "safeName": "hello" + }, + "screamingSnakeCase": { + "unsafeName": "HELLO", + "safeName": "HELLO" + }, + "pascalCase": { + "unsafeName": "Hello", + "safeName": "Hello" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + } + }, + "location": { + "method": "GET", + "path": "/hello" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/custom-auth.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/custom-auth.json new file mode 100644 index 00000000000..345cf60214b --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/custom-auth.json @@ -0,0 +1,328 @@ +{ + "version": "1.0.0", + "types": { + "type_errors:UnauthorizedRequestErrorBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnauthorizedRequestErrorBody", + "camelCase": { + "unsafeName": "unauthorizedRequestErrorBody", + "safeName": "unauthorizedRequestErrorBody" + }, + "snakeCase": { + "unsafeName": "unauthorized_request_error_body", + "safeName": "unauthorized_request_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "UNAUTHORIZED_REQUEST_ERROR_BODY", + "safeName": "UNAUTHORIZED_REQUEST_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "UnauthorizedRequestErrorBody", + "safeName": "UnauthorizedRequestErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_custom-auth.getWithCustomAuth": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "CustomAuthScheme", + "camelCase": { + "unsafeName": "customAuthScheme", + "safeName": "customAuthScheme" + }, + "snakeCase": { + "unsafeName": "custom_auth_scheme", + "safeName": "custom_auth_scheme" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH_SCHEME", + "safeName": "CUSTOM_AUTH_SCHEME" + }, + "pascalCase": { + "unsafeName": "CustomAuthScheme", + "safeName": "CustomAuthScheme" + } + }, + "wireValue": "X-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithCustomAuth", + "camelCase": { + "unsafeName": "getWithCustomAuth", + "safeName": "getWithCustomAuth" + }, + "snakeCase": { + "unsafeName": "get_with_custom_auth", + "safeName": "get_with_custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_CUSTOM_AUTH", + "safeName": "GET_WITH_CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "GetWithCustomAuth", + "safeName": "GetWithCustomAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + } + }, + "location": { + "method": "GET", + "path": "/custom-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_custom-auth.postWithCustomAuth": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "CustomAuthScheme", + "camelCase": { + "unsafeName": "customAuthScheme", + "safeName": "customAuthScheme" + }, + "snakeCase": { + "unsafeName": "custom_auth_scheme", + "safeName": "custom_auth_scheme" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH_SCHEME", + "safeName": "CUSTOM_AUTH_SCHEME" + }, + "pascalCase": { + "unsafeName": "CustomAuthScheme", + "safeName": "CustomAuthScheme" + } + }, + "wireValue": "X-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithCustomAuth", + "camelCase": { + "unsafeName": "postWithCustomAuth", + "safeName": "postWithCustomAuth" + }, + "snakeCase": { + "unsafeName": "post_with_custom_auth", + "safeName": "post_with_custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_CUSTOM_AUTH", + "safeName": "POST_WITH_CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithCustomAuth", + "safeName": "PostWithCustomAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/custom-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/enum.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/enum.json new file mode 100644 index 00000000000..775cf636af8 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/enum.json @@ -0,0 +1,1212 @@ +{ + "version": "1.0.0", + "types": { + "type_:Operand": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "GREATER_THAN", + "camelCase": { + "unsafeName": "greaterThan", + "safeName": "greaterThan" + }, + "snakeCase": { + "unsafeName": "greater_than", + "safeName": "greater_than" + }, + "screamingSnakeCase": { + "unsafeName": "GREATER_THAN", + "safeName": "GREATER_THAN" + }, + "pascalCase": { + "unsafeName": "GreaterThan", + "safeName": "GreaterThan" + } + }, + "wireValue": ">" + }, + { + "name": { + "originalName": "EQUAL_TO", + "camelCase": { + "unsafeName": "equalTo", + "safeName": "equalTo" + }, + "snakeCase": { + "unsafeName": "equal_to", + "safeName": "equal_to" + }, + "screamingSnakeCase": { + "unsafeName": "EQUAL_TO", + "safeName": "EQUAL_TO" + }, + "pascalCase": { + "unsafeName": "EqualTo", + "safeName": "EqualTo" + } + }, + "wireValue": "=" + }, + { + "name": { + "originalName": "less_than", + "camelCase": { + "unsafeName": "lessThan", + "safeName": "lessThan" + }, + "snakeCase": { + "unsafeName": "less_than", + "safeName": "less_than" + }, + "screamingSnakeCase": { + "unsafeName": "LESS_THAN", + "safeName": "LESS_THAN" + }, + "pascalCase": { + "unsafeName": "LessThan", + "safeName": "LessThan" + } + }, + "wireValue": "less_than" + } + ] + }, + "type_:Color": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Color", + "camelCase": { + "unsafeName": "color", + "safeName": "color" + }, + "snakeCase": { + "unsafeName": "color", + "safeName": "color" + }, + "screamingSnakeCase": { + "unsafeName": "COLOR", + "safeName": "COLOR" + }, + "pascalCase": { + "unsafeName": "Color", + "safeName": "Color" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "RED", + "camelCase": { + "unsafeName": "red", + "safeName": "red" + }, + "snakeCase": { + "unsafeName": "red", + "safeName": "red" + }, + "screamingSnakeCase": { + "unsafeName": "RED", + "safeName": "RED" + }, + "pascalCase": { + "unsafeName": "Red", + "safeName": "Red" + } + }, + "wireValue": "red" + }, + { + "name": { + "originalName": "BLUE", + "camelCase": { + "unsafeName": "blue", + "safeName": "blue" + }, + "snakeCase": { + "unsafeName": "blue", + "safeName": "blue" + }, + "screamingSnakeCase": { + "unsafeName": "BLUE", + "safeName": "BLUE" + }, + "pascalCase": { + "unsafeName": "Blue", + "safeName": "Blue" + } + }, + "wireValue": "blue" + } + ] + }, + "type_:ColorOrOperand": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "ColorOrOperand", + "camelCase": { + "unsafeName": "colorOrOperand", + "safeName": "colorOrOperand" + }, + "snakeCase": { + "unsafeName": "color_or_operand", + "safeName": "color_or_operand" + }, + "screamingSnakeCase": { + "unsafeName": "COLOR_OR_OPERAND", + "safeName": "COLOR_OR_OPERAND" + }, + "pascalCase": { + "unsafeName": "ColorOrOperand", + "safeName": "ColorOrOperand" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "named", + "value": "type_:Color" + }, + { + "_type": "named", + "value": "type_:Operand" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_inlined-request.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + } + }, + "location": { + "method": "POST", + "path": "/inlined" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendEnumInlinedRequest", + "camelCase": { + "unsafeName": "sendEnumInlinedRequest", + "safeName": "sendEnumInlinedRequest" + }, + "snakeCase": { + "unsafeName": "send_enum_inlined_request", + "safeName": "send_enum_inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_ENUM_INLINED_REQUEST", + "safeName": "SEND_ENUM_INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendEnumInlinedRequest", + "safeName": "SendEnumInlinedRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "named", + "value": "type_:Operand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperand", + "camelCase": { + "unsafeName": "maybeOperand", + "safeName": "maybeOperand" + }, + "snakeCase": { + "unsafeName": "maybe_operand", + "safeName": "maybe_operand" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND", + "safeName": "MAYBE_OPERAND" + }, + "pascalCase": { + "unsafeName": "MaybeOperand", + "safeName": "MaybeOperand" + } + }, + "wireValue": "maybeOperand" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperandOrColor", + "camelCase": { + "unsafeName": "maybeOperandOrColor", + "safeName": "maybeOperandOrColor" + }, + "snakeCase": { + "unsafeName": "maybe_operand_or_color", + "safeName": "maybe_operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND_OR_COLOR", + "safeName": "MAYBE_OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "MaybeOperandOrColor", + "safeName": "MaybeOperandOrColor" + } + }, + "wireValue": "maybeOperandOrColor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_path-param.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "path-param", + "camelCase": { + "unsafeName": "pathParam", + "safeName": "pathParam" + }, + "snakeCase": { + "unsafeName": "path_param", + "safeName": "path_param" + }, + "screamingSnakeCase": { + "unsafeName": "PATH_PARAM", + "safeName": "PATH_PARAM" + }, + "pascalCase": { + "unsafeName": "PathParam", + "safeName": "PathParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "path-param", + "camelCase": { + "unsafeName": "pathParam", + "safeName": "pathParam" + }, + "snakeCase": { + "unsafeName": "path_param", + "safeName": "path_param" + }, + "screamingSnakeCase": { + "unsafeName": "PATH_PARAM", + "safeName": "PATH_PARAM" + }, + "pascalCase": { + "unsafeName": "PathParam", + "safeName": "PathParam" + } + } + } + }, + "location": { + "method": "POST", + "path": "/path/{operand}/{maybeOperand}/{operandOrColor}/{maybeOperandOrColor}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "named", + "value": "type_:Operand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperand", + "camelCase": { + "unsafeName": "maybeOperand", + "safeName": "maybeOperand" + }, + "snakeCase": { + "unsafeName": "maybe_operand", + "safeName": "maybe_operand" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND", + "safeName": "MAYBE_OPERAND" + }, + "pascalCase": { + "unsafeName": "MaybeOperand", + "safeName": "MaybeOperand" + } + }, + "wireValue": "maybeOperand" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperandOrColor", + "camelCase": { + "unsafeName": "maybeOperandOrColor", + "safeName": "maybeOperandOrColor" + }, + "snakeCase": { + "unsafeName": "maybe_operand_or_color", + "safeName": "maybe_operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND_OR_COLOR", + "safeName": "MAYBE_OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "MaybeOperandOrColor", + "safeName": "MaybeOperandOrColor" + } + }, + "wireValue": "maybeOperandOrColor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_query-param.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "location": { + "method": "POST", + "path": "/query" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendEnumAsQueryParamRequest", + "camelCase": { + "unsafeName": "sendEnumAsQueryParamRequest", + "safeName": "sendEnumAsQueryParamRequest" + }, + "snakeCase": { + "unsafeName": "send_enum_as_query_param_request", + "safeName": "send_enum_as_query_param_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_ENUM_AS_QUERY_PARAM_REQUEST", + "safeName": "SEND_ENUM_AS_QUERY_PARAM_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendEnumAsQueryParamRequest", + "safeName": "SendEnumAsQueryParamRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "named", + "value": "type_:Operand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperand", + "camelCase": { + "unsafeName": "maybeOperand", + "safeName": "maybeOperand" + }, + "snakeCase": { + "unsafeName": "maybe_operand", + "safeName": "maybe_operand" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND", + "safeName": "MAYBE_OPERAND" + }, + "pascalCase": { + "unsafeName": "MaybeOperand", + "safeName": "MaybeOperand" + } + }, + "wireValue": "maybeOperand" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperandOrColor", + "camelCase": { + "unsafeName": "maybeOperandOrColor", + "safeName": "maybeOperandOrColor" + }, + "snakeCase": { + "unsafeName": "maybe_operand_or_color", + "safeName": "maybe_operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND_OR_COLOR", + "safeName": "MAYBE_OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "MaybeOperandOrColor", + "safeName": "MaybeOperandOrColor" + } + }, + "wireValue": "maybeOperandOrColor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_query-param.sendList": { + "auth": null, + "declaration": { + "name": { + "originalName": "sendList", + "camelCase": { + "unsafeName": "sendList", + "safeName": "sendList" + }, + "snakeCase": { + "unsafeName": "send_list", + "safeName": "send_list" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LIST", + "safeName": "SEND_LIST" + }, + "pascalCase": { + "unsafeName": "SendList", + "safeName": "SendList" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "location": { + "method": "POST", + "path": "/query-list" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendEnumListAsQueryParamRequest", + "camelCase": { + "unsafeName": "sendEnumListAsQueryParamRequest", + "safeName": "sendEnumListAsQueryParamRequest" + }, + "snakeCase": { + "unsafeName": "send_enum_list_as_query_param_request", + "safeName": "send_enum_list_as_query_param_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_ENUM_LIST_AS_QUERY_PARAM_REQUEST", + "safeName": "SEND_ENUM_LIST_AS_QUERY_PARAM_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendEnumListAsQueryParamRequest", + "safeName": "SendEnumListAsQueryParamRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "named", + "value": "type_:Operand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperand", + "camelCase": { + "unsafeName": "maybeOperand", + "safeName": "maybeOperand" + }, + "snakeCase": { + "unsafeName": "maybe_operand", + "safeName": "maybe_operand" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND", + "safeName": "MAYBE_OPERAND" + }, + "pascalCase": { + "unsafeName": "MaybeOperand", + "safeName": "MaybeOperand" + } + }, + "wireValue": "maybeOperand" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperandOrColor", + "camelCase": { + "unsafeName": "maybeOperandOrColor", + "safeName": "maybeOperandOrColor" + }, + "snakeCase": { + "unsafeName": "maybe_operand_or_color", + "safeName": "maybe_operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND_OR_COLOR", + "safeName": "MAYBE_OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "MaybeOperandOrColor", + "safeName": "MaybeOperandOrColor" + } + }, + "wireValue": "maybeOperandOrColor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/error-property.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/error-property.json new file mode 100644 index 00000000000..093fef52fec --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/error-property.json @@ -0,0 +1,184 @@ +{ + "version": "1.0.0", + "types": { + "type_errors:PropertyBasedErrorTestBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "PropertyBasedErrorTestBody", + "camelCase": { + "unsafeName": "propertyBasedErrorTestBody", + "safeName": "propertyBasedErrorTestBody" + }, + "snakeCase": { + "unsafeName": "property_based_error_test_body", + "safeName": "property_based_error_test_body" + }, + "screamingSnakeCase": { + "unsafeName": "PROPERTY_BASED_ERROR_TEST_BODY", + "safeName": "PROPERTY_BASED_ERROR_TEST_BODY" + }, + "pascalCase": { + "unsafeName": "PropertyBasedErrorTestBody", + "safeName": "PropertyBasedErrorTestBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_property-based-error.ThrowError": { + "auth": null, + "declaration": { + "name": { + "originalName": "ThrowError", + "camelCase": { + "unsafeName": "throwError", + "safeName": "throwError" + }, + "snakeCase": { + "unsafeName": "throw_error", + "safeName": "throw_error" + }, + "screamingSnakeCase": { + "unsafeName": "THROW_ERROR", + "safeName": "THROW_ERROR" + }, + "pascalCase": { + "unsafeName": "ThrowError", + "safeName": "ThrowError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "property-based-error", + "camelCase": { + "unsafeName": "propertyBasedError", + "safeName": "propertyBasedError" + }, + "snakeCase": { + "unsafeName": "property_based_error", + "safeName": "property_based_error" + }, + "screamingSnakeCase": { + "unsafeName": "PROPERTY_BASED_ERROR", + "safeName": "PROPERTY_BASED_ERROR" + }, + "pascalCase": { + "unsafeName": "PropertyBasedError", + "safeName": "PropertyBasedError" + } + } + ], + "packagePath": [], + "file": { + "originalName": "property-based-error", + "camelCase": { + "unsafeName": "propertyBasedError", + "safeName": "propertyBasedError" + }, + "snakeCase": { + "unsafeName": "property_based_error", + "safeName": "property_based_error" + }, + "screamingSnakeCase": { + "unsafeName": "PROPERTY_BASED_ERROR", + "safeName": "PROPERTY_BASED_ERROR" + }, + "pascalCase": { + "unsafeName": "PropertyBasedError", + "safeName": "PropertyBasedError" + } + } + } + }, + "location": { + "method": "GET", + "path": "/property-based-error" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/examples.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/examples.json new file mode 100644 index 00000000000..cef2c4d104f --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/examples.json @@ -0,0 +1,6201 @@ +{ + "version": "1.0.0", + "types": { + "type_:Type": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "named", + "value": "type_:BasicType" + }, + { + "_type": "named", + "value": "type_:ComplexType" + } + ] + }, + "type_:Identifier": { + "type": "object", + "declaration": { + "name": { + "originalName": "Identifier", + "camelCase": { + "unsafeName": "identifier", + "safeName": "identifier" + }, + "snakeCase": { + "unsafeName": "identifier", + "safeName": "identifier" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIER", + "safeName": "IDENTIFIER" + }, + "pascalCase": { + "unsafeName": "Identifier", + "safeName": "Identifier" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "label", + "camelCase": { + "unsafeName": "label", + "safeName": "label" + }, + "snakeCase": { + "unsafeName": "label", + "safeName": "label" + }, + "screamingSnakeCase": { + "unsafeName": "LABEL", + "safeName": "LABEL" + }, + "pascalCase": { + "unsafeName": "Label", + "safeName": "Label" + } + }, + "wireValue": "label" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:BasicType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "BasicType", + "camelCase": { + "unsafeName": "basicType", + "safeName": "basicType" + }, + "snakeCase": { + "unsafeName": "basic_type", + "safeName": "basic_type" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TYPE", + "safeName": "BASIC_TYPE" + }, + "pascalCase": { + "unsafeName": "BasicType", + "safeName": "BasicType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "Primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + }, + "wireValue": "primitive" + }, + { + "name": { + "originalName": "Literal", + "camelCase": { + "unsafeName": "literal", + "safeName": "literal" + }, + "snakeCase": { + "unsafeName": "literal", + "safeName": "literal" + }, + "screamingSnakeCase": { + "unsafeName": "LITERAL", + "safeName": "LITERAL" + }, + "pascalCase": { + "unsafeName": "Literal", + "safeName": "Literal" + } + }, + "wireValue": "literal" + } + ] + }, + "type_:ComplexType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ComplexType", + "camelCase": { + "unsafeName": "complexType", + "safeName": "complexType" + }, + "snakeCase": { + "unsafeName": "complex_type", + "safeName": "complex_type" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLEX_TYPE", + "safeName": "COMPLEX_TYPE" + }, + "pascalCase": { + "unsafeName": "ComplexType", + "safeName": "ComplexType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "Object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + }, + "wireValue": "object" + }, + { + "name": { + "originalName": "Union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + }, + "wireValue": "union" + }, + { + "name": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + }, + "wireValue": "unknown" + } + ] + }, + "type_commons/types:Tag": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons/types:Metadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "jsonString", + "camelCase": { + "unsafeName": "jsonString", + "safeName": "jsonString" + }, + "snakeCase": { + "unsafeName": "json_string", + "safeName": "json_string" + }, + "screamingSnakeCase": { + "unsafeName": "JSON_STRING", + "safeName": "JSON_STRING" + }, + "pascalCase": { + "unsafeName": "JSONString", + "safeName": "JSONString" + } + }, + "wireValue": "jsonString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_commons/types:EventInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "EventInfo", + "camelCase": { + "unsafeName": "eventInfo", + "safeName": "eventInfo" + }, + "snakeCase": { + "unsafeName": "event_info", + "safeName": "event_info" + }, + "screamingSnakeCase": { + "unsafeName": "EVENT_INFO", + "safeName": "EVENT_INFO" + }, + "pascalCase": { + "unsafeName": "EventInfo", + "safeName": "EventInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "metadata": { + "type": "samePropertiesAsObject", + "typeId": "type_commons/types:Metadata", + "discriminantValue": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "jsonString", + "camelCase": { + "unsafeName": "jsonString", + "safeName": "jsonString" + }, + "snakeCase": { + "unsafeName": "json_string", + "safeName": "json_string" + }, + "screamingSnakeCase": { + "unsafeName": "JSON_STRING", + "safeName": "JSON_STRING" + }, + "pascalCase": { + "unsafeName": "JSONString", + "safeName": "JSONString" + } + }, + "wireValue": "jsonString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "tag": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons/types:Tag" + }, + "discriminantValue": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "properties": null + } + } + }, + "type_commons/types:Data": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "string": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "properties": null + }, + "base64": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BASE_64" + }, + "discriminantValue": { + "name": { + "originalName": "base64", + "camelCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "snakeCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "screamingSnakeCase": { + "unsafeName": "BASE64", + "safeName": "BASE64" + }, + "pascalCase": { + "unsafeName": "Base64", + "safeName": "Base64" + } + }, + "wireValue": "base64" + }, + "properties": null + } + } + }, + "type_file/service:Filename": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_types:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_types:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "prequel", + "camelCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "snakeCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "screamingSnakeCase": { + "unsafeName": "PREQUEL", + "safeName": "PREQUEL" + }, + "pascalCase": { + "unsafeName": "Prequel", + "safeName": "Prequel" + } + }, + "wireValue": "prequel" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:MovieId" + } + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "from", + "camelCase": { + "unsafeName": "from", + "safeName": "from" + }, + "snakeCase": { + "unsafeName": "from", + "safeName": "from" + }, + "screamingSnakeCase": { + "unsafeName": "FROM", + "safeName": "FROM" + }, + "pascalCase": { + "unsafeName": "From", + "safeName": "From" + } + }, + "wireValue": "from" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "movie" + } + } + }, + { + "name": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "typeReference": { + "_type": "named", + "value": "type_commons/types:Tag" + } + }, + { + "name": { + "name": { + "originalName": "book", + "camelCase": { + "unsafeName": "book", + "safeName": "book" + }, + "snakeCase": { + "unsafeName": "book", + "safeName": "book" + }, + "screamingSnakeCase": { + "unsafeName": "BOOK", + "safeName": "BOOK" + }, + "pascalCase": { + "unsafeName": "Book", + "safeName": "Book" + } + }, + "wireValue": "book" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + }, + { + "name": { + "name": { + "originalName": "revenue", + "camelCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "snakeCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "screamingSnakeCase": { + "unsafeName": "REVENUE", + "safeName": "REVENUE" + }, + "pascalCase": { + "unsafeName": "Revenue", + "safeName": "Revenue" + } + }, + "wireValue": "revenue" + }, + "typeReference": { + "_type": "primitive", + "value": "LONG" + } + } + ] + }, + "type_types:CastMember": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "CastMember", + "camelCase": { + "unsafeName": "castMember", + "safeName": "castMember" + }, + "snakeCase": { + "unsafeName": "cast_member", + "safeName": "cast_member" + }, + "screamingSnakeCase": { + "unsafeName": "CAST_MEMBER", + "safeName": "CAST_MEMBER" + }, + "pascalCase": { + "unsafeName": "CastMember", + "safeName": "CastMember" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "types": [ + { + "_type": "named", + "value": "type_types:Actor" + }, + { + "_type": "named", + "value": "type_types:Actress" + }, + { + "_type": "named", + "value": "type_types:StuntDouble" + } + ] + }, + "type_types:Actor": { + "type": "object", + "declaration": { + "name": { + "originalName": "Actor", + "camelCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "snakeCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "screamingSnakeCase": { + "unsafeName": "ACTOR", + "safeName": "ACTOR" + }, + "pascalCase": { + "unsafeName": "Actor", + "safeName": "Actor" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:Actress": { + "type": "object", + "declaration": { + "name": { + "originalName": "Actress", + "camelCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "snakeCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "screamingSnakeCase": { + "unsafeName": "ACTRESS", + "safeName": "ACTRESS" + }, + "pascalCase": { + "unsafeName": "Actress", + "safeName": "Actress" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:StuntDouble": { + "type": "object", + "declaration": { + "name": { + "originalName": "StuntDouble", + "camelCase": { + "unsafeName": "stuntDouble", + "safeName": "stuntDouble" + }, + "snakeCase": { + "unsafeName": "stunt_double", + "safeName": "stunt_double" + }, + "screamingSnakeCase": { + "unsafeName": "STUNT_DOUBLE", + "safeName": "STUNT_DOUBLE" + }, + "pascalCase": { + "unsafeName": "StuntDouble", + "safeName": "StuntDouble" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "actorOrActressId", + "camelCase": { + "unsafeName": "actorOrActressID", + "safeName": "actorOrActressID" + }, + "snakeCase": { + "unsafeName": "actor_or_actress_id", + "safeName": "actor_or_actress_id" + }, + "screamingSnakeCase": { + "unsafeName": "ACTOR_OR_ACTRESS_ID", + "safeName": "ACTOR_OR_ACTRESS_ID" + }, + "pascalCase": { + "unsafeName": "ActorOrActressID", + "safeName": "ActorOrActressID" + } + }, + "wireValue": "actorOrActressId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:ExtendedMovie": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExtendedMovie", + "camelCase": { + "unsafeName": "extendedMovie", + "safeName": "extendedMovie" + }, + "snakeCase": { + "unsafeName": "extended_movie", + "safeName": "extended_movie" + }, + "screamingSnakeCase": { + "unsafeName": "EXTENDED_MOVIE", + "safeName": "EXTENDED_MOVIE" + }, + "pascalCase": { + "unsafeName": "ExtendedMovie", + "safeName": "ExtendedMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "prequel", + "camelCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "snakeCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "screamingSnakeCase": { + "unsafeName": "PREQUEL", + "safeName": "PREQUEL" + }, + "pascalCase": { + "unsafeName": "Prequel", + "safeName": "Prequel" + } + }, + "wireValue": "prequel" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:MovieId" + } + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "from", + "camelCase": { + "unsafeName": "from", + "safeName": "from" + }, + "snakeCase": { + "unsafeName": "from", + "safeName": "from" + }, + "screamingSnakeCase": { + "unsafeName": "FROM", + "safeName": "FROM" + }, + "pascalCase": { + "unsafeName": "From", + "safeName": "From" + } + }, + "wireValue": "from" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "movie" + } + } + }, + { + "name": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "typeReference": { + "_type": "named", + "value": "type_commons/types:Tag" + } + }, + { + "name": { + "name": { + "originalName": "book", + "camelCase": { + "unsafeName": "book", + "safeName": "book" + }, + "snakeCase": { + "unsafeName": "book", + "safeName": "book" + }, + "screamingSnakeCase": { + "unsafeName": "BOOK", + "safeName": "BOOK" + }, + "pascalCase": { + "unsafeName": "Book", + "safeName": "Book" + } + }, + "wireValue": "book" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + }, + { + "name": { + "name": { + "originalName": "revenue", + "camelCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "snakeCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "screamingSnakeCase": { + "unsafeName": "REVENUE", + "safeName": "REVENUE" + }, + "pascalCase": { + "unsafeName": "Revenue", + "safeName": "Revenue" + } + }, + "wireValue": "revenue" + }, + "typeReference": { + "_type": "primitive", + "value": "LONG" + } + }, + { + "name": { + "name": { + "originalName": "cast", + "camelCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "snakeCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "screamingSnakeCase": { + "unsafeName": "CAST", + "safeName": "CAST" + }, + "pascalCase": { + "unsafeName": "Cast", + "safeName": "Cast" + } + }, + "wireValue": "cast" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_types:Moment": { + "type": "object", + "declaration": { + "name": { + "originalName": "Moment", + "camelCase": { + "unsafeName": "moment", + "safeName": "moment" + }, + "snakeCase": { + "unsafeName": "moment", + "safeName": "moment" + }, + "screamingSnakeCase": { + "unsafeName": "MOMENT", + "safeName": "MOMENT" + }, + "pascalCase": { + "unsafeName": "Moment", + "safeName": "Moment" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + { + "name": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + }, + { + "name": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + ] + }, + "type_types:File": { + "type": "object", + "declaration": { + "name": { + "originalName": "File", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:Directory": { + "type": "object", + "declaration": { + "name": { + "originalName": "Directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:File" + } + } + } + }, + { + "name": { + "name": { + "originalName": "directories", + "camelCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "snakeCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORIES", + "safeName": "DIRECTORIES" + }, + "pascalCase": { + "unsafeName": "Directories", + "safeName": "Directories" + } + }, + "wireValue": "directories" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Directory" + } + } + } + } + ] + }, + "type_types:Node": { + "type": "object", + "declaration": { + "name": { + "originalName": "Node", + "camelCase": { + "unsafeName": "node", + "safeName": "node" + }, + "snakeCase": { + "unsafeName": "node", + "safeName": "node" + }, + "screamingSnakeCase": { + "unsafeName": "NODE", + "safeName": "NODE" + }, + "pascalCase": { + "unsafeName": "Node", + "safeName": "Node" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Node" + } + } + } + }, + { + "name": { + "name": { + "originalName": "trees", + "camelCase": { + "unsafeName": "trees", + "safeName": "trees" + }, + "snakeCase": { + "unsafeName": "trees", + "safeName": "trees" + }, + "screamingSnakeCase": { + "unsafeName": "TREES", + "safeName": "TREES" + }, + "pascalCase": { + "unsafeName": "Trees", + "safeName": "Trees" + } + }, + "wireValue": "trees" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Tree" + } + } + } + } + ] + }, + "type_types:Tree": { + "type": "object", + "declaration": { + "name": { + "originalName": "Tree", + "camelCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "snakeCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "screamingSnakeCase": { + "unsafeName": "TREE", + "safeName": "TREE" + }, + "pascalCase": { + "unsafeName": "Tree", + "safeName": "Tree" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Node" + } + } + } + } + ] + }, + "type_types:Metadata": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "extra", + "camelCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "snakeCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "screamingSnakeCase": { + "unsafeName": "EXTRA", + "safeName": "EXTRA" + }, + "pascalCase": { + "unsafeName": "Extra", + "safeName": "Extra" + } + }, + "wireValue": "extra" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "markdown": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "markdown", + "camelCase": { + "unsafeName": "markdown", + "safeName": "markdown" + }, + "snakeCase": { + "unsafeName": "markdown", + "safeName": "markdown" + }, + "screamingSnakeCase": { + "unsafeName": "MARKDOWN", + "safeName": "MARKDOWN" + }, + "pascalCase": { + "unsafeName": "Markdown", + "safeName": "Markdown" + } + }, + "wireValue": "markdown" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "extra", + "camelCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "snakeCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "screamingSnakeCase": { + "unsafeName": "EXTRA", + "safeName": "EXTRA" + }, + "pascalCase": { + "unsafeName": "Extra", + "safeName": "Extra" + } + }, + "wireValue": "extra" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + } + }, + "type_types:Exception": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "generic": { + "type": "samePropertiesAsObject", + "typeId": "type_types:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "generic", + "camelCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "snakeCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC", + "safeName": "GENERIC" + }, + "pascalCase": { + "unsafeName": "Generic", + "safeName": "Generic" + } + }, + "wireValue": "generic" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "timeout": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "timeout", + "camelCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "snakeCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "screamingSnakeCase": { + "unsafeName": "TIMEOUT", + "safeName": "TIMEOUT" + }, + "pascalCase": { + "unsafeName": "Timeout", + "safeName": "Timeout" + } + }, + "wireValue": "timeout" + }, + "properties": null + } + } + }, + "type_types:ExceptionInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExceptionInfo", + "camelCase": { + "unsafeName": "exceptionInfo", + "safeName": "exceptionInfo" + }, + "snakeCase": { + "unsafeName": "exception_info", + "safeName": "exception_info" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_INFO", + "safeName": "EXCEPTION_INFO" + }, + "pascalCase": { + "unsafeName": "ExceptionInfo", + "safeName": "ExceptionInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:MigrationStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "MigrationStatus", + "camelCase": { + "unsafeName": "migrationStatus", + "safeName": "migrationStatus" + }, + "snakeCase": { + "unsafeName": "migration_status", + "safeName": "migration_status" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION_STATUS", + "safeName": "MIGRATION_STATUS" + }, + "pascalCase": { + "unsafeName": "MigrationStatus", + "safeName": "MigrationStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "RUNNING", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "RUNNING" + }, + { + "name": { + "originalName": "FAILED", + "camelCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "snakeCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "screamingSnakeCase": { + "unsafeName": "FAILED", + "safeName": "FAILED" + }, + "pascalCase": { + "unsafeName": "Failed", + "safeName": "Failed" + } + }, + "wireValue": "FAILED" + }, + { + "name": { + "originalName": "FINISHED", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "FINISHED" + } + ] + }, + "type_types:Migration": { + "type": "object", + "declaration": { + "name": { + "originalName": "Migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MigrationStatus" + } + } + ] + }, + "type_types:Request": { + "type": "object", + "declaration": { + "name": { + "originalName": "Request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "wireValue": "request" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + }, + "type_types:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "wireValue": "response" + }, + "typeReference": { + "_type": "unknown" + } + }, + { + "name": { + "name": { + "originalName": "identifiers", + "camelCase": { + "unsafeName": "identifiers", + "safeName": "identifiers" + }, + "snakeCase": { + "unsafeName": "identifiers", + "safeName": "identifiers" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIERS", + "safeName": "IDENTIFIERS" + }, + "pascalCase": { + "unsafeName": "Identifiers", + "safeName": "Identifiers" + } + }, + "wireValue": "identifiers" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Identifier" + } + } + } + ] + }, + "type_types:ResponseType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ResponseType", + "camelCase": { + "unsafeName": "responseType", + "safeName": "responseType" + }, + "snakeCase": { + "unsafeName": "response_type", + "safeName": "response_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE_TYPE", + "safeName": "RESPONSE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResponseType", + "safeName": "ResponseType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + } + ] + }, + "type_types:Test": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "and": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "and", + "camelCase": { + "unsafeName": "and", + "safeName": "and" + }, + "snakeCase": { + "unsafeName": "and", + "safeName": "and" + }, + "screamingSnakeCase": { + "unsafeName": "AND", + "safeName": "AND" + }, + "pascalCase": { + "unsafeName": "And", + "safeName": "And" + } + }, + "wireValue": "and" + }, + "properties": null + }, + "or": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "or", + "camelCase": { + "unsafeName": "or", + "safeName": "or" + }, + "snakeCase": { + "unsafeName": "or", + "safeName": "or" + }, + "screamingSnakeCase": { + "unsafeName": "OR", + "safeName": "OR" + }, + "pascalCase": { + "unsafeName": "Or", + "safeName": "Or" + } + }, + "wireValue": "or" + }, + "properties": null + } + } + }, + "type_types:Entity": { + "type": "object", + "declaration": { + "name": { + "originalName": "Entity", + "camelCase": { + "unsafeName": "entity", + "safeName": "entity" + }, + "snakeCase": { + "unsafeName": "entity", + "safeName": "entity" + }, + "screamingSnakeCase": { + "unsafeName": "ENTITY", + "safeName": "ENTITY" + }, + "pascalCase": { + "unsafeName": "Entity", + "safeName": "Entity" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.echo": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "echo", + "camelCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "snakeCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "screamingSnakeCase": { + "unsafeName": "ECHO", + "safeName": "ECHO" + }, + "pascalCase": { + "unsafeName": "Echo", + "safeName": "Echo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_file/notification/service.getException": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getException", + "camelCase": { + "unsafeName": "getException", + "safeName": "getException" + }, + "snakeCase": { + "unsafeName": "get_exception", + "safeName": "get_exception" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXCEPTION", + "safeName": "GET_EXCEPTION" + }, + "pascalCase": { + "unsafeName": "GetException", + "safeName": "GetException" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "notification", + "camelCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "snakeCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "screamingSnakeCase": { + "unsafeName": "NOTIFICATION", + "safeName": "NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "Notification", + "safeName": "Notification" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "notification", + "camelCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "snakeCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "screamingSnakeCase": { + "unsafeName": "NOTIFICATION", + "safeName": "NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "Notification", + "safeName": "Notification" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/file/notification/{notificationId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "notificationId", + "camelCase": { + "unsafeName": "notificationID", + "safeName": "notificationID" + }, + "snakeCase": { + "unsafeName": "notification_id", + "safeName": "notification_id" + }, + "screamingSnakeCase": { + "unsafeName": "NOTIFICATION_ID", + "safeName": "NOTIFICATION_ID" + }, + "pascalCase": { + "unsafeName": "NotificationID", + "safeName": "NotificationID" + } + }, + "wireValue": "notificationId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_file/service.getFile": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getFile", + "camelCase": { + "unsafeName": "getFile", + "safeName": "getFile" + }, + "snakeCase": { + "unsafeName": "get_file", + "safeName": "get_file" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FILE", + "safeName": "GET_FILE" + }, + "pascalCase": { + "unsafeName": "GetFile", + "safeName": "GetFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/file/{filename}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetFileRequest", + "camelCase": { + "unsafeName": "getFileRequest", + "safeName": "getFileRequest" + }, + "snakeCase": { + "unsafeName": "get_file_request", + "safeName": "get_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FILE_REQUEST", + "safeName": "GET_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetFileRequest", + "safeName": "GetFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_health/service.check": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "check", + "camelCase": { + "unsafeName": "check", + "safeName": "check" + }, + "snakeCase": { + "unsafeName": "check", + "safeName": "check" + }, + "screamingSnakeCase": { + "unsafeName": "CHECK", + "safeName": "CHECK" + }, + "pascalCase": { + "unsafeName": "Check", + "safeName": "Check" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/check/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_health/service.ping": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "ping", + "camelCase": { + "unsafeName": "ping", + "safeName": "ping" + }, + "snakeCase": { + "unsafeName": "ping", + "safeName": "ping" + }, + "screamingSnakeCase": { + "unsafeName": "PING", + "safeName": "PING" + }, + "pascalCase": { + "unsafeName": "Ping", + "safeName": "Ping" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/ping" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movie/{movieId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "movieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "wireValue": "movieId" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.createMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types:Movie" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMetadata": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getMetadata", + "camelCase": { + "unsafeName": "getMetadata", + "safeName": "getMetadata" + }, + "snakeCase": { + "unsafeName": "get_metadata", + "safeName": "get_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA", + "safeName": "GET_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMetadata", + "safeName": "GetMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/metadata" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetMetadataRequest", + "camelCase": { + "unsafeName": "getMetadataRequest", + "safeName": "getMetadataRequest" + }, + "snakeCase": { + "unsafeName": "get_metadata_request", + "safeName": "get_metadata_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA_REQUEST", + "safeName": "GET_METADATA_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetMetadataRequest", + "safeName": "GetMetadataRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "shallow", + "camelCase": { + "unsafeName": "shallow", + "safeName": "shallow" + }, + "snakeCase": { + "unsafeName": "shallow", + "safeName": "shallow" + }, + "screamingSnakeCase": { + "unsafeName": "SHALLOW", + "safeName": "SHALLOW" + }, + "pascalCase": { + "unsafeName": "Shallow", + "safeName": "Shallow" + } + }, + "wireValue": "shallow" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [ + { + "name": { + "name": { + "originalName": "X-API-Version", + "camelCase": { + "unsafeName": "xAPIVersion", + "safeName": "xAPIVersion" + }, + "snakeCase": { + "unsafeName": "x_api_version", + "safeName": "x_api_version" + }, + "screamingSnakeCase": { + "unsafeName": "X_API_VERSION", + "safeName": "X_API_VERSION" + }, + "pascalCase": { + "unsafeName": "XAPIVersion", + "safeName": "XAPIVersion" + } + }, + "wireValue": "X-API-Version" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getResponse": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getResponse", + "camelCase": { + "unsafeName": "getResponse", + "safeName": "getResponse" + }, + "snakeCase": { + "unsafeName": "get_response", + "safeName": "get_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_RESPONSE", + "safeName": "GET_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetResponse", + "safeName": "GetResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/response" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/exhaustive.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/exhaustive.json new file mode 100644 index 00000000000..cd4f08e46d9 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/exhaustive.json @@ -0,0 +1,8721 @@ +{ + "version": "1.0.0", + "types": { + "type_general-errors:BadObjectRequestInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "BadObjectRequestInfo", + "camelCase": { + "unsafeName": "badObjectRequestInfo", + "safeName": "badObjectRequestInfo" + }, + "snakeCase": { + "unsafeName": "bad_object_request_info", + "safeName": "bad_object_request_info" + }, + "screamingSnakeCase": { + "unsafeName": "BAD_OBJECT_REQUEST_INFO", + "safeName": "BAD_OBJECT_REQUEST_INFO" + }, + "pascalCase": { + "unsafeName": "BadObjectRequestInfo", + "safeName": "BadObjectRequestInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "general-errors", + "camelCase": { + "unsafeName": "generalErrors", + "safeName": "generalErrors" + }, + "snakeCase": { + "unsafeName": "general_errors", + "safeName": "general_errors" + }, + "screamingSnakeCase": { + "unsafeName": "GENERAL_ERRORS", + "safeName": "GENERAL_ERRORS" + }, + "pascalCase": { + "unsafeName": "GeneralErrors", + "safeName": "GeneralErrors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "general-errors", + "camelCase": { + "unsafeName": "generalErrors", + "safeName": "generalErrors" + }, + "snakeCase": { + "unsafeName": "general_errors", + "safeName": "general_errors" + }, + "screamingSnakeCase": { + "unsafeName": "GENERAL_ERRORS", + "safeName": "GENERAL_ERRORS" + }, + "pascalCase": { + "unsafeName": "GeneralErrors", + "safeName": "GeneralErrors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types/enum:WeatherReport": { + "type": "enum", + "declaration": { + "name": { + "originalName": "WeatherReport", + "camelCase": { + "unsafeName": "weatherReport", + "safeName": "weatherReport" + }, + "snakeCase": { + "unsafeName": "weather_report", + "safeName": "weather_report" + }, + "screamingSnakeCase": { + "unsafeName": "WEATHER_REPORT", + "safeName": "WEATHER_REPORT" + }, + "pascalCase": { + "unsafeName": "WeatherReport", + "safeName": "WeatherReport" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "SUNNY", + "camelCase": { + "unsafeName": "sunny", + "safeName": "sunny" + }, + "snakeCase": { + "unsafeName": "sunny", + "safeName": "sunny" + }, + "screamingSnakeCase": { + "unsafeName": "SUNNY", + "safeName": "SUNNY" + }, + "pascalCase": { + "unsafeName": "Sunny", + "safeName": "Sunny" + } + }, + "wireValue": "SUNNY" + }, + { + "name": { + "originalName": "CLOUDY", + "camelCase": { + "unsafeName": "cloudy", + "safeName": "cloudy" + }, + "snakeCase": { + "unsafeName": "cloudy", + "safeName": "cloudy" + }, + "screamingSnakeCase": { + "unsafeName": "CLOUDY", + "safeName": "CLOUDY" + }, + "pascalCase": { + "unsafeName": "Cloudy", + "safeName": "Cloudy" + } + }, + "wireValue": "CLOUDY" + }, + { + "name": { + "originalName": "RAINING", + "camelCase": { + "unsafeName": "raining", + "safeName": "raining" + }, + "snakeCase": { + "unsafeName": "raining", + "safeName": "raining" + }, + "screamingSnakeCase": { + "unsafeName": "RAINING", + "safeName": "RAINING" + }, + "pascalCase": { + "unsafeName": "Raining", + "safeName": "Raining" + } + }, + "wireValue": "RAINING" + }, + { + "name": { + "originalName": "SNOWING", + "camelCase": { + "unsafeName": "snowing", + "safeName": "snowing" + }, + "snakeCase": { + "unsafeName": "snowing", + "safeName": "snowing" + }, + "screamingSnakeCase": { + "unsafeName": "SNOWING", + "safeName": "SNOWING" + }, + "pascalCase": { + "unsafeName": "Snowing", + "safeName": "Snowing" + } + }, + "wireValue": "SNOWING" + } + ] + }, + "type_types/object:ObjectWithOptionalField": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectWithOptionalField", + "camelCase": { + "unsafeName": "objectWithOptionalField", + "safeName": "objectWithOptionalField" + }, + "snakeCase": { + "unsafeName": "object_with_optional_field", + "safeName": "object_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", + "safeName": "OBJECT_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "ObjectWithOptionalField", + "safeName": "ObjectWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "long", + "camelCase": { + "unsafeName": "long", + "safeName": "long" + }, + "snakeCase": { + "unsafeName": "long", + "safeName": "long" + }, + "screamingSnakeCase": { + "unsafeName": "LONG", + "safeName": "LONG" + }, + "pascalCase": { + "unsafeName": "Long", + "safeName": "Long" + } + }, + "wireValue": "long" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "LONG" + } + } + }, + { + "name": { + "name": { + "originalName": "double", + "camelCase": { + "unsafeName": "double", + "safeName": "double" + }, + "snakeCase": { + "unsafeName": "double", + "safeName": "double" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE", + "safeName": "DOUBLE" + }, + "pascalCase": { + "unsafeName": "Double", + "safeName": "Double" + } + }, + "wireValue": "double" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + { + "name": { + "name": { + "originalName": "bool", + "camelCase": { + "unsafeName": "bool", + "safeName": "bool" + }, + "snakeCase": { + "unsafeName": "bool", + "safeName": "bool" + }, + "screamingSnakeCase": { + "unsafeName": "BOOL", + "safeName": "BOOL" + }, + "pascalCase": { + "unsafeName": "Bool", + "safeName": "Bool" + } + }, + "wireValue": "bool" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + { + "name": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE" + } + } + }, + { + "name": { + "name": { + "originalName": "uuid", + "camelCase": { + "unsafeName": "uuid", + "safeName": "uuid" + }, + "snakeCase": { + "unsafeName": "uuid", + "safeName": "uuid" + }, + "screamingSnakeCase": { + "unsafeName": "UUID", + "safeName": "UUID" + }, + "pascalCase": { + "unsafeName": "UUID", + "safeName": "UUID" + } + }, + "wireValue": "uuid" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + { + "name": { + "name": { + "originalName": "base64", + "camelCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "snakeCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "screamingSnakeCase": { + "unsafeName": "BASE64", + "safeName": "BASE64" + }, + "pascalCase": { + "unsafeName": "Base64", + "safeName": "Base64" + } + }, + "wireValue": "base64" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BASE_64" + } + } + }, + { + "name": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "wireValue": "list" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "set", + "camelCase": { + "unsafeName": "set", + "safeName": "set" + }, + "snakeCase": { + "unsafeName": "set", + "safeName": "set" + }, + "screamingSnakeCase": { + "unsafeName": "SET", + "safeName": "SET" + }, + "pascalCase": { + "unsafeName": "Set", + "safeName": "Set" + } + }, + "wireValue": "set" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "map", + "camelCase": { + "unsafeName": "map", + "safeName": "map" + }, + "snakeCase": { + "unsafeName": "map", + "safeName": "map" + }, + "screamingSnakeCase": { + "unsafeName": "MAP", + "safeName": "MAP" + }, + "pascalCase": { + "unsafeName": "Map", + "safeName": "Map" + } + }, + "wireValue": "map" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "INTEGER" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "bigint", + "camelCase": { + "unsafeName": "bigint", + "safeName": "bigint" + }, + "snakeCase": { + "unsafeName": "bigint", + "safeName": "bigint" + }, + "screamingSnakeCase": { + "unsafeName": "BIGINT", + "safeName": "BIGINT" + }, + "pascalCase": { + "unsafeName": "Bigint", + "safeName": "Bigint" + } + }, + "wireValue": "bigint" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BIG_INTEGER" + } + } + } + ] + }, + "type_types/object:ObjectWithRequiredField": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectWithRequiredField", + "camelCase": { + "unsafeName": "objectWithRequiredField", + "safeName": "objectWithRequiredField" + }, + "snakeCase": { + "unsafeName": "object_with_required_field", + "safeName": "object_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", + "safeName": "OBJECT_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "ObjectWithRequiredField", + "safeName": "ObjectWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types/object:ObjectWithMapOfMap": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectWithMapOfMap", + "camelCase": { + "unsafeName": "objectWithMapOfMap", + "safeName": "objectWithMapOfMap" + }, + "snakeCase": { + "unsafeName": "object_with_map_of_map", + "safeName": "object_with_map_of_map" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_MAP_OF_MAP", + "safeName": "OBJECT_WITH_MAP_OF_MAP" + }, + "pascalCase": { + "unsafeName": "ObjectWithMapOfMap", + "safeName": "ObjectWithMapOfMap" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "map", + "camelCase": { + "unsafeName": "map", + "safeName": "map" + }, + "snakeCase": { + "unsafeName": "map", + "safeName": "map" + }, + "screamingSnakeCase": { + "unsafeName": "MAP", + "safeName": "MAP" + }, + "pascalCase": { + "unsafeName": "Map", + "safeName": "Map" + } + }, + "wireValue": "map" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + } + ] + }, + "type_types/object:NestedObjectWithOptionalField": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedObjectWithOptionalField", + "camelCase": { + "unsafeName": "nestedObjectWithOptionalField", + "safeName": "nestedObjectWithOptionalField" + }, + "snakeCase": { + "unsafeName": "nested_object_with_optional_field", + "safeName": "nested_object_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", + "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "NestedObjectWithOptionalField", + "safeName": "NestedObjectWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "NestedObject", + "camelCase": { + "unsafeName": "nestedObject", + "safeName": "nestedObject" + }, + "snakeCase": { + "unsafeName": "nested_object", + "safeName": "nested_object" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT", + "safeName": "NESTED_OBJECT" + }, + "pascalCase": { + "unsafeName": "NestedObject", + "safeName": "NestedObject" + } + }, + "wireValue": "NestedObject" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + } + ] + }, + "type_types/object:NestedObjectWithRequiredField": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedObjectWithRequiredField", + "camelCase": { + "unsafeName": "nestedObjectWithRequiredField", + "safeName": "nestedObjectWithRequiredField" + }, + "snakeCase": { + "unsafeName": "nested_object_with_required_field", + "safeName": "nested_object_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", + "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "NestedObjectWithRequiredField", + "safeName": "NestedObjectWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "NestedObject", + "camelCase": { + "unsafeName": "nestedObject", + "safeName": "nestedObject" + }, + "snakeCase": { + "unsafeName": "nested_object", + "safeName": "nested_object" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT", + "safeName": "NESTED_OBJECT" + }, + "pascalCase": { + "unsafeName": "NestedObject", + "safeName": "NestedObject" + } + }, + "wireValue": "NestedObject" + }, + "typeReference": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + ] + }, + "type_types/object:DoubleOptional": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoubleOptional", + "camelCase": { + "unsafeName": "doubleOptional", + "safeName": "doubleOptional" + }, + "snakeCase": { + "unsafeName": "double_optional", + "safeName": "double_optional" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_OPTIONAL", + "safeName": "DOUBLE_OPTIONAL" + }, + "pascalCase": { + "unsafeName": "DoubleOptional", + "safeName": "DoubleOptional" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "optionalAlias", + "camelCase": { + "unsafeName": "optionalAlias", + "safeName": "optionalAlias" + }, + "snakeCase": { + "unsafeName": "optional_alias", + "safeName": "optional_alias" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_ALIAS", + "safeName": "OPTIONAL_ALIAS" + }, + "pascalCase": { + "unsafeName": "OptionalAlias", + "safeName": "OptionalAlias" + } + }, + "wireValue": "optionalAlias" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types/object:OptionalAlias" + } + } + } + ] + }, + "type_types/object:OptionalAlias": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalAlias", + "camelCase": { + "unsafeName": "optionalAlias", + "safeName": "optionalAlias" + }, + "snakeCase": { + "unsafeName": "optional_alias", + "safeName": "optional_alias" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_ALIAS", + "safeName": "OPTIONAL_ALIAS" + }, + "pascalCase": { + "unsafeName": "OptionalAlias", + "safeName": "OptionalAlias" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "type_types/union:Animal": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Animal", + "camelCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "snakeCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "screamingSnakeCase": { + "unsafeName": "ANIMAL", + "safeName": "ANIMAL" + }, + "pascalCase": { + "unsafeName": "Animal", + "safeName": "Animal" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "animal", + "camelCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "snakeCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "screamingSnakeCase": { + "unsafeName": "ANIMAL", + "safeName": "ANIMAL" + }, + "pascalCase": { + "unsafeName": "Animal", + "safeName": "Animal" + } + }, + "wireValue": "animal" + }, + "types": { + "dog": { + "type": "samePropertiesAsObject", + "typeId": "type_types/union:Dog", + "discriminantValue": { + "name": { + "originalName": "dog", + "camelCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "snakeCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "screamingSnakeCase": { + "unsafeName": "DOG", + "safeName": "DOG" + }, + "pascalCase": { + "unsafeName": "Dog", + "safeName": "Dog" + } + }, + "wireValue": "dog" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "likesToWoof", + "camelCase": { + "unsafeName": "likesToWoof", + "safeName": "likesToWoof" + }, + "snakeCase": { + "unsafeName": "likes_to_woof", + "safeName": "likes_to_woof" + }, + "screamingSnakeCase": { + "unsafeName": "LIKES_TO_WOOF", + "safeName": "LIKES_TO_WOOF" + }, + "pascalCase": { + "unsafeName": "LikesToWoof", + "safeName": "LikesToWoof" + } + }, + "wireValue": "likesToWoof" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "cat": { + "type": "samePropertiesAsObject", + "typeId": "type_types/union:Cat", + "discriminantValue": { + "name": { + "originalName": "cat", + "camelCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "snakeCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "screamingSnakeCase": { + "unsafeName": "CAT", + "safeName": "CAT" + }, + "pascalCase": { + "unsafeName": "Cat", + "safeName": "Cat" + } + }, + "wireValue": "cat" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "likesToMeow", + "camelCase": { + "unsafeName": "likesToMeow", + "safeName": "likesToMeow" + }, + "snakeCase": { + "unsafeName": "likes_to_meow", + "safeName": "likes_to_meow" + }, + "screamingSnakeCase": { + "unsafeName": "LIKES_TO_MEOW", + "safeName": "LIKES_TO_MEOW" + }, + "pascalCase": { + "unsafeName": "LikesToMeow", + "safeName": "LikesToMeow" + } + }, + "wireValue": "likesToMeow" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + } + } + }, + "type_types/union:Dog": { + "type": "object", + "declaration": { + "name": { + "originalName": "Dog", + "camelCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "snakeCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "screamingSnakeCase": { + "unsafeName": "DOG", + "safeName": "DOG" + }, + "pascalCase": { + "unsafeName": "Dog", + "safeName": "Dog" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "likesToWoof", + "camelCase": { + "unsafeName": "likesToWoof", + "safeName": "likesToWoof" + }, + "snakeCase": { + "unsafeName": "likes_to_woof", + "safeName": "likes_to_woof" + }, + "screamingSnakeCase": { + "unsafeName": "LIKES_TO_WOOF", + "safeName": "LIKES_TO_WOOF" + }, + "pascalCase": { + "unsafeName": "LikesToWoof", + "safeName": "LikesToWoof" + } + }, + "wireValue": "likesToWoof" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_types/union:Cat": { + "type": "object", + "declaration": { + "name": { + "originalName": "Cat", + "camelCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "snakeCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "screamingSnakeCase": { + "unsafeName": "CAT", + "safeName": "CAT" + }, + "pascalCase": { + "unsafeName": "Cat", + "safeName": "Cat" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "likesToMeow", + "camelCase": { + "unsafeName": "likesToMeow", + "safeName": "likesToMeow" + }, + "snakeCase": { + "unsafeName": "likes_to_meow", + "safeName": "likes_to_meow" + }, + "screamingSnakeCase": { + "unsafeName": "LIKES_TO_MEOW", + "safeName": "LIKES_TO_MEOW" + }, + "pascalCase": { + "unsafeName": "LikesToMeow", + "safeName": "LikesToMeow" + } + }, + "wireValue": "likesToMeow" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_endpoints/container.getAndReturnListOfPrimitives": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnListOfPrimitives", + "camelCase": { + "unsafeName": "getAndReturnListOfPrimitives", + "safeName": "getAndReturnListOfPrimitives" + }, + "snakeCase": { + "unsafeName": "get_and_return_list_of_primitives", + "safeName": "get_and_return_list_of_primitives" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_LIST_OF_PRIMITIVES", + "safeName": "GET_AND_RETURN_LIST_OF_PRIMITIVES" + }, + "pascalCase": { + "unsafeName": "GetAndReturnListOfPrimitives", + "safeName": "GetAndReturnListOfPrimitives" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/list-of-primitives" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnListOfObjects": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnListOfObjects", + "camelCase": { + "unsafeName": "getAndReturnListOfObjects", + "safeName": "getAndReturnListOfObjects" + }, + "snakeCase": { + "unsafeName": "get_and_return_list_of_objects", + "safeName": "get_and_return_list_of_objects" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_LIST_OF_OBJECTS", + "safeName": "GET_AND_RETURN_LIST_OF_OBJECTS" + }, + "pascalCase": { + "unsafeName": "GetAndReturnListOfObjects", + "safeName": "GetAndReturnListOfObjects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/list-of-objects" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnSetOfPrimitives": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnSetOfPrimitives", + "camelCase": { + "unsafeName": "getAndReturnSetOfPrimitives", + "safeName": "getAndReturnSetOfPrimitives" + }, + "snakeCase": { + "unsafeName": "get_and_return_set_of_primitives", + "safeName": "get_and_return_set_of_primitives" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_SET_OF_PRIMITIVES", + "safeName": "GET_AND_RETURN_SET_OF_PRIMITIVES" + }, + "pascalCase": { + "unsafeName": "GetAndReturnSetOfPrimitives", + "safeName": "GetAndReturnSetOfPrimitives" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/set-of-primitives" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnSetOfObjects": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnSetOfObjects", + "camelCase": { + "unsafeName": "getAndReturnSetOfObjects", + "safeName": "getAndReturnSetOfObjects" + }, + "snakeCase": { + "unsafeName": "get_and_return_set_of_objects", + "safeName": "get_and_return_set_of_objects" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_SET_OF_OBJECTS", + "safeName": "GET_AND_RETURN_SET_OF_OBJECTS" + }, + "pascalCase": { + "unsafeName": "GetAndReturnSetOfObjects", + "safeName": "GetAndReturnSetOfObjects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/set-of-objects" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnMapPrimToPrim": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnMapPrimToPrim", + "camelCase": { + "unsafeName": "getAndReturnMapPrimToPrim", + "safeName": "getAndReturnMapPrimToPrim" + }, + "snakeCase": { + "unsafeName": "get_and_return_map_prim_to_prim", + "safeName": "get_and_return_map_prim_to_prim" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_MAP_PRIM_TO_PRIM", + "safeName": "GET_AND_RETURN_MAP_PRIM_TO_PRIM" + }, + "pascalCase": { + "unsafeName": "GetAndReturnMapPrimToPrim", + "safeName": "GetAndReturnMapPrimToPrim" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/map-prim-to-prim" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnMapOfPrimToObject": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnMapOfPrimToObject", + "camelCase": { + "unsafeName": "getAndReturnMapOfPrimToObject", + "safeName": "getAndReturnMapOfPrimToObject" + }, + "snakeCase": { + "unsafeName": "get_and_return_map_of_prim_to_object", + "safeName": "get_and_return_map_of_prim_to_object" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_MAP_OF_PRIM_TO_OBJECT", + "safeName": "GET_AND_RETURN_MAP_OF_PRIM_TO_OBJECT" + }, + "pascalCase": { + "unsafeName": "GetAndReturnMapOfPrimToObject", + "safeName": "GetAndReturnMapOfPrimToObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/map-prim-to-object" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnOptional": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnOptional", + "camelCase": { + "unsafeName": "getAndReturnOptional", + "safeName": "getAndReturnOptional" + }, + "snakeCase": { + "unsafeName": "get_and_return_optional", + "safeName": "get_and_return_optional" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_OPTIONAL", + "safeName": "GET_AND_RETURN_OPTIONAL" + }, + "pascalCase": { + "unsafeName": "GetAndReturnOptional", + "safeName": "GetAndReturnOptional" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/opt-objects" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/enum.getAndReturnEnum": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnEnum", + "camelCase": { + "unsafeName": "getAndReturnEnum", + "safeName": "getAndReturnEnum" + }, + "snakeCase": { + "unsafeName": "get_and_return_enum", + "safeName": "get_and_return_enum" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_ENUM", + "safeName": "GET_AND_RETURN_ENUM" + }, + "pascalCase": { + "unsafeName": "GetAndReturnEnum", + "safeName": "GetAndReturnEnum" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + } + }, + "location": { + "method": "POST", + "path": "/enum" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/enum:WeatherReport" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testGet": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testGet", + "camelCase": { + "unsafeName": "testGet", + "safeName": "testGet" + }, + "snakeCase": { + "unsafeName": "test_get", + "safeName": "test_get" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_GET", + "safeName": "TEST_GET" + }, + "pascalCase": { + "unsafeName": "TestGet", + "safeName": "TestGet" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "GET", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testPost": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testPost", + "camelCase": { + "unsafeName": "testPost", + "safeName": "testPost" + }, + "snakeCase": { + "unsafeName": "test_post", + "safeName": "test_post" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_POST", + "safeName": "TEST_POST" + }, + "pascalCase": { + "unsafeName": "TestPost", + "safeName": "TestPost" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "POST", + "path": "/http-methods" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testPut": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testPut", + "camelCase": { + "unsafeName": "testPut", + "safeName": "testPut" + }, + "snakeCase": { + "unsafeName": "test_put", + "safeName": "test_put" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_PUT", + "safeName": "TEST_PUT" + }, + "pascalCase": { + "unsafeName": "TestPut", + "safeName": "TestPut" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testPatch": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testPatch", + "camelCase": { + "unsafeName": "testPatch", + "safeName": "testPatch" + }, + "snakeCase": { + "unsafeName": "test_patch", + "safeName": "test_patch" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_PATCH", + "safeName": "TEST_PATCH" + }, + "pascalCase": { + "unsafeName": "TestPatch", + "safeName": "TestPatch" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "PATCH", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testDelete": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testDelete", + "camelCase": { + "unsafeName": "testDelete", + "safeName": "testDelete" + }, + "snakeCase": { + "unsafeName": "test_delete", + "safeName": "test_delete" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_DELETE", + "safeName": "TEST_DELETE" + }, + "pascalCase": { + "unsafeName": "TestDelete", + "safeName": "TestDelete" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnWithOptionalField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnWithOptionalField", + "camelCase": { + "unsafeName": "getAndReturnWithOptionalField", + "safeName": "getAndReturnWithOptionalField" + }, + "snakeCase": { + "unsafeName": "get_and_return_with_optional_field", + "safeName": "get_and_return_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_WITH_OPTIONAL_FIELD", + "safeName": "GET_AND_RETURN_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnWithOptionalField", + "safeName": "GetAndReturnWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-with-optional-field" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnWithRequiredField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnWithRequiredField", + "camelCase": { + "unsafeName": "getAndReturnWithRequiredField", + "safeName": "getAndReturnWithRequiredField" + }, + "snakeCase": { + "unsafeName": "get_and_return_with_required_field", + "safeName": "get_and_return_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_WITH_REQUIRED_FIELD", + "safeName": "GET_AND_RETURN_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnWithRequiredField", + "safeName": "GetAndReturnWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-with-required-field" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnWithMapOfMap": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnWithMapOfMap", + "camelCase": { + "unsafeName": "getAndReturnWithMapOfMap", + "safeName": "getAndReturnWithMapOfMap" + }, + "snakeCase": { + "unsafeName": "get_and_return_with_map_of_map", + "safeName": "get_and_return_with_map_of_map" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_WITH_MAP_OF_MAP", + "safeName": "GET_AND_RETURN_WITH_MAP_OF_MAP" + }, + "pascalCase": { + "unsafeName": "GetAndReturnWithMapOfMap", + "safeName": "GetAndReturnWithMapOfMap" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-with-map-of-map" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithMapOfMap" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnNestedWithOptionalField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnNestedWithOptionalField", + "camelCase": { + "unsafeName": "getAndReturnNestedWithOptionalField", + "safeName": "getAndReturnNestedWithOptionalField" + }, + "snakeCase": { + "unsafeName": "get_and_return_nested_with_optional_field", + "safeName": "get_and_return_nested_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_NESTED_WITH_OPTIONAL_FIELD", + "safeName": "GET_AND_RETURN_NESTED_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnNestedWithOptionalField", + "safeName": "GetAndReturnNestedWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-nested-with-optional-field" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:NestedObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnNestedWithRequiredField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnNestedWithRequiredField", + "camelCase": { + "unsafeName": "getAndReturnNestedWithRequiredField", + "safeName": "getAndReturnNestedWithRequiredField" + }, + "snakeCase": { + "unsafeName": "get_and_return_nested_with_required_field", + "safeName": "get_and_return_nested_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD", + "safeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnNestedWithRequiredField", + "safeName": "GetAndReturnNestedWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-nested-with-required-field/{string}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:NestedObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnNestedWithRequiredFieldAsList": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnNestedWithRequiredFieldAsList", + "camelCase": { + "unsafeName": "getAndReturnNestedWithRequiredFieldAsList", + "safeName": "getAndReturnNestedWithRequiredFieldAsList" + }, + "snakeCase": { + "unsafeName": "get_and_return_nested_with_required_field_as_list", + "safeName": "get_and_return_nested_with_required_field_as_list" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD_AS_LIST", + "safeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD_AS_LIST" + }, + "pascalCase": { + "unsafeName": "GetAndReturnNestedWithRequiredFieldAsList", + "safeName": "GetAndReturnNestedWithRequiredFieldAsList" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-nested-with-required-field-list" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types/object:NestedObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithPath": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithPath", + "camelCase": { + "unsafeName": "getWithPath", + "safeName": "getWithPath" + }, + "snakeCase": { + "unsafeName": "get_with_path", + "safeName": "get_with_path" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_PATH", + "safeName": "GET_WITH_PATH" + }, + "pascalCase": { + "unsafeName": "GetWithPath", + "safeName": "GetWithPath" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params/path/{param}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "param", + "camelCase": { + "unsafeName": "param", + "safeName": "param" + }, + "snakeCase": { + "unsafeName": "param", + "safeName": "param" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM", + "safeName": "PARAM" + }, + "pascalCase": { + "unsafeName": "Param", + "safeName": "Param" + } + }, + "wireValue": "param" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithQuery": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithQuery", + "camelCase": { + "unsafeName": "getWithQuery", + "safeName": "getWithQuery" + }, + "snakeCase": { + "unsafeName": "get_with_query", + "safeName": "get_with_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_QUERY", + "safeName": "GET_WITH_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithQuery", + "safeName": "GetWithQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetWithQuery", + "camelCase": { + "unsafeName": "getWithQuery", + "safeName": "getWithQuery" + }, + "snakeCase": { + "unsafeName": "get_with_query", + "safeName": "get_with_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_QUERY", + "safeName": "GET_WITH_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithQuery", + "safeName": "GetWithQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "number", + "camelCase": { + "unsafeName": "number", + "safeName": "number" + }, + "snakeCase": { + "unsafeName": "number", + "safeName": "number" + }, + "screamingSnakeCase": { + "unsafeName": "NUMBER", + "safeName": "NUMBER" + }, + "pascalCase": { + "unsafeName": "Number", + "safeName": "Number" + } + }, + "wireValue": "number" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithAllowMultipleQuery": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithAllowMultipleQuery", + "camelCase": { + "unsafeName": "getWithAllowMultipleQuery", + "safeName": "getWithAllowMultipleQuery" + }, + "snakeCase": { + "unsafeName": "get_with_allow_multiple_query", + "safeName": "get_with_allow_multiple_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_ALLOW_MULTIPLE_QUERY", + "safeName": "GET_WITH_ALLOW_MULTIPLE_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithAllowMultipleQuery", + "safeName": "GetWithAllowMultipleQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetWithMultipleQuery", + "camelCase": { + "unsafeName": "getWithMultipleQuery", + "safeName": "getWithMultipleQuery" + }, + "snakeCase": { + "unsafeName": "get_with_multiple_query", + "safeName": "get_with_multiple_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_MULTIPLE_QUERY", + "safeName": "GET_WITH_MULTIPLE_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithMultipleQuery", + "safeName": "GetWithMultipleQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "numer", + "camelCase": { + "unsafeName": "numer", + "safeName": "numer" + }, + "snakeCase": { + "unsafeName": "numer", + "safeName": "numer" + }, + "screamingSnakeCase": { + "unsafeName": "NUMER", + "safeName": "NUMER" + }, + "pascalCase": { + "unsafeName": "Numer", + "safeName": "Numer" + } + }, + "wireValue": "numer" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithPathAndQuery": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithPathAndQuery", + "camelCase": { + "unsafeName": "getWithPathAndQuery", + "safeName": "getWithPathAndQuery" + }, + "snakeCase": { + "unsafeName": "get_with_path_and_query", + "safeName": "get_with_path_and_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_PATH_AND_QUERY", + "safeName": "GET_WITH_PATH_AND_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithPathAndQuery", + "safeName": "GetWithPathAndQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params/path-query/{param}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetWithPathAndQuery", + "camelCase": { + "unsafeName": "getWithPathAndQuery", + "safeName": "getWithPathAndQuery" + }, + "snakeCase": { + "unsafeName": "get_with_path_and_query", + "safeName": "get_with_path_and_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_PATH_AND_QUERY", + "safeName": "GET_WITH_PATH_AND_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithPathAndQuery", + "safeName": "GetWithPathAndQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "param", + "camelCase": { + "unsafeName": "param", + "safeName": "param" + }, + "snakeCase": { + "unsafeName": "param", + "safeName": "param" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM", + "safeName": "PARAM" + }, + "pascalCase": { + "unsafeName": "Param", + "safeName": "Param" + } + }, + "wireValue": "param" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.modifyWithPath": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "modifyWithPath", + "camelCase": { + "unsafeName": "modifyWithPath", + "safeName": "modifyWithPath" + }, + "snakeCase": { + "unsafeName": "modify_with_path", + "safeName": "modify_with_path" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFY_WITH_PATH", + "safeName": "MODIFY_WITH_PATH" + }, + "pascalCase": { + "unsafeName": "ModifyWithPath", + "safeName": "ModifyWithPath" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/params/path/{param}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "param", + "camelCase": { + "unsafeName": "param", + "safeName": "param" + }, + "snakeCase": { + "unsafeName": "param", + "safeName": "param" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM", + "safeName": "PARAM" + }, + "pascalCase": { + "unsafeName": "Param", + "safeName": "Param" + } + }, + "wireValue": "param" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnString": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnString", + "camelCase": { + "unsafeName": "getAndReturnString", + "safeName": "getAndReturnString" + }, + "snakeCase": { + "unsafeName": "get_and_return_string", + "safeName": "get_and_return_string" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_STRING", + "safeName": "GET_AND_RETURN_STRING" + }, + "pascalCase": { + "unsafeName": "GetAndReturnString", + "safeName": "GetAndReturnString" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/string" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnInt": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnInt", + "camelCase": { + "unsafeName": "getAndReturnInt", + "safeName": "getAndReturnInt" + }, + "snakeCase": { + "unsafeName": "get_and_return_int", + "safeName": "get_and_return_int" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_INT", + "safeName": "GET_AND_RETURN_INT" + }, + "pascalCase": { + "unsafeName": "GetAndReturnInt", + "safeName": "GetAndReturnInt" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/integer" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnLong": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnLong", + "camelCase": { + "unsafeName": "getAndReturnLong", + "safeName": "getAndReturnLong" + }, + "snakeCase": { + "unsafeName": "get_and_return_long", + "safeName": "get_and_return_long" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_LONG", + "safeName": "GET_AND_RETURN_LONG" + }, + "pascalCase": { + "unsafeName": "GetAndReturnLong", + "safeName": "GetAndReturnLong" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/long" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "LONG" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnDouble": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnDouble", + "camelCase": { + "unsafeName": "getAndReturnDouble", + "safeName": "getAndReturnDouble" + }, + "snakeCase": { + "unsafeName": "get_and_return_double", + "safeName": "get_and_return_double" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_DOUBLE", + "safeName": "GET_AND_RETURN_DOUBLE" + }, + "pascalCase": { + "unsafeName": "GetAndReturnDouble", + "safeName": "GetAndReturnDouble" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/double" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnBool": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnBool", + "camelCase": { + "unsafeName": "getAndReturnBool", + "safeName": "getAndReturnBool" + }, + "snakeCase": { + "unsafeName": "get_and_return_bool", + "safeName": "get_and_return_bool" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_BOOL", + "safeName": "GET_AND_RETURN_BOOL" + }, + "pascalCase": { + "unsafeName": "GetAndReturnBool", + "safeName": "GetAndReturnBool" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/boolean" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnDatetime": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnDatetime", + "camelCase": { + "unsafeName": "getAndReturnDatetime", + "safeName": "getAndReturnDatetime" + }, + "snakeCase": { + "unsafeName": "get_and_return_datetime", + "safeName": "get_and_return_datetime" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_DATETIME", + "safeName": "GET_AND_RETURN_DATETIME" + }, + "pascalCase": { + "unsafeName": "GetAndReturnDatetime", + "safeName": "GetAndReturnDatetime" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/datetime" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnDate": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnDate", + "camelCase": { + "unsafeName": "getAndReturnDate", + "safeName": "getAndReturnDate" + }, + "snakeCase": { + "unsafeName": "get_and_return_date", + "safeName": "get_and_return_date" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_DATE", + "safeName": "GET_AND_RETURN_DATE" + }, + "pascalCase": { + "unsafeName": "GetAndReturnDate", + "safeName": "GetAndReturnDate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/date" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "DATE" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnUUID": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnUUID", + "camelCase": { + "unsafeName": "getAndReturnUUID", + "safeName": "getAndReturnUUID" + }, + "snakeCase": { + "unsafeName": "get_and_return_uuid", + "safeName": "get_and_return_uuid" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_UUID", + "safeName": "GET_AND_RETURN_UUID" + }, + "pascalCase": { + "unsafeName": "GetAndReturnUUID", + "safeName": "GetAndReturnUUID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/uuid" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnBase64": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnBase64", + "camelCase": { + "unsafeName": "getAndReturnBase64", + "safeName": "getAndReturnBase64" + }, + "snakeCase": { + "unsafeName": "get_and_return_base64", + "safeName": "get_and_return_base64" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_BASE64", + "safeName": "GET_AND_RETURN_BASE64" + }, + "pascalCase": { + "unsafeName": "GetAndReturnBase64", + "safeName": "GetAndReturnBase64" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/base64" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "BASE_64" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/union.getAndReturnUnion": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnUnion", + "camelCase": { + "unsafeName": "getAndReturnUnion", + "safeName": "getAndReturnUnion" + }, + "snakeCase": { + "unsafeName": "get_and_return_union", + "safeName": "get_and_return_union" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_UNION", + "safeName": "GET_AND_RETURN_UNION" + }, + "pascalCase": { + "unsafeName": "GetAndReturnUnion", + "safeName": "GetAndReturnUnion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "POST", + "path": "/union" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/union:Animal" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_inlined-requests.postWithObjectBodyandResponse": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithObjectBodyandResponse", + "camelCase": { + "unsafeName": "postWithObjectBodyandResponse", + "safeName": "postWithObjectBodyandResponse" + }, + "snakeCase": { + "unsafeName": "post_with_object_bodyand_response", + "safeName": "post_with_object_bodyand_response" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_OBJECT_BODYAND_RESPONSE", + "safeName": "POST_WITH_OBJECT_BODYAND_RESPONSE" + }, + "pascalCase": { + "unsafeName": "PostWithObjectBodyandResponse", + "safeName": "PostWithObjectBodyandResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + } + }, + "location": { + "method": "POST", + "path": "/req-bodies/object" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "PostWithObjectBody", + "camelCase": { + "unsafeName": "postWithObjectBody", + "safeName": "postWithObjectBody" + }, + "snakeCase": { + "unsafeName": "post_with_object_body", + "safeName": "post_with_object_body" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_OBJECT_BODY", + "safeName": "POST_WITH_OBJECT_BODY" + }, + "pascalCase": { + "unsafeName": "PostWithObjectBody", + "safeName": "PostWithObjectBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "NestedObject", + "camelCase": { + "unsafeName": "nestedObject", + "safeName": "nestedObject" + }, + "snakeCase": { + "unsafeName": "nested_object", + "safeName": "nested_object" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT", + "safeName": "NESTED_OBJECT" + }, + "pascalCase": { + "unsafeName": "NestedObject", + "safeName": "NestedObject" + } + }, + "wireValue": "NestedObject" + }, + "typeReference": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_no-auth.postWithNoAuth": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithNoAuth", + "camelCase": { + "unsafeName": "postWithNoAuth", + "safeName": "postWithNoAuth" + }, + "snakeCase": { + "unsafeName": "post_with_no_auth", + "safeName": "post_with_no_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_NO_AUTH", + "safeName": "POST_WITH_NO_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithNoAuth", + "safeName": "PostWithNoAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "no-auth", + "camelCase": { + "unsafeName": "noAuth", + "safeName": "noAuth" + }, + "snakeCase": { + "unsafeName": "no_auth", + "safeName": "no_auth" + }, + "screamingSnakeCase": { + "unsafeName": "NO_AUTH", + "safeName": "NO_AUTH" + }, + "pascalCase": { + "unsafeName": "NoAuth", + "safeName": "NoAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "no-auth", + "camelCase": { + "unsafeName": "noAuth", + "safeName": "noAuth" + }, + "snakeCase": { + "unsafeName": "no_auth", + "safeName": "no_auth" + }, + "screamingSnakeCase": { + "unsafeName": "NO_AUTH", + "safeName": "NO_AUTH" + }, + "pascalCase": { + "unsafeName": "NoAuth", + "safeName": "NoAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/no-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_no-req-body.getWithNoRequestBody": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithNoRequestBody", + "camelCase": { + "unsafeName": "getWithNoRequestBody", + "safeName": "getWithNoRequestBody" + }, + "snakeCase": { + "unsafeName": "get_with_no_request_body", + "safeName": "get_with_no_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_NO_REQUEST_BODY", + "safeName": "GET_WITH_NO_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "GetWithNoRequestBody", + "safeName": "GetWithNoRequestBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + ], + "packagePath": [], + "file": { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + } + }, + "location": { + "method": "GET", + "path": "/no-req-body" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_no-req-body.postWithNoRequestBody": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithNoRequestBody", + "camelCase": { + "unsafeName": "postWithNoRequestBody", + "safeName": "postWithNoRequestBody" + }, + "snakeCase": { + "unsafeName": "post_with_no_request_body", + "safeName": "post_with_no_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_NO_REQUEST_BODY", + "safeName": "POST_WITH_NO_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "PostWithNoRequestBody", + "safeName": "PostWithNoRequestBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + ], + "packagePath": [], + "file": { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + } + }, + "location": { + "method": "POST", + "path": "/no-req-body" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_req-with-headers.getWithCustomHeader": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithCustomHeader", + "camelCase": { + "unsafeName": "getWithCustomHeader", + "safeName": "getWithCustomHeader" + }, + "snakeCase": { + "unsafeName": "get_with_custom_header", + "safeName": "get_with_custom_header" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_CUSTOM_HEADER", + "safeName": "GET_WITH_CUSTOM_HEADER" + }, + "pascalCase": { + "unsafeName": "GetWithCustomHeader", + "safeName": "GetWithCustomHeader" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + ], + "packagePath": [], + "file": { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + } + }, + "location": { + "method": "POST", + "path": "/test-headers/custom-header" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ReqWithHeaders", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + ], + "packagePath": [], + "file": { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "X-TEST-ENDPOINT-HEADER", + "camelCase": { + "unsafeName": "xTestEndpointHeader", + "safeName": "xTestEndpointHeader" + }, + "snakeCase": { + "unsafeName": "x_test_endpoint_header", + "safeName": "x_test_endpoint_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_TEST_ENDPOINT_HEADER", + "safeName": "X_TEST_ENDPOINT_HEADER" + }, + "pascalCase": { + "unsafeName": "XTestEndpointHeader", + "safeName": "XTestEndpointHeader" + } + }, + "wireValue": "X-TEST-ENDPOINT-HEADER" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "referenced", + "bodyKey": { + "originalName": "body", + "camelCase": { + "unsafeName": "body", + "safeName": "body" + }, + "snakeCase": { + "unsafeName": "body", + "safeName": "body" + }, + "screamingSnakeCase": { + "unsafeName": "BODY", + "safeName": "BODY" + }, + "pascalCase": { + "unsafeName": "Body", + "safeName": "Body" + } + }, + "bodyType": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/extends.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/extends.json new file mode 100644 index 00000000000..2a46d42a37a --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/extends.json @@ -0,0 +1,513 @@ +{ + "version": "1.0.0", + "types": { + "type_:ExampleType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExampleType", + "camelCase": { + "unsafeName": "exampleType", + "safeName": "exampleType" + }, + "snakeCase": { + "unsafeName": "example_type", + "safeName": "example_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXAMPLE_TYPE", + "safeName": "EXAMPLE_TYPE" + }, + "pascalCase": { + "unsafeName": "ExampleType", + "safeName": "ExampleType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:NestedType": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedType", + "camelCase": { + "unsafeName": "nestedType", + "safeName": "nestedType" + }, + "snakeCase": { + "unsafeName": "nested_type", + "safeName": "nested_type" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_TYPE", + "safeName": "NESTED_TYPE" + }, + "pascalCase": { + "unsafeName": "NestedType", + "safeName": "NestedType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "raw", + "camelCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "snakeCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "screamingSnakeCase": { + "unsafeName": "RAW", + "safeName": "RAW" + }, + "pascalCase": { + "unsafeName": "Raw", + "safeName": "Raw" + } + }, + "wireValue": "raw" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Docs": { + "type": "object", + "declaration": { + "name": { + "originalName": "Docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:JSON": { + "type": "object", + "declaration": { + "name": { + "originalName": "JSON", + "camelCase": { + "unsafeName": "json", + "safeName": "json" + }, + "snakeCase": { + "unsafeName": "json", + "safeName": "json" + }, + "screamingSnakeCase": { + "unsafeName": "JSON", + "safeName": "JSON" + }, + "pascalCase": { + "unsafeName": "JSON", + "safeName": "JSON" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "raw", + "camelCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "snakeCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "screamingSnakeCase": { + "unsafeName": "RAW", + "safeName": "RAW" + }, + "pascalCase": { + "unsafeName": "Raw", + "safeName": "Raw" + } + }, + "wireValue": "raw" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.extendedInlineRequestBody": { + "auth": null, + "declaration": { + "name": { + "originalName": "extendedInlineRequestBody", + "camelCase": { + "unsafeName": "extendedInlineRequestBody", + "safeName": "extendedInlineRequestBody" + }, + "snakeCase": { + "unsafeName": "extended_inline_request_body", + "safeName": "extended_inline_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "EXTENDED_INLINE_REQUEST_BODY", + "safeName": "EXTENDED_INLINE_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "ExtendedInlineRequestBody", + "safeName": "ExtendedInlineRequestBody" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/extends/extended-inline-request-body" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "Inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "unique", + "camelCase": { + "unsafeName": "unique", + "safeName": "unique" + }, + "snakeCase": { + "unsafeName": "unique", + "safeName": "unique" + }, + "screamingSnakeCase": { + "unsafeName": "UNIQUE", + "safeName": "UNIQUE" + }, + "pascalCase": { + "unsafeName": "Unique", + "safeName": "Unique" + } + }, + "wireValue": "unique" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/extra-properties.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/extra-properties.json new file mode 100644 index 00000000000..3ab82409303 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/extra-properties.json @@ -0,0 +1,406 @@ +{ + "version": "1.0.0", + "types": { + "type_:Failure": { + "type": "object", + "declaration": { + "name": { + "originalName": "Failure", + "camelCase": { + "unsafeName": "failure", + "safeName": "failure" + }, + "snakeCase": { + "unsafeName": "failure", + "safeName": "failure" + }, + "screamingSnakeCase": { + "unsafeName": "FAILURE", + "safeName": "FAILURE" + }, + "pascalCase": { + "unsafeName": "Failure", + "safeName": "Failure" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "failure" + } + } + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.createUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "createUser", + "camelCase": { + "unsafeName": "createUser", + "safeName": "createUser" + }, + "snakeCase": { + "unsafeName": "create_user", + "safeName": "create_user" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER", + "safeName": "CREATE_USER" + }, + "pascalCase": { + "unsafeName": "CreateUser", + "safeName": "CreateUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "POST", + "path": "/user" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateUserRequest", + "camelCase": { + "unsafeName": "createUserRequest", + "safeName": "createUserRequest" + }, + "snakeCase": { + "unsafeName": "create_user_request", + "safeName": "create_user_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER_REQUEST", + "safeName": "CREATE_USER_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateUserRequest", + "safeName": "CreateUserRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "_type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "CreateUserRequest" + } + } + }, + { + "name": { + "name": { + "originalName": "_version", + "camelCase": { + "unsafeName": "version", + "safeName": "version" + }, + "snakeCase": { + "unsafeName": "version", + "safeName": "version" + }, + "screamingSnakeCase": { + "unsafeName": "VERSION", + "safeName": "VERSION" + }, + "pascalCase": { + "unsafeName": "Version", + "safeName": "Version" + } + }, + "wireValue": "_version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "v1" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-download.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-download.json new file mode 100644 index 00000000000..e877d6d4fa1 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-download.json @@ -0,0 +1,86 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.downloadFile": { + "auth": null, + "declaration": { + "name": { + "originalName": "downloadFile", + "camelCase": { + "unsafeName": "downloadFile", + "safeName": "downloadFile" + }, + "snakeCase": { + "unsafeName": "download_file", + "safeName": "download_file" + }, + "screamingSnakeCase": { + "unsafeName": "DOWNLOAD_FILE", + "safeName": "DOWNLOAD_FILE" + }, + "pascalCase": { + "unsafeName": "DownloadFile", + "safeName": "DownloadFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-upload.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-upload.json new file mode 100644 index 00000000000..a0e9e94cab4 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-upload.json @@ -0,0 +1,1509 @@ +{ + "version": "1.0.0", + "types": { + "type_service:Id": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_service:MyObject": { + "type": "object", + "declaration": { + "name": { + "originalName": "MyObject", + "camelCase": { + "unsafeName": "myObject", + "safeName": "myObject" + }, + "snakeCase": { + "unsafeName": "my_object", + "safeName": "my_object" + }, + "screamingSnakeCase": { + "unsafeName": "MY_OBJECT", + "safeName": "MY_OBJECT" + }, + "pascalCase": { + "unsafeName": "MyObject", + "safeName": "MyObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:ObjectType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ObjectType", + "camelCase": { + "unsafeName": "objectType", + "safeName": "objectType" + }, + "snakeCase": { + "unsafeName": "object_type", + "safeName": "object_type" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_TYPE", + "safeName": "OBJECT_TYPE" + }, + "pascalCase": { + "unsafeName": "ObjectType", + "safeName": "ObjectType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "FOO", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "FOO" + }, + { + "name": { + "originalName": "BAR", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "BAR" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_service.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "MyRequest", + "camelCase": { + "unsafeName": "myRequest", + "safeName": "myRequest" + }, + "snakeCase": { + "unsafeName": "my_request", + "safeName": "my_request" + }, + "screamingSnakeCase": { + "unsafeName": "MY_REQUEST", + "safeName": "MY_REQUEST" + }, + "pascalCase": { + "unsafeName": "MyRequest", + "safeName": "MyRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "maybeString", + "camelCase": { + "unsafeName": "maybeString", + "safeName": "maybeString" + }, + "snakeCase": { + "unsafeName": "maybe_string", + "safeName": "maybe_string" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_STRING", + "safeName": "MAYBE_STRING" + }, + "pascalCase": { + "unsafeName": "MaybeString", + "safeName": "MaybeString" + } + }, + "wireValue": "maybeString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + { + "type": "fileArray", + "name": { + "originalName": "fileList", + "camelCase": { + "unsafeName": "fileList", + "safeName": "fileList" + }, + "snakeCase": { + "unsafeName": "file_list", + "safeName": "file_list" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_LIST", + "safeName": "FILE_LIST" + }, + "pascalCase": { + "unsafeName": "FileList", + "safeName": "FileList" + } + }, + "wireValue": "fileList" + }, + { + "type": "file", + "name": { + "originalName": "maybeFile", + "camelCase": { + "unsafeName": "maybeFile", + "safeName": "maybeFile" + }, + "snakeCase": { + "unsafeName": "maybe_file", + "safeName": "maybe_file" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_FILE", + "safeName": "MAYBE_FILE" + }, + "pascalCase": { + "unsafeName": "MaybeFile", + "safeName": "MaybeFile" + } + }, + "wireValue": "maybeFile" + }, + { + "type": "fileArray", + "name": { + "originalName": "maybeFileList", + "camelCase": { + "unsafeName": "maybeFileList", + "safeName": "maybeFileList" + }, + "snakeCase": { + "unsafeName": "maybe_file_list", + "safeName": "maybe_file_list" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_FILE_LIST", + "safeName": "MAYBE_FILE_LIST" + }, + "pascalCase": { + "unsafeName": "MaybeFileList", + "safeName": "MaybeFileList" + } + }, + "wireValue": "maybeFileList" + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "maybeInteger", + "camelCase": { + "unsafeName": "maybeInteger", + "safeName": "maybeInteger" + }, + "snakeCase": { + "unsafeName": "maybe_integer", + "safeName": "maybe_integer" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_INTEGER", + "safeName": "MAYBE_INTEGER" + }, + "pascalCase": { + "unsafeName": "MaybeInteger", + "safeName": "MaybeInteger" + } + }, + "wireValue": "maybeInteger" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalListOfStrings", + "camelCase": { + "unsafeName": "optionalListOfStrings", + "safeName": "optionalListOfStrings" + }, + "snakeCase": { + "unsafeName": "optional_list_of_strings", + "safeName": "optional_list_of_strings" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_LIST_OF_STRINGS", + "safeName": "OPTIONAL_LIST_OF_STRINGS" + }, + "pascalCase": { + "unsafeName": "OptionalListOfStrings", + "safeName": "OptionalListOfStrings" + } + }, + "wireValue": "optionalListOfStrings" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "listOfObjects", + "camelCase": { + "unsafeName": "listOfObjects", + "safeName": "listOfObjects" + }, + "snakeCase": { + "unsafeName": "list_of_objects", + "safeName": "list_of_objects" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_OF_OBJECTS", + "safeName": "LIST_OF_OBJECTS" + }, + "pascalCase": { + "unsafeName": "ListOfObjects", + "safeName": "ListOfObjects" + } + }, + "wireValue": "listOfObjects" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_service:MyObject" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalMetadata", + "camelCase": { + "unsafeName": "optionalMetadata", + "safeName": "optionalMetadata" + }, + "snakeCase": { + "unsafeName": "optional_metadata", + "safeName": "optional_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_METADATA", + "safeName": "OPTIONAL_METADATA" + }, + "pascalCase": { + "unsafeName": "OptionalMetadata", + "safeName": "OptionalMetadata" + } + }, + "wireValue": "optionalMetadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "unknown" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalObjectType", + "camelCase": { + "unsafeName": "optionalObjectType", + "safeName": "optionalObjectType" + }, + "snakeCase": { + "unsafeName": "optional_object_type", + "safeName": "optional_object_type" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_OBJECT_TYPE", + "safeName": "OPTIONAL_OBJECT_TYPE" + }, + "pascalCase": { + "unsafeName": "OptionalObjectType", + "safeName": "OptionalObjectType" + } + }, + "wireValue": "optionalObjectType" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_service:ObjectType" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalId", + "camelCase": { + "unsafeName": "optionalID", + "safeName": "optionalID" + }, + "snakeCase": { + "unsafeName": "optional_id", + "safeName": "optional_id" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_ID", + "safeName": "OPTIONAL_ID" + }, + "pascalCase": { + "unsafeName": "OptionalID", + "safeName": "OptionalID" + } + }, + "wireValue": "optionalId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_service:Id" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.justFile": { + "auth": null, + "declaration": { + "name": { + "originalName": "justFile", + "camelCase": { + "unsafeName": "justFile", + "safeName": "justFile" + }, + "snakeCase": { + "unsafeName": "just_file", + "safeName": "just_file" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE", + "safeName": "JUST_FILE" + }, + "pascalCase": { + "unsafeName": "JustFile", + "safeName": "JustFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/just-file" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "JustFileRequet", + "camelCase": { + "unsafeName": "justFileRequet", + "safeName": "justFileRequet" + }, + "snakeCase": { + "unsafeName": "just_file_requet", + "safeName": "just_file_requet" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE_REQUET", + "safeName": "JUST_FILE_REQUET" + }, + "pascalCase": { + "unsafeName": "JustFileRequet", + "safeName": "JustFileRequet" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.justFileWithQueryParams": { + "auth": null, + "declaration": { + "name": { + "originalName": "justFileWithQueryParams", + "camelCase": { + "unsafeName": "justFileWithQueryParams", + "safeName": "justFileWithQueryParams" + }, + "snakeCase": { + "unsafeName": "just_file_with_query_params", + "safeName": "just_file_with_query_params" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS" + }, + "pascalCase": { + "unsafeName": "JustFileWithQueryParams", + "safeName": "JustFileWithQueryParams" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/just-file-with-query-params" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "JustFileWithQueryParamsRequet", + "camelCase": { + "unsafeName": "justFileWithQueryParamsRequet", + "safeName": "justFileWithQueryParamsRequet" + }, + "snakeCase": { + "unsafeName": "just_file_with_query_params_requet", + "safeName": "just_file_with_query_params_requet" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + }, + "pascalCase": { + "unsafeName": "JustFileWithQueryParamsRequet", + "safeName": "JustFileWithQueryParamsRequet" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "maybeString", + "camelCase": { + "unsafeName": "maybeString", + "safeName": "maybeString" + }, + "snakeCase": { + "unsafeName": "maybe_string", + "safeName": "maybe_string" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_STRING", + "safeName": "MAYBE_STRING" + }, + "pascalCase": { + "unsafeName": "MaybeString", + "safeName": "MaybeString" + } + }, + "wireValue": "maybeString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "maybeInteger", + "camelCase": { + "unsafeName": "maybeInteger", + "safeName": "maybeInteger" + }, + "snakeCase": { + "unsafeName": "maybe_integer", + "safeName": "maybe_integer" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_INTEGER", + "safeName": "MAYBE_INTEGER" + }, + "pascalCase": { + "unsafeName": "MaybeInteger", + "safeName": "MaybeInteger" + } + }, + "wireValue": "maybeInteger" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "listOfStrings", + "camelCase": { + "unsafeName": "listOfStrings", + "safeName": "listOfStrings" + }, + "snakeCase": { + "unsafeName": "list_of_strings", + "safeName": "list_of_strings" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_OF_STRINGS", + "safeName": "LIST_OF_STRINGS" + }, + "pascalCase": { + "unsafeName": "ListOfStrings", + "safeName": "ListOfStrings" + } + }, + "wireValue": "listOfStrings" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "optionalListOfStrings", + "camelCase": { + "unsafeName": "optionalListOfStrings", + "safeName": "optionalListOfStrings" + }, + "snakeCase": { + "unsafeName": "optional_list_of_strings", + "safeName": "optional_list_of_strings" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_LIST_OF_STRINGS", + "safeName": "OPTIONAL_LIST_OF_STRINGS" + }, + "pascalCase": { + "unsafeName": "OptionalListOfStrings", + "safeName": "OptionalListOfStrings" + } + }, + "wireValue": "optionalListOfStrings" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.withContentType": { + "auth": null, + "declaration": { + "name": { + "originalName": "withContentType", + "camelCase": { + "unsafeName": "withContentType", + "safeName": "withContentType" + }, + "snakeCase": { + "unsafeName": "with_content_type", + "safeName": "with_content_type" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_CONTENT_TYPE", + "safeName": "WITH_CONTENT_TYPE" + }, + "pascalCase": { + "unsafeName": "WithContentType", + "safeName": "WithContentType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/with-content-type" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "WithContentTypeRequest", + "camelCase": { + "unsafeName": "withContentTypeRequest", + "safeName": "withContentTypeRequest" + }, + "snakeCase": { + "unsafeName": "with_content_type_request", + "safeName": "with_content_type_request" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_CONTENT_TYPE_REQUEST", + "safeName": "WITH_CONTENT_TYPE_REQUEST" + }, + "pascalCase": { + "unsafeName": "WithContentTypeRequest", + "safeName": "WithContentTypeRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "typeReference": { + "_type": "named", + "value": "type_service:MyObject" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/folders.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/folders.json new file mode 100644 index 00000000000..30889b72164 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/folders.json @@ -0,0 +1,757 @@ +{ + "version": "1.0.0", + "types": { + "type_a/d/types:Foo": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "d", + "camelCase": { + "unsafeName": "d", + "safeName": "d" + }, + "snakeCase": { + "unsafeName": "d", + "safeName": "d" + }, + "screamingSnakeCase": { + "unsafeName": "D", + "safeName": "D" + }, + "pascalCase": { + "unsafeName": "D", + "safeName": "D" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "d", + "camelCase": { + "unsafeName": "d", + "safeName": "d" + }, + "snakeCase": { + "unsafeName": "d", + "safeName": "d" + }, + "screamingSnakeCase": { + "unsafeName": "D", + "safeName": "D" + }, + "pascalCase": { + "unsafeName": "D", + "safeName": "D" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "headers": [], + "endpoints": { + "endpoint_.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_a/b.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_a/c.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "c", + "camelCase": { + "unsafeName": "c", + "safeName": "c" + }, + "snakeCase": { + "unsafeName": "c", + "safeName": "c" + }, + "screamingSnakeCase": { + "unsafeName": "C", + "safeName": "C" + }, + "pascalCase": { + "unsafeName": "C", + "safeName": "C" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "c", + "camelCase": { + "unsafeName": "c", + "safeName": "c" + }, + "snakeCase": { + "unsafeName": "c", + "safeName": "c" + }, + "screamingSnakeCase": { + "unsafeName": "C", + "safeName": "C" + }, + "pascalCase": { + "unsafeName": "C", + "safeName": "C" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "packagePath": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder/service.endpoint": { + "auth": null, + "declaration": { + "name": { + "originalName": "endpoint", + "camelCase": { + "unsafeName": "endpoint", + "safeName": "endpoint" + }, + "snakeCase": { + "unsafeName": "endpoint", + "safeName": "endpoint" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT", + "safeName": "ENDPOINT" + }, + "pascalCase": { + "unsafeName": "Endpoint", + "safeName": "Endpoint" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/service" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder/service.unknownRequest": { + "auth": null, + "declaration": { + "name": { + "originalName": "unknownRequest", + "camelCase": { + "unsafeName": "unknownRequest", + "safeName": "unknownRequest" + }, + "snakeCase": { + "unsafeName": "unknown_request", + "safeName": "unknown_request" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN_REQUEST", + "safeName": "UNKNOWN_REQUEST" + }, + "pascalCase": { + "unsafeName": "UnknownRequest", + "safeName": "UnknownRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/service" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/go-content-type.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/go-content-type.json new file mode 100644 index 00000000000..b054d826f61 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/go-content-type.json @@ -0,0 +1,239 @@ +{ + "version": "1.0.0", + "types": { + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto-exhaustive.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto-exhaustive.json new file mode 100644 index 00000000000..eeace708c5c --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto-exhaustive.json @@ -0,0 +1,3678 @@ +{ + "version": "1.0.0", + "types": { + "type_:Column": { + "type": "object", + "declaration": { + "name": { + "originalName": "Column", + "camelCase": { + "unsafeName": "column", + "safeName": "column" + }, + "snakeCase": { + "unsafeName": "column", + "safeName": "column" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMN", + "safeName": "COLUMN" + }, + "pascalCase": { + "unsafeName": "Column", + "safeName": "Column" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "type_:DeleteResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "DeleteResponse", + "camelCase": { + "unsafeName": "deleteResponse", + "safeName": "deleteResponse" + }, + "snakeCase": { + "unsafeName": "delete_response", + "safeName": "delete_response" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_RESPONSE", + "safeName": "DELETE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "DeleteResponse", + "safeName": "DeleteResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [] + }, + "type_:DescribeResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "DescribeResponse", + "camelCase": { + "unsafeName": "describeResponse", + "safeName": "describeResponse" + }, + "snakeCase": { + "unsafeName": "describe_response", + "safeName": "describe_response" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBE_RESPONSE", + "safeName": "DESCRIBE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "DescribeResponse", + "safeName": "DescribeResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "namespaces", + "camelCase": { + "unsafeName": "namespaces", + "safeName": "namespaces" + }, + "snakeCase": { + "unsafeName": "namespaces", + "safeName": "namespaces" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACES", + "safeName": "NAMESPACES" + }, + "pascalCase": { + "unsafeName": "Namespaces", + "safeName": "Namespaces" + } + }, + "wireValue": "namespaces" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:NamespaceSummary" + } + } + } + }, + { + "name": { + "name": { + "originalName": "dimension", + "camelCase": { + "unsafeName": "dimension", + "safeName": "dimension" + }, + "snakeCase": { + "unsafeName": "dimension", + "safeName": "dimension" + }, + "screamingSnakeCase": { + "unsafeName": "DIMENSION", + "safeName": "DIMENSION" + }, + "pascalCase": { + "unsafeName": "Dimension", + "safeName": "Dimension" + } + }, + "wireValue": "dimension" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "fullness", + "camelCase": { + "unsafeName": "fullness", + "safeName": "fullness" + }, + "snakeCase": { + "unsafeName": "fullness", + "safeName": "fullness" + }, + "screamingSnakeCase": { + "unsafeName": "FULLNESS", + "safeName": "FULLNESS" + }, + "pascalCase": { + "unsafeName": "Fullness", + "safeName": "Fullness" + } + }, + "wireValue": "fullness" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "totalCount", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "totalCount" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:FetchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "FetchResponse", + "camelCase": { + "unsafeName": "fetchResponse", + "safeName": "fetchResponse" + }, + "snakeCase": { + "unsafeName": "fetch_response", + "safeName": "fetch_response" + }, + "screamingSnakeCase": { + "unsafeName": "FETCH_RESPONSE", + "safeName": "FETCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "FetchResponse", + "safeName": "FetchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "columns", + "camelCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "snakeCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMNS", + "safeName": "COLUMNS" + }, + "pascalCase": { + "unsafeName": "Columns", + "safeName": "Columns" + } + }, + "wireValue": "columns" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:Column" + } + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "wireValue": "usage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Usage" + } + } + } + ] + }, + "type_:IndexedData": { + "type": "object", + "declaration": { + "name": { + "originalName": "IndexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "indices", + "camelCase": { + "unsafeName": "indices", + "safeName": "indices" + }, + "snakeCase": { + "unsafeName": "indices", + "safeName": "indices" + }, + "screamingSnakeCase": { + "unsafeName": "INDICES", + "safeName": "INDICES" + }, + "pascalCase": { + "unsafeName": "Indices", + "safeName": "Indices" + } + }, + "wireValue": "indices" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + ] + }, + "type_:ListElement": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListElement", + "camelCase": { + "unsafeName": "listElement", + "safeName": "listElement" + }, + "snakeCase": { + "unsafeName": "list_element", + "safeName": "list_element" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_ELEMENT", + "safeName": "LIST_ELEMENT" + }, + "pascalCase": { + "unsafeName": "ListElement", + "safeName": "ListElement" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:ListResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListResponse", + "camelCase": { + "unsafeName": "listResponse", + "safeName": "listResponse" + }, + "snakeCase": { + "unsafeName": "list_response", + "safeName": "list_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_RESPONSE", + "safeName": "LIST_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListResponse", + "safeName": "ListResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "columns", + "camelCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "snakeCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMNS", + "safeName": "COLUMNS" + }, + "pascalCase": { + "unsafeName": "Columns", + "safeName": "Columns" + } + }, + "wireValue": "columns" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ListElement" + } + } + } + }, + { + "name": { + "name": { + "originalName": "pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "wireValue": "pagination" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Pagination" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "wireValue": "usage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Usage" + } + } + } + ] + }, + "type_:NamespaceSummary": { + "type": "object", + "declaration": { + "name": { + "originalName": "NamespaceSummary", + "camelCase": { + "unsafeName": "namespaceSummary", + "safeName": "namespaceSummary" + }, + "snakeCase": { + "unsafeName": "namespace_summary", + "safeName": "namespace_summary" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE_SUMMARY", + "safeName": "NAMESPACE_SUMMARY" + }, + "pascalCase": { + "unsafeName": "NamespaceSummary", + "safeName": "NamespaceSummary" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "count", + "camelCase": { + "unsafeName": "count", + "safeName": "count" + }, + "snakeCase": { + "unsafeName": "count", + "safeName": "count" + }, + "screamingSnakeCase": { + "unsafeName": "COUNT", + "safeName": "COUNT" + }, + "pascalCase": { + "unsafeName": "Count", + "safeName": "Count" + } + }, + "wireValue": "count" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:Pagination": { + "type": "object", + "declaration": { + "name": { + "originalName": "Pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:QueryColumn": { + "type": "object", + "declaration": { + "name": { + "originalName": "QueryColumn", + "camelCase": { + "unsafeName": "queryColumn", + "safeName": "queryColumn" + }, + "snakeCase": { + "unsafeName": "query_column", + "safeName": "query_column" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_COLUMN", + "safeName": "QUERY_COLUMN" + }, + "pascalCase": { + "unsafeName": "QueryColumn", + "safeName": "QueryColumn" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "topK", + "camelCase": { + "unsafeName": "topK", + "safeName": "topK" + }, + "snakeCase": { + "unsafeName": "top_k", + "safeName": "top_k" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_K", + "safeName": "TOP_K" + }, + "pascalCase": { + "unsafeName": "TopK", + "safeName": "TopK" + } + }, + "wireValue": "topK" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "type_:QueryResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "QueryResponse", + "camelCase": { + "unsafeName": "queryResponse", + "safeName": "queryResponse" + }, + "snakeCase": { + "unsafeName": "query_response", + "safeName": "query_response" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_RESPONSE", + "safeName": "QUERY_RESPONSE" + }, + "pascalCase": { + "unsafeName": "QueryResponse", + "safeName": "QueryResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + }, + "wireValue": "results" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:QueryResult" + } + } + } + }, + { + "name": { + "name": { + "originalName": "matches", + "camelCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "snakeCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "screamingSnakeCase": { + "unsafeName": "MATCHES", + "safeName": "MATCHES" + }, + "pascalCase": { + "unsafeName": "Matches", + "safeName": "Matches" + } + }, + "wireValue": "matches" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ScoredColumn" + } + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "wireValue": "usage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Usage" + } + } + } + ] + }, + "type_:QueryResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "QueryResult", + "camelCase": { + "unsafeName": "queryResult", + "safeName": "queryResult" + }, + "snakeCase": { + "unsafeName": "query_result", + "safeName": "query_result" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_RESULT", + "safeName": "QUERY_RESULT" + }, + "pascalCase": { + "unsafeName": "QueryResult", + "safeName": "QueryResult" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "matches", + "camelCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "snakeCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "screamingSnakeCase": { + "unsafeName": "MATCHES", + "safeName": "MATCHES" + }, + "pascalCase": { + "unsafeName": "Matches", + "safeName": "Matches" + } + }, + "wireValue": "matches" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ScoredColumn" + } + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:ScoredColumn": { + "type": "object", + "declaration": { + "name": { + "originalName": "ScoredColumn", + "camelCase": { + "unsafeName": "scoredColumn", + "safeName": "scoredColumn" + }, + "snakeCase": { + "unsafeName": "scored_column", + "safeName": "scored_column" + }, + "screamingSnakeCase": { + "unsafeName": "SCORED_COLUMN", + "safeName": "SCORED_COLUMN" + }, + "pascalCase": { + "unsafeName": "ScoredColumn", + "safeName": "ScoredColumn" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "score", + "camelCase": { + "unsafeName": "score", + "safeName": "score" + }, + "snakeCase": { + "unsafeName": "score", + "safeName": "score" + }, + "screamingSnakeCase": { + "unsafeName": "SCORE", + "safeName": "SCORE" + }, + "pascalCase": { + "unsafeName": "Score", + "safeName": "Score" + } + }, + "wireValue": "score" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "type_:UpdateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UpdateResponse", + "camelCase": { + "unsafeName": "updateResponse", + "safeName": "updateResponse" + }, + "snakeCase": { + "unsafeName": "update_response", + "safeName": "update_response" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_RESPONSE", + "safeName": "UPDATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UpdateResponse", + "safeName": "UpdateResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [] + }, + "type_:UploadResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UploadResponse", + "camelCase": { + "unsafeName": "uploadResponse", + "safeName": "uploadResponse" + }, + "snakeCase": { + "unsafeName": "upload_response", + "safeName": "upload_response" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD_RESPONSE", + "safeName": "UPLOAD_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UploadResponse", + "safeName": "UploadResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "count", + "camelCase": { + "unsafeName": "count", + "safeName": "count" + }, + "snakeCase": { + "unsafeName": "count", + "safeName": "count" + }, + "screamingSnakeCase": { + "unsafeName": "COUNT", + "safeName": "COUNT" + }, + "pascalCase": { + "unsafeName": "Count", + "safeName": "Count" + } + }, + "wireValue": "count" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:Usage": { + "type": "object", + "declaration": { + "name": { + "originalName": "Usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "units", + "camelCase": { + "unsafeName": "units", + "safeName": "units" + }, + "snakeCase": { + "unsafeName": "units", + "safeName": "units" + }, + "screamingSnakeCase": { + "unsafeName": "UNITS", + "safeName": "UNITS" + }, + "pascalCase": { + "unsafeName": "Units", + "safeName": "Units" + } + }, + "wireValue": "units" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:Metadata": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:MetadataValue" + } + }, + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + ] + }, + "type_:MetadataValue": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "MetadataValue", + "camelCase": { + "unsafeName": "metadataValue", + "safeName": "metadataValue" + }, + "snakeCase": { + "unsafeName": "metadata_value", + "safeName": "metadata_value" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA_VALUE", + "safeName": "METADATA_VALUE" + }, + "pascalCase": { + "unsafeName": "MetadataValue", + "safeName": "MetadataValue" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "primitive", + "value": "DOUBLE" + }, + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "primitive", + "value": "BOOLEAN" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_dataservice.upload": { + "auth": null, + "declaration": { + "name": { + "originalName": "upload", + "camelCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "snakeCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD", + "safeName": "UPLOAD" + }, + "pascalCase": { + "unsafeName": "Upload", + "safeName": "Upload" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "UploadRequest", + "camelCase": { + "unsafeName": "uploadRequest", + "safeName": "uploadRequest" + }, + "snakeCase": { + "unsafeName": "upload_request", + "safeName": "upload_request" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD_REQUEST", + "safeName": "UPLOAD_REQUEST" + }, + "pascalCase": { + "unsafeName": "UploadRequest", + "safeName": "UploadRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "columns", + "camelCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "snakeCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMNS", + "safeName": "COLUMNS" + }, + "pascalCase": { + "unsafeName": "Columns", + "safeName": "Columns" + } + }, + "wireValue": "columns" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Column" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.delete": { + "auth": null, + "declaration": { + "name": { + "originalName": "delete", + "camelCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "snakeCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE", + "safeName": "DELETE" + }, + "pascalCase": { + "unsafeName": "Delete", + "safeName": "Delete" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/delete" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "DeleteRequest", + "camelCase": { + "unsafeName": "deleteRequest", + "safeName": "deleteRequest" + }, + "snakeCase": { + "unsafeName": "delete_request", + "safeName": "delete_request" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_REQUEST", + "safeName": "DELETE_REQUEST" + }, + "pascalCase": { + "unsafeName": "DeleteRequest", + "safeName": "DeleteRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "ids", + "camelCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "snakeCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "screamingSnakeCase": { + "unsafeName": "IDS", + "safeName": "IDS" + }, + "pascalCase": { + "unsafeName": "IDs", + "safeName": "IDs" + } + }, + "wireValue": "ids" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "deleteAll", + "camelCase": { + "unsafeName": "deleteAll", + "safeName": "deleteAll" + }, + "snakeCase": { + "unsafeName": "delete_all", + "safeName": "delete_all" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_ALL", + "safeName": "DELETE_ALL" + }, + "pascalCase": { + "unsafeName": "DeleteAll", + "safeName": "DeleteAll" + } + }, + "wireValue": "deleteAll" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.describe": { + "auth": null, + "declaration": { + "name": { + "originalName": "describe", + "camelCase": { + "unsafeName": "describe", + "safeName": "describe" + }, + "snakeCase": { + "unsafeName": "describe", + "safeName": "describe" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBE", + "safeName": "DESCRIBE" + }, + "pascalCase": { + "unsafeName": "Describe", + "safeName": "Describe" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/describe" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "DescribeRequest", + "camelCase": { + "unsafeName": "describeRequest", + "safeName": "describeRequest" + }, + "snakeCase": { + "unsafeName": "describe_request", + "safeName": "describe_request" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBE_REQUEST", + "safeName": "DESCRIBE_REQUEST" + }, + "pascalCase": { + "unsafeName": "DescribeRequest", + "safeName": "DescribeRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.fetch": { + "auth": null, + "declaration": { + "name": { + "originalName": "fetch", + "camelCase": { + "unsafeName": "fetch", + "safeName": "fetch" + }, + "snakeCase": { + "unsafeName": "fetch", + "safeName": "fetch" + }, + "screamingSnakeCase": { + "unsafeName": "FETCH", + "safeName": "FETCH" + }, + "pascalCase": { + "unsafeName": "Fetch", + "safeName": "Fetch" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "GET", + "path": "/data/fetch" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "FetchRequest", + "camelCase": { + "unsafeName": "fetchRequest", + "safeName": "fetchRequest" + }, + "snakeCase": { + "unsafeName": "fetch_request", + "safeName": "fetch_request" + }, + "screamingSnakeCase": { + "unsafeName": "FETCH_REQUEST", + "safeName": "FETCH_REQUEST" + }, + "pascalCase": { + "unsafeName": "FetchRequest", + "safeName": "FetchRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "ids", + "camelCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "snakeCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "screamingSnakeCase": { + "unsafeName": "IDS", + "safeName": "IDS" + }, + "pascalCase": { + "unsafeName": "IDs", + "safeName": "IDs" + } + }, + "wireValue": "ids" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.list": { + "auth": null, + "declaration": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "GET", + "path": "/data/list" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListRequest", + "camelCase": { + "unsafeName": "listRequest", + "safeName": "listRequest" + }, + "snakeCase": { + "unsafeName": "list_request", + "safeName": "list_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_REQUEST", + "safeName": "LIST_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListRequest", + "safeName": "ListRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "prefix", + "camelCase": { + "unsafeName": "prefix", + "safeName": "prefix" + }, + "snakeCase": { + "unsafeName": "prefix", + "safeName": "prefix" + }, + "screamingSnakeCase": { + "unsafeName": "PREFIX", + "safeName": "PREFIX" + }, + "pascalCase": { + "unsafeName": "Prefix", + "safeName": "Prefix" + } + }, + "wireValue": "prefix" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "paginationToken", + "camelCase": { + "unsafeName": "paginationToken", + "safeName": "paginationToken" + }, + "snakeCase": { + "unsafeName": "pagination_token", + "safeName": "pagination_token" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION_TOKEN", + "safeName": "PAGINATION_TOKEN" + }, + "pascalCase": { + "unsafeName": "PaginationToken", + "safeName": "PaginationToken" + } + }, + "wireValue": "paginationToken" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.query": { + "auth": null, + "declaration": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/query" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "QueryRequest", + "camelCase": { + "unsafeName": "queryRequest", + "safeName": "queryRequest" + }, + "snakeCase": { + "unsafeName": "query_request", + "safeName": "query_request" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_REQUEST", + "safeName": "QUERY_REQUEST" + }, + "pascalCase": { + "unsafeName": "QueryRequest", + "safeName": "QueryRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "topK", + "camelCase": { + "unsafeName": "topK", + "safeName": "topK" + }, + "snakeCase": { + "unsafeName": "top_k", + "safeName": "top_k" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_K", + "safeName": "TOP_K" + }, + "pascalCase": { + "unsafeName": "TopK", + "safeName": "TopK" + } + }, + "wireValue": "topK" + }, + "typeReference": { + "_type": "primitive", + "value": "UINT" + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "includeValues", + "camelCase": { + "unsafeName": "includeValues", + "safeName": "includeValues" + }, + "snakeCase": { + "unsafeName": "include_values", + "safeName": "include_values" + }, + "screamingSnakeCase": { + "unsafeName": "INCLUDE_VALUES", + "safeName": "INCLUDE_VALUES" + }, + "pascalCase": { + "unsafeName": "IncludeValues", + "safeName": "IncludeValues" + } + }, + "wireValue": "includeValues" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "includeMetadata", + "camelCase": { + "unsafeName": "includeMetadata", + "safeName": "includeMetadata" + }, + "snakeCase": { + "unsafeName": "include_metadata", + "safeName": "include_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "INCLUDE_METADATA", + "safeName": "INCLUDE_METADATA" + }, + "pascalCase": { + "unsafeName": "IncludeMetadata", + "safeName": "IncludeMetadata" + } + }, + "wireValue": "includeMetadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "queries", + "camelCase": { + "unsafeName": "queries", + "safeName": "queries" + }, + "snakeCase": { + "unsafeName": "queries", + "safeName": "queries" + }, + "screamingSnakeCase": { + "unsafeName": "QUERIES", + "safeName": "QUERIES" + }, + "pascalCase": { + "unsafeName": "Queries", + "safeName": "Queries" + } + }, + "wireValue": "queries" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:QueryColumn" + } + } + } + }, + { + "name": { + "name": { + "originalName": "column", + "camelCase": { + "unsafeName": "column", + "safeName": "column" + }, + "snakeCase": { + "unsafeName": "column", + "safeName": "column" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMN", + "safeName": "COLUMN" + }, + "pascalCase": { + "unsafeName": "Column", + "safeName": "Column" + } + }, + "wireValue": "column" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.update": { + "auth": null, + "declaration": { + "name": { + "originalName": "update", + "camelCase": { + "unsafeName": "update", + "safeName": "update" + }, + "snakeCase": { + "unsafeName": "update", + "safeName": "update" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE", + "safeName": "UPDATE" + }, + "pascalCase": { + "unsafeName": "Update", + "safeName": "Update" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/update" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "UpdateRequest", + "camelCase": { + "unsafeName": "updateRequest", + "safeName": "updateRequest" + }, + "snakeCase": { + "unsafeName": "update_request", + "safeName": "update_request" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_REQUEST", + "safeName": "UPDATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "UpdateRequest", + "safeName": "UpdateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + }, + { + "name": { + "name": { + "originalName": "setMetadata", + "camelCase": { + "unsafeName": "setMetadata", + "safeName": "setMetadata" + }, + "snakeCase": { + "unsafeName": "set_metadata", + "safeName": "set_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "SET_METADATA", + "safeName": "SET_METADATA" + }, + "pascalCase": { + "unsafeName": "SetMetadata", + "safeName": "SetMetadata" + } + }, + "wireValue": "setMetadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto.json new file mode 100644 index 00000000000..ddda8ee63d7 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto.json @@ -0,0 +1,655 @@ +{ + "version": "1.0.0", + "types": { + "type_:CreateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateResponse", + "camelCase": { + "unsafeName": "createResponse", + "safeName": "createResponse" + }, + "snakeCase": { + "unsafeName": "create_response", + "safeName": "create_response" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_RESPONSE", + "safeName": "CREATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "CreateResponse", + "safeName": "CreateResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:UserModel" + } + } + } + ] + }, + "type_:UserModel": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserModel", + "camelCase": { + "unsafeName": "userModel", + "safeName": "userModel" + }, + "snakeCase": { + "unsafeName": "user_model", + "safeName": "user_model" + }, + "screamingSnakeCase": { + "unsafeName": "USER_MODEL", + "safeName": "USER_MODEL" + }, + "pascalCase": { + "unsafeName": "UserModel", + "safeName": "UserModel" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "wireValue": "username" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + }, + "wireValue": "email" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "weight", + "camelCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "snakeCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "screamingSnakeCase": { + "unsafeName": "WEIGHT", + "safeName": "WEIGHT" + }, + "pascalCase": { + "unsafeName": "Weight", + "safeName": "Weight" + } + }, + "wireValue": "weight" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + }, + "type_:Metadata": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:MetadataValue" + } + }, + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + ] + }, + "type_:MetadataValue": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "MetadataValue", + "camelCase": { + "unsafeName": "metadataValue", + "safeName": "metadataValue" + }, + "snakeCase": { + "unsafeName": "metadata_value", + "safeName": "metadata_value" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA_VALUE", + "safeName": "METADATA_VALUE" + }, + "pascalCase": { + "unsafeName": "MetadataValue", + "safeName": "MetadataValue" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "primitive", + "value": "DOUBLE" + }, + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "primitive", + "value": "BOOLEAN" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_userservice.create": { + "auth": null, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateRequest", + "camelCase": { + "unsafeName": "createRequest", + "safeName": "createRequest" + }, + "snakeCase": { + "unsafeName": "create_request", + "safeName": "create_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_REQUEST", + "safeName": "CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateRequest", + "safeName": "CreateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "wireValue": "username" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + }, + "wireValue": "email" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "weight", + "camelCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "snakeCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "screamingSnakeCase": { + "unsafeName": "WEIGHT", + "safeName": "WEIGHT" + }, + "pascalCase": { + "unsafeName": "Weight", + "safeName": "Weight" + } + }, + "wireValue": "weight" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/idempotency-headers.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/idempotency-headers.json new file mode 100644 index 00000000000..db5f859b191 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/idempotency-headers.json @@ -0,0 +1,476 @@ +{ + "version": "1.0.0", + "types": { + "type_payment:Currency": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Currency", + "camelCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "snakeCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "screamingSnakeCase": { + "unsafeName": "CURRENCY", + "safeName": "CURRENCY" + }, + "pascalCase": { + "unsafeName": "Currency", + "safeName": "Currency" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "USD", + "camelCase": { + "unsafeName": "usd", + "safeName": "usd" + }, + "snakeCase": { + "unsafeName": "usd", + "safeName": "usd" + }, + "screamingSnakeCase": { + "unsafeName": "USD", + "safeName": "USD" + }, + "pascalCase": { + "unsafeName": "Usd", + "safeName": "Usd" + } + }, + "wireValue": "USD" + }, + { + "name": { + "originalName": "YEN", + "camelCase": { + "unsafeName": "yen", + "safeName": "yen" + }, + "snakeCase": { + "unsafeName": "yen", + "safeName": "yen" + }, + "screamingSnakeCase": { + "unsafeName": "YEN", + "safeName": "YEN" + }, + "pascalCase": { + "unsafeName": "Yen", + "safeName": "Yen" + } + }, + "wireValue": "YEN" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_payment.create": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "location": { + "method": "POST", + "path": "/payment" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreatePaymentRequest", + "camelCase": { + "unsafeName": "createPaymentRequest", + "safeName": "createPaymentRequest" + }, + "snakeCase": { + "unsafeName": "create_payment_request", + "safeName": "create_payment_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PAYMENT_REQUEST", + "safeName": "CREATE_PAYMENT_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreatePaymentRequest", + "safeName": "CreatePaymentRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "amount", + "camelCase": { + "unsafeName": "amount", + "safeName": "amount" + }, + "snakeCase": { + "unsafeName": "amount", + "safeName": "amount" + }, + "screamingSnakeCase": { + "unsafeName": "AMOUNT", + "safeName": "AMOUNT" + }, + "pascalCase": { + "unsafeName": "Amount", + "safeName": "Amount" + } + }, + "wireValue": "amount" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "currency", + "camelCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "snakeCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "screamingSnakeCase": { + "unsafeName": "CURRENCY", + "safeName": "CURRENCY" + }, + "pascalCase": { + "unsafeName": "Currency", + "safeName": "Currency" + } + }, + "wireValue": "currency" + }, + "typeReference": { + "_type": "named", + "value": "type_payment:Currency" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_payment.delete": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "delete", + "camelCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "snakeCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE", + "safeName": "DELETE" + }, + "pascalCase": { + "unsafeName": "Delete", + "safeName": "Delete" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/payment/{paymentId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "paymentId", + "camelCase": { + "unsafeName": "paymentID", + "safeName": "paymentID" + }, + "snakeCase": { + "unsafeName": "payment_id", + "safeName": "payment_id" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT_ID", + "safeName": "PAYMENT_ID" + }, + "pascalCase": { + "unsafeName": "PaymentID", + "safeName": "PaymentID" + } + }, + "wireValue": "paymentId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/imdb.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/imdb.json new file mode 100644 index 00000000000..fd06cc40b15 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/imdb.json @@ -0,0 +1,592 @@ +{ + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_imdb.getMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movies/{movieId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "movieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "wireValue": "movieId" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/literal.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/literal.json new file mode 100644 index 00000000000..edc9b2b5c69 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/literal.json @@ -0,0 +1,2102 @@ +{ + "version": "1.0.0", + "types": { + "type_:SendResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "SendResponse", + "camelCase": { + "unsafeName": "sendResponse", + "safeName": "sendResponse" + }, + "snakeCase": { + "unsafeName": "send_response", + "safeName": "send_response" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_RESPONSE", + "safeName": "SEND_RESPONSE" + }, + "pascalCase": { + "unsafeName": "SendResponse", + "safeName": "SendResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "success", + "camelCase": { + "unsafeName": "success", + "safeName": "success" + }, + "snakeCase": { + "unsafeName": "success", + "safeName": "success" + }, + "screamingSnakeCase": { + "unsafeName": "SUCCESS", + "safeName": "SUCCESS" + }, + "pascalCase": { + "unsafeName": "Success", + "safeName": "Success" + } + }, + "wireValue": "success" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + } + ] + }, + "type_inlined:SomeAliasedLiteral": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SomeAliasedLiteral", + "camelCase": { + "unsafeName": "someAliasedLiteral", + "safeName": "someAliasedLiteral" + }, + "snakeCase": { + "unsafeName": "some_aliased_literal", + "safeName": "some_aliased_literal" + }, + "screamingSnakeCase": { + "unsafeName": "SOME_ALIASED_LITERAL", + "safeName": "SOME_ALIASED_LITERAL" + }, + "pascalCase": { + "unsafeName": "SomeAliasedLiteral", + "safeName": "SomeAliasedLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You're super wise" + } + } + }, + "type_inlined:ATopLevelLiteral": { + "type": "object", + "declaration": { + "name": { + "originalName": "ATopLevelLiteral", + "camelCase": { + "unsafeName": "aTopLevelLiteral", + "safeName": "aTopLevelLiteral" + }, + "snakeCase": { + "unsafeName": "a_top_level_literal", + "safeName": "a_top_level_literal" + }, + "screamingSnakeCase": { + "unsafeName": "A_TOP_LEVEL_LITERAL", + "safeName": "A_TOP_LEVEL_LITERAL" + }, + "pascalCase": { + "unsafeName": "ATopLevelLiteral", + "safeName": "ATopLevelLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nestedLiteral", + "camelCase": { + "unsafeName": "nestedLiteral", + "safeName": "nestedLiteral" + }, + "snakeCase": { + "unsafeName": "nested_literal", + "safeName": "nested_literal" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_LITERAL", + "safeName": "NESTED_LITERAL" + }, + "pascalCase": { + "unsafeName": "NestedLiteral", + "safeName": "NestedLiteral" + } + }, + "wireValue": "nestedLiteral" + }, + "typeReference": { + "_type": "named", + "value": "type_inlined:ANestedLiteral" + } + } + ] + }, + "type_inlined:ANestedLiteral": { + "type": "object", + "declaration": { + "name": { + "originalName": "ANestedLiteral", + "camelCase": { + "unsafeName": "aNestedLiteral", + "safeName": "aNestedLiteral" + }, + "snakeCase": { + "unsafeName": "a_nested_literal", + "safeName": "a_nested_literal" + }, + "screamingSnakeCase": { + "unsafeName": "A_NESTED_LITERAL", + "safeName": "A_NESTED_LITERAL" + }, + "pascalCase": { + "unsafeName": "ANestedLiteral", + "safeName": "ANestedLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "myLiteral", + "camelCase": { + "unsafeName": "myLiteral", + "safeName": "myLiteral" + }, + "snakeCase": { + "unsafeName": "my_literal", + "safeName": "my_literal" + }, + "screamingSnakeCase": { + "unsafeName": "MY_LITERAL", + "safeName": "MY_LITERAL" + }, + "pascalCase": { + "unsafeName": "MyLiteral", + "safeName": "MyLiteral" + } + }, + "wireValue": "myLiteral" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "How super cool" + } + } + } + ] + }, + "type_reference:SendRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "SendRequest", + "camelCase": { + "unsafeName": "sendRequest", + "safeName": "sendRequest" + }, + "snakeCase": { + "unsafeName": "send_request", + "safeName": "send_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_REQUEST", + "safeName": "SEND_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendRequest", + "safeName": "SendRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "prompt", + "camelCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "snakeCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "screamingSnakeCase": { + "unsafeName": "PROMPT", + "safeName": "PROMPT" + }, + "pascalCase": { + "unsafeName": "Prompt", + "safeName": "Prompt" + } + }, + "wireValue": "prompt" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You are a helpful assistant" + } + } + }, + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + }, + { + "name": { + "name": { + "originalName": "context", + "camelCase": { + "unsafeName": "context", + "safeName": "context" + }, + "snakeCase": { + "unsafeName": "context", + "safeName": "context" + }, + "screamingSnakeCase": { + "unsafeName": "CONTEXT", + "safeName": "CONTEXT" + }, + "pascalCase": { + "unsafeName": "Context", + "safeName": "Context" + } + }, + "wireValue": "context" + }, + "typeReference": { + "_type": "named", + "value": "type_reference:SomeLiteral" + } + }, + { + "name": { + "name": { + "originalName": "maybeContext", + "camelCase": { + "unsafeName": "maybeContext", + "safeName": "maybeContext" + }, + "snakeCase": { + "unsafeName": "maybe_context", + "safeName": "maybe_context" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_CONTEXT", + "safeName": "MAYBE_CONTEXT" + }, + "pascalCase": { + "unsafeName": "MaybeContext", + "safeName": "MaybeContext" + } + }, + "wireValue": "maybeContext" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_reference:SomeLiteral" + } + } + }, + { + "name": { + "name": { + "originalName": "containerObject", + "camelCase": { + "unsafeName": "containerObject", + "safeName": "containerObject" + }, + "snakeCase": { + "unsafeName": "container_object", + "safeName": "container_object" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_OBJECT", + "safeName": "CONTAINER_OBJECT" + }, + "pascalCase": { + "unsafeName": "ContainerObject", + "safeName": "ContainerObject" + } + }, + "wireValue": "containerObject" + }, + "typeReference": { + "_type": "named", + "value": "type_reference:ContainerObject" + } + } + ] + }, + "type_reference:ContainerObject": { + "type": "object", + "declaration": { + "name": { + "originalName": "ContainerObject", + "camelCase": { + "unsafeName": "containerObject", + "safeName": "containerObject" + }, + "snakeCase": { + "unsafeName": "container_object", + "safeName": "container_object" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_OBJECT", + "safeName": "CONTAINER_OBJECT" + }, + "pascalCase": { + "unsafeName": "ContainerObject", + "safeName": "ContainerObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nestedObjects", + "camelCase": { + "unsafeName": "nestedObjects", + "safeName": "nestedObjects" + }, + "snakeCase": { + "unsafeName": "nested_objects", + "safeName": "nested_objects" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECTS", + "safeName": "NESTED_OBJECTS" + }, + "pascalCase": { + "unsafeName": "NestedObjects", + "safeName": "NestedObjects" + } + }, + "wireValue": "nestedObjects" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_reference:NestedObjectWithLiterals" + } + } + } + ] + }, + "type_reference:NestedObjectWithLiterals": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedObjectWithLiterals", + "camelCase": { + "unsafeName": "nestedObjectWithLiterals", + "safeName": "nestedObjectWithLiterals" + }, + "snakeCase": { + "unsafeName": "nested_object_with_literals", + "safeName": "nested_object_with_literals" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT_WITH_LITERALS", + "safeName": "NESTED_OBJECT_WITH_LITERALS" + }, + "pascalCase": { + "unsafeName": "NestedObjectWithLiterals", + "safeName": "NestedObjectWithLiterals" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "literal1", + "camelCase": { + "unsafeName": "literal1", + "safeName": "literal1" + }, + "snakeCase": { + "unsafeName": "literal1", + "safeName": "literal1" + }, + "screamingSnakeCase": { + "unsafeName": "LITERAL1", + "safeName": "LITERAL1" + }, + "pascalCase": { + "unsafeName": "Literal1", + "safeName": "Literal1" + } + }, + "wireValue": "literal1" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "literal1" + } + } + }, + { + "name": { + "name": { + "originalName": "literal2", + "camelCase": { + "unsafeName": "literal2", + "safeName": "literal2" + }, + "snakeCase": { + "unsafeName": "literal2", + "safeName": "literal2" + }, + "screamingSnakeCase": { + "unsafeName": "LITERAL2", + "safeName": "LITERAL2" + }, + "pascalCase": { + "unsafeName": "Literal2", + "safeName": "Literal2" + } + }, + "wireValue": "literal2" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "literal2" + } + } + }, + { + "name": { + "name": { + "originalName": "strProp", + "camelCase": { + "unsafeName": "strProp", + "safeName": "strProp" + }, + "snakeCase": { + "unsafeName": "str_prop", + "safeName": "str_prop" + }, + "screamingSnakeCase": { + "unsafeName": "STR_PROP", + "safeName": "STR_PROP" + }, + "pascalCase": { + "unsafeName": "StrProp", + "safeName": "StrProp" + } + }, + "wireValue": "strProp" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_reference:SomeLiteral": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SomeLiteral", + "camelCase": { + "unsafeName": "someLiteral", + "safeName": "someLiteral" + }, + "snakeCase": { + "unsafeName": "some_literal", + "safeName": "some_literal" + }, + "screamingSnakeCase": { + "unsafeName": "SOME_LITERAL", + "safeName": "SOME_LITERAL" + }, + "pascalCase": { + "unsafeName": "SomeLiteral", + "safeName": "SomeLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You're super wise" + } + } + } + }, + "headers": [ + { + "name": { + "name": { + "originalName": "version", + "camelCase": { + "unsafeName": "version", + "safeName": "version" + }, + "snakeCase": { + "unsafeName": "version", + "safeName": "version" + }, + "screamingSnakeCase": { + "unsafeName": "VERSION", + "safeName": "VERSION" + }, + "pascalCase": { + "unsafeName": "Version", + "safeName": "Version" + } + }, + "wireValue": "X-API-Version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "02-02-2024" + } + } + }, + { + "name": { + "name": { + "originalName": "audit_logging", + "camelCase": { + "unsafeName": "auditLogging", + "safeName": "auditLogging" + }, + "snakeCase": { + "unsafeName": "audit_logging", + "safeName": "audit_logging" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIT_LOGGING", + "safeName": "AUDIT_LOGGING" + }, + "pascalCase": { + "unsafeName": "AuditLogging", + "safeName": "AuditLogging" + } + }, + "wireValue": "X-API-Enable-Audit-Logging" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + } + ], + "endpoints": { + "endpoint_headers.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + ], + "packagePath": [], + "file": { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + } + }, + "location": { + "method": "POST", + "path": "/headers" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendLiteralsInHeadersRequest", + "camelCase": { + "unsafeName": "sendLiteralsInHeadersRequest", + "safeName": "sendLiteralsInHeadersRequest" + }, + "snakeCase": { + "unsafeName": "send_literals_in_headers_request", + "safeName": "send_literals_in_headers_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LITERALS_IN_HEADERS_REQUEST", + "safeName": "SEND_LITERALS_IN_HEADERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendLiteralsInHeadersRequest", + "safeName": "SendLiteralsInHeadersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + ], + "packagePath": [], + "file": { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "endpointVersion", + "camelCase": { + "unsafeName": "endpointVersion", + "safeName": "endpointVersion" + }, + "snakeCase": { + "unsafeName": "endpoint_version", + "safeName": "endpoint_version" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT_VERSION", + "safeName": "ENDPOINT_VERSION" + }, + "pascalCase": { + "unsafeName": "EndpointVersion", + "safeName": "EndpointVersion" + } + }, + "wireValue": "X-Endpoint-Version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "02-12-2024" + } + } + }, + { + "name": { + "name": { + "originalName": "async", + "camelCase": { + "unsafeName": "async", + "safeName": "async" + }, + "snakeCase": { + "unsafeName": "async", + "safeName": "async" + }, + "screamingSnakeCase": { + "unsafeName": "ASYNC", + "safeName": "ASYNC" + }, + "pascalCase": { + "unsafeName": "Async", + "safeName": "Async" + } + }, + "wireValue": "X-Async" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + } + ], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_inlined.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "location": { + "method": "POST", + "path": "/inlined" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendLiteralsInlinedRequest", + "camelCase": { + "unsafeName": "sendLiteralsInlinedRequest", + "safeName": "sendLiteralsInlinedRequest" + }, + "snakeCase": { + "unsafeName": "send_literals_inlined_request", + "safeName": "send_literals_inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LITERALS_INLINED_REQUEST", + "safeName": "SEND_LITERALS_INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendLiteralsInlinedRequest", + "safeName": "SendLiteralsInlinedRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "prompt", + "camelCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "snakeCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "screamingSnakeCase": { + "unsafeName": "PROMPT", + "safeName": "PROMPT" + }, + "pascalCase": { + "unsafeName": "Prompt", + "safeName": "Prompt" + } + }, + "wireValue": "prompt" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You are a helpful assistant" + } + } + }, + { + "name": { + "name": { + "originalName": "context", + "camelCase": { + "unsafeName": "context", + "safeName": "context" + }, + "snakeCase": { + "unsafeName": "context", + "safeName": "context" + }, + "screamingSnakeCase": { + "unsafeName": "CONTEXT", + "safeName": "CONTEXT" + }, + "pascalCase": { + "unsafeName": "Context", + "safeName": "Context" + } + }, + "wireValue": "context" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "literal", + "value": { + "type": "string", + "value": "You're super wise" + } + } + } + }, + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "temperature", + "camelCase": { + "unsafeName": "temperature", + "safeName": "temperature" + }, + "snakeCase": { + "unsafeName": "temperature", + "safeName": "temperature" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPERATURE", + "safeName": "TEMPERATURE" + }, + "pascalCase": { + "unsafeName": "Temperature", + "safeName": "Temperature" + } + }, + "wireValue": "temperature" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + }, + { + "name": { + "name": { + "originalName": "aliasedContext", + "camelCase": { + "unsafeName": "aliasedContext", + "safeName": "aliasedContext" + }, + "snakeCase": { + "unsafeName": "aliased_context", + "safeName": "aliased_context" + }, + "screamingSnakeCase": { + "unsafeName": "ALIASED_CONTEXT", + "safeName": "ALIASED_CONTEXT" + }, + "pascalCase": { + "unsafeName": "AliasedContext", + "safeName": "AliasedContext" + } + }, + "wireValue": "aliasedContext" + }, + "typeReference": { + "_type": "named", + "value": "type_inlined:SomeAliasedLiteral" + } + }, + { + "name": { + "name": { + "originalName": "maybeContext", + "camelCase": { + "unsafeName": "maybeContext", + "safeName": "maybeContext" + }, + "snakeCase": { + "unsafeName": "maybe_context", + "safeName": "maybe_context" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_CONTEXT", + "safeName": "MAYBE_CONTEXT" + }, + "pascalCase": { + "unsafeName": "MaybeContext", + "safeName": "MaybeContext" + } + }, + "wireValue": "maybeContext" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_inlined:SomeAliasedLiteral" + } + } + }, + { + "name": { + "name": { + "originalName": "objectWithLiteral", + "camelCase": { + "unsafeName": "objectWithLiteral", + "safeName": "objectWithLiteral" + }, + "snakeCase": { + "unsafeName": "object_with_literal", + "safeName": "object_with_literal" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_LITERAL", + "safeName": "OBJECT_WITH_LITERAL" + }, + "pascalCase": { + "unsafeName": "ObjectWithLiteral", + "safeName": "ObjectWithLiteral" + } + }, + "wireValue": "objectWithLiteral" + }, + "typeReference": { + "_type": "named", + "value": "type_inlined:ATopLevelLiteral" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_path.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "path", + "camelCase": { + "unsafeName": "path", + "safeName": "path" + }, + "snakeCase": { + "unsafeName": "path", + "safeName": "path" + }, + "screamingSnakeCase": { + "unsafeName": "PATH", + "safeName": "PATH" + }, + "pascalCase": { + "unsafeName": "Path", + "safeName": "Path" + } + } + ], + "packagePath": [], + "file": { + "originalName": "path", + "camelCase": { + "unsafeName": "path", + "safeName": "path" + }, + "snakeCase": { + "unsafeName": "path", + "safeName": "path" + }, + "screamingSnakeCase": { + "unsafeName": "PATH", + "safeName": "PATH" + }, + "pascalCase": { + "unsafeName": "Path", + "safeName": "Path" + } + } + } + }, + "location": { + "method": "POST", + "path": "/path/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "123" + } + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_query.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + } + }, + "location": { + "method": "POST", + "path": "/query" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendLiteralsInQueryRequest", + "camelCase": { + "unsafeName": "sendLiteralsInQueryRequest", + "safeName": "sendLiteralsInQueryRequest" + }, + "snakeCase": { + "unsafeName": "send_literals_in_query_request", + "safeName": "send_literals_in_query_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LITERALS_IN_QUERY_REQUEST", + "safeName": "SEND_LITERALS_IN_QUERY_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendLiteralsInQueryRequest", + "safeName": "SendLiteralsInQueryRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "prompt", + "camelCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "snakeCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "screamingSnakeCase": { + "unsafeName": "PROMPT", + "safeName": "PROMPT" + }, + "pascalCase": { + "unsafeName": "Prompt", + "safeName": "Prompt" + } + }, + "wireValue": "prompt" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You are a helpful assistant" + } + } + }, + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_reference.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "location": { + "method": "POST", + "path": "/reference" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_reference:SendRequest" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-case.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-case.json new file mode 100644 index 00000000000..3bd37242710 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-case.json @@ -0,0 +1,1141 @@ +{ + "version": "1.0.0", + "types": { + "type_service:Organization": { + "type": "object", + "declaration": { + "name": { + "originalName": "Organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "userName", + "camelCase": { + "unsafeName": "userName", + "safeName": "userName" + }, + "snakeCase": { + "unsafeName": "user_name", + "safeName": "user_name" + }, + "screamingSnakeCase": { + "unsafeName": "USER_NAME", + "safeName": "USER_NAME" + }, + "pascalCase": { + "unsafeName": "UserName", + "safeName": "UserName" + } + }, + "wireValue": "userName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "metadata_tags", + "camelCase": { + "unsafeName": "metadataTags", + "safeName": "metadataTags" + }, + "snakeCase": { + "unsafeName": "metadata_tags", + "safeName": "metadata_tags" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA_TAGS", + "safeName": "METADATA_TAGS" + }, + "pascalCase": { + "unsafeName": "MetadataTags", + "safeName": "MetadataTags" + } + }, + "wireValue": "metadata_tags" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "EXTRA_PROPERTIES", + "camelCase": { + "unsafeName": "extraProperties", + "safeName": "extraProperties" + }, + "snakeCase": { + "unsafeName": "extra_properties", + "safeName": "extra_properties" + }, + "screamingSnakeCase": { + "unsafeName": "EXTRA_PROPERTIES", + "safeName": "EXTRA_PROPERTIES" + }, + "pascalCase": { + "unsafeName": "ExtraProperties", + "safeName": "ExtraProperties" + } + }, + "wireValue": "EXTRA_PROPERTIES" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_service:NestedUser": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "Name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "Name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "NestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "wireValue": "NestedUser" + }, + "typeReference": { + "_type": "named", + "value": "type_service:User" + } + } + ] + }, + "type_service:ResourceStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ResourceStatus", + "camelCase": { + "unsafeName": "resourceStatus", + "safeName": "resourceStatus" + }, + "snakeCase": { + "unsafeName": "resource_status", + "safeName": "resource_status" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_STATUS", + "safeName": "RESOURCE_STATUS" + }, + "pascalCase": { + "unsafeName": "ResourceStatus", + "safeName": "ResourceStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "ACTIVE", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + }, + "wireValue": "ACTIVE" + }, + { + "name": { + "originalName": "INACTIVE", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + }, + "wireValue": "INACTIVE" + } + ] + }, + "type_service:Resource": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Resource", + "camelCase": { + "unsafeName": "resource", + "safeName": "resource" + }, + "snakeCase": { + "unsafeName": "resource", + "safeName": "resource" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE", + "safeName": "RESOURCE" + }, + "pascalCase": { + "unsafeName": "Resource", + "safeName": "Resource" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "resourceType", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "types": { + "user": { + "type": "samePropertiesAsObject", + "typeId": "type_service:User", + "discriminantValue": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_service:ResourceStatus" + } + }, + { + "name": { + "name": { + "originalName": "userName", + "camelCase": { + "unsafeName": "userName", + "safeName": "userName" + }, + "snakeCase": { + "unsafeName": "user_name", + "safeName": "user_name" + }, + "screamingSnakeCase": { + "unsafeName": "USER_NAME", + "safeName": "USER_NAME" + }, + "pascalCase": { + "unsafeName": "UserName", + "safeName": "UserName" + } + }, + "wireValue": "userName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "metadata_tags", + "camelCase": { + "unsafeName": "metadataTags", + "safeName": "metadataTags" + }, + "snakeCase": { + "unsafeName": "metadata_tags", + "safeName": "metadata_tags" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA_TAGS", + "safeName": "METADATA_TAGS" + }, + "pascalCase": { + "unsafeName": "MetadataTags", + "safeName": "MetadataTags" + } + }, + "wireValue": "metadata_tags" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "EXTRA_PROPERTIES", + "camelCase": { + "unsafeName": "extraProperties", + "safeName": "extraProperties" + }, + "snakeCase": { + "unsafeName": "extra_properties", + "safeName": "extra_properties" + }, + "screamingSnakeCase": { + "unsafeName": "EXTRA_PROPERTIES", + "safeName": "EXTRA_PROPERTIES" + }, + "pascalCase": { + "unsafeName": "ExtraProperties", + "safeName": "ExtraProperties" + } + }, + "wireValue": "EXTRA_PROPERTIES" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "Organization": { + "type": "samePropertiesAsObject", + "typeId": "type_service:Organization", + "discriminantValue": { + "name": { + "originalName": "Organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + }, + "wireValue": "Organization" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_service:ResourceStatus" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + } + }, + "headers": [], + "endpoints": { + "endpoint_service.getResource": { + "auth": null, + "declaration": { + "name": { + "originalName": "getResource", + "camelCase": { + "unsafeName": "getResource", + "safeName": "getResource" + }, + "snakeCase": { + "unsafeName": "get_resource", + "safeName": "get_resource" + }, + "screamingSnakeCase": { + "unsafeName": "GET_RESOURCE", + "safeName": "GET_RESOURCE" + }, + "pascalCase": { + "unsafeName": "GetResource", + "safeName": "GetResource" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/resource/{ResourceID}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "ResourceID", + "camelCase": { + "unsafeName": "resourceID", + "safeName": "resourceID" + }, + "snakeCase": { + "unsafeName": "resource_id", + "safeName": "resource_id" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_ID", + "safeName": "RESOURCE_ID" + }, + "pascalCase": { + "unsafeName": "ResourceID", + "safeName": "ResourceID" + } + }, + "wireValue": "ResourceID" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.listResources": { + "auth": null, + "declaration": { + "name": { + "originalName": "listResources", + "camelCase": { + "unsafeName": "listResources", + "safeName": "listResources" + }, + "snakeCase": { + "unsafeName": "list_resources", + "safeName": "list_resources" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_RESOURCES", + "safeName": "LIST_RESOURCES" + }, + "pascalCase": { + "unsafeName": "ListResources", + "safeName": "ListResources" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/resource" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListResourcesRequest", + "camelCase": { + "unsafeName": "listResourcesRequest", + "safeName": "listResourcesRequest" + }, + "snakeCase": { + "unsafeName": "list_resources_request", + "safeName": "list_resources_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_RESOURCES_REQUEST", + "safeName": "LIST_RESOURCES_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListResourcesRequest", + "safeName": "ListResourcesRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page_limit", + "camelCase": { + "unsafeName": "pageLimit", + "safeName": "pageLimit" + }, + "snakeCase": { + "unsafeName": "page_limit", + "safeName": "page_limit" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE_LIMIT", + "safeName": "PAGE_LIMIT" + }, + "pascalCase": { + "unsafeName": "PageLimit", + "safeName": "PageLimit" + } + }, + "wireValue": "page_limit" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "beforeDate", + "camelCase": { + "unsafeName": "beforeDate", + "safeName": "beforeDate" + }, + "snakeCase": { + "unsafeName": "before_date", + "safeName": "before_date" + }, + "screamingSnakeCase": { + "unsafeName": "BEFORE_DATE", + "safeName": "BEFORE_DATE" + }, + "pascalCase": { + "unsafeName": "BeforeDate", + "safeName": "BeforeDate" + } + }, + "wireValue": "beforeDate" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-file-directory.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-file-directory.json new file mode 100644 index 00000000000..fd7690375fb --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-file-directory.json @@ -0,0 +1,1657 @@ +{ + "version": "1.0.0", + "types": { + "type_:Id": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_organization:Organization": { + "type": "object", + "declaration": { + "name": { + "originalName": "Organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + ], + "packagePath": [], + "file": { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + }, + "wireValue": "users" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_user:User" + } + } + } + ] + }, + "type_organization:CreateOrganizationRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateOrganizationRequest", + "camelCase": { + "unsafeName": "createOrganizationRequest", + "safeName": "createOrganizationRequest" + }, + "snakeCase": { + "unsafeName": "create_organization_request", + "safeName": "create_organization_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_ORGANIZATION_REQUEST", + "safeName": "CREATE_ORGANIZATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateOrganizationRequest", + "safeName": "CreateOrganizationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + ], + "packagePath": [], + "file": { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_user/events:Event": { + "type": "object", + "declaration": { + "name": { + "originalName": "Event", + "camelCase": { + "unsafeName": "event", + "safeName": "event" + }, + "snakeCase": { + "unsafeName": "event", + "safeName": "event" + }, + "screamingSnakeCase": { + "unsafeName": "EVENT", + "safeName": "EVENT" + }, + "pascalCase": { + "unsafeName": "Event", + "safeName": "Event" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "file": { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_user/events/metadata:Metadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_organization.create": { + "auth": null, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + ], + "packagePath": [], + "file": { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + } + }, + "location": { + "method": "POST", + "path": "/organizations/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_organization:CreateOrganizationRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user.list": { + "auth": null, + "declaration": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersRequest", + "camelCase": { + "unsafeName": "listUsersRequest", + "safeName": "listUsersRequest" + }, + "snakeCase": { + "unsafeName": "list_users_request", + "safeName": "list_users_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_REQUEST", + "safeName": "LIST_USERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersRequest", + "safeName": "ListUsersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_user/events.listEvents": { + "auth": null, + "declaration": { + "name": { + "originalName": "listEvents", + "camelCase": { + "unsafeName": "listEvents", + "safeName": "listEvents" + }, + "snakeCase": { + "unsafeName": "list_events", + "safeName": "list_events" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_EVENTS", + "safeName": "LIST_EVENTS" + }, + "pascalCase": { + "unsafeName": "ListEvents", + "safeName": "ListEvents" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "file": { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/events/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUserEventsRequest", + "camelCase": { + "unsafeName": "listUserEventsRequest", + "safeName": "listUserEventsRequest" + }, + "snakeCase": { + "unsafeName": "list_user_events_request", + "safeName": "list_user_events_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USER_EVENTS_REQUEST", + "safeName": "LIST_USER_EVENTS_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUserEventsRequest", + "safeName": "ListUserEventsRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "file": { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_user/events/metadata.getMetadata": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMetadata", + "camelCase": { + "unsafeName": "getMetadata", + "safeName": "getMetadata" + }, + "snakeCase": { + "unsafeName": "get_metadata", + "safeName": "get_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA", + "safeName": "GET_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMetadata", + "safeName": "GetMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/events/metadata/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetEventMetadataRequest", + "camelCase": { + "unsafeName": "getEventMetadataRequest", + "safeName": "getEventMetadataRequest" + }, + "snakeCase": { + "unsafeName": "get_event_metadata_request", + "safeName": "get_event_metadata_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EVENT_METADATA_REQUEST", + "safeName": "GET_EVENT_METADATA_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetEventMetadataRequest", + "safeName": "GetEventMetadataRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-line-docs.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-line-docs.json new file mode 100644 index 00000000000..7694cba8272 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-line-docs.json @@ -0,0 +1,577 @@ +{ + "version": "1.0.0", + "types": { + "type_:Operand": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "GREATER_THAN", + "camelCase": { + "unsafeName": "greaterThan", + "safeName": "greaterThan" + }, + "snakeCase": { + "unsafeName": "greater_than", + "safeName": "greater_than" + }, + "screamingSnakeCase": { + "unsafeName": "GREATER_THAN", + "safeName": "GREATER_THAN" + }, + "pascalCase": { + "unsafeName": "GreaterThan", + "safeName": "GreaterThan" + } + }, + "wireValue": ">" + }, + { + "name": { + "originalName": "EQUAL_TO", + "camelCase": { + "unsafeName": "equalTo", + "safeName": "equalTo" + }, + "snakeCase": { + "unsafeName": "equal_to", + "safeName": "equal_to" + }, + "screamingSnakeCase": { + "unsafeName": "EQUAL_TO", + "safeName": "EQUAL_TO" + }, + "pascalCase": { + "unsafeName": "EqualTo", + "safeName": "EqualTo" + } + }, + "wireValue": "=" + }, + { + "name": { + "originalName": "less_than", + "camelCase": { + "unsafeName": "lessThan", + "safeName": "lessThan" + }, + "snakeCase": { + "unsafeName": "less_than", + "safeName": "less_than" + }, + "screamingSnakeCase": { + "unsafeName": "LESS_THAN", + "safeName": "LESS_THAN" + }, + "pascalCase": { + "unsafeName": "LessThan", + "safeName": "LessThan" + } + }, + "wireValue": "less_than" + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUser", + "camelCase": { + "unsafeName": "getUser", + "safeName": "getUser" + }, + "snakeCase": { + "unsafeName": "get_user", + "safeName": "get_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USER", + "safeName": "GET_USER" + }, + "pascalCase": { + "unsafeName": "GetUser", + "safeName": "GetUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/{userId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_user.createUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "createUser", + "camelCase": { + "unsafeName": "createUser", + "safeName": "createUser" + }, + "snakeCase": { + "unsafeName": "create_user", + "safeName": "create_user" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER", + "safeName": "CREATE_USER" + }, + "pascalCase": { + "unsafeName": "CreateUser", + "safeName": "CreateUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateUserRequest", + "camelCase": { + "unsafeName": "createUserRequest", + "safeName": "createUserRequest" + }, + "snakeCase": { + "unsafeName": "create_user_request", + "safeName": "create_user_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER_REQUEST", + "safeName": "CREATE_USER_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateUserRequest", + "safeName": "CreateUserRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment-no-default.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment-no-default.json new file mode 100644 index 00000000000..0a2908d9c8d --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment-no-default.json @@ -0,0 +1,403 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_ec2.bootInstance": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "bootInstance", + "camelCase": { + "unsafeName": "bootInstance", + "safeName": "bootInstance" + }, + "snakeCase": { + "unsafeName": "boot_instance", + "safeName": "boot_instance" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE", + "safeName": "BOOT_INSTANCE" + }, + "pascalCase": { + "unsafeName": "BootInstance", + "safeName": "BootInstance" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "location": { + "method": "POST", + "path": "/ec2/boot" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "BootInstanceRequest", + "camelCase": { + "unsafeName": "bootInstanceRequest", + "safeName": "bootInstanceRequest" + }, + "snakeCase": { + "unsafeName": "boot_instance_request", + "safeName": "boot_instance_request" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE_REQUEST", + "safeName": "BOOT_INSTANCE_REQUEST" + }, + "pascalCase": { + "unsafeName": "BootInstanceRequest", + "safeName": "BootInstanceRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "size", + "camelCase": { + "unsafeName": "size", + "safeName": "size" + }, + "snakeCase": { + "unsafeName": "size", + "safeName": "size" + }, + "screamingSnakeCase": { + "unsafeName": "SIZE", + "safeName": "SIZE" + }, + "pascalCase": { + "unsafeName": "Size", + "safeName": "Size" + } + }, + "wireValue": "size" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_s3.getPresignedUrl": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPresignedUrl", + "camelCase": { + "unsafeName": "getPresignedURL", + "safeName": "getPresignedURL" + }, + "snakeCase": { + "unsafeName": "get_presigned_url", + "safeName": "get_presigned_url" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL", + "safeName": "GET_PRESIGNED_URL" + }, + "pascalCase": { + "unsafeName": "GetPresignedURL", + "safeName": "GetPresignedURL" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "location": { + "method": "POST", + "path": "/s3/presigned-url" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetPresignedUrlRequest", + "camelCase": { + "unsafeName": "getPresignedURLRequest", + "safeName": "getPresignedURLRequest" + }, + "snakeCase": { + "unsafeName": "get_presigned_url_request", + "safeName": "get_presigned_url_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL_REQUEST", + "safeName": "GET_PRESIGNED_URL_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetPresignedURLRequest", + "safeName": "GetPresignedURLRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "s3Key", + "camelCase": { + "unsafeName": "s3Key", + "safeName": "s3Key" + }, + "snakeCase": { + "unsafeName": "s3key", + "safeName": "s3key" + }, + "screamingSnakeCase": { + "unsafeName": "S3KEY", + "safeName": "S3KEY" + }, + "pascalCase": { + "unsafeName": "S3Key", + "safeName": "S3Key" + } + }, + "wireValue": "s3Key" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment.json new file mode 100644 index 00000000000..0a2908d9c8d --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment.json @@ -0,0 +1,403 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_ec2.bootInstance": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "bootInstance", + "camelCase": { + "unsafeName": "bootInstance", + "safeName": "bootInstance" + }, + "snakeCase": { + "unsafeName": "boot_instance", + "safeName": "boot_instance" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE", + "safeName": "BOOT_INSTANCE" + }, + "pascalCase": { + "unsafeName": "BootInstance", + "safeName": "BootInstance" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "location": { + "method": "POST", + "path": "/ec2/boot" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "BootInstanceRequest", + "camelCase": { + "unsafeName": "bootInstanceRequest", + "safeName": "bootInstanceRequest" + }, + "snakeCase": { + "unsafeName": "boot_instance_request", + "safeName": "boot_instance_request" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE_REQUEST", + "safeName": "BOOT_INSTANCE_REQUEST" + }, + "pascalCase": { + "unsafeName": "BootInstanceRequest", + "safeName": "BootInstanceRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "size", + "camelCase": { + "unsafeName": "size", + "safeName": "size" + }, + "snakeCase": { + "unsafeName": "size", + "safeName": "size" + }, + "screamingSnakeCase": { + "unsafeName": "SIZE", + "safeName": "SIZE" + }, + "pascalCase": { + "unsafeName": "Size", + "safeName": "Size" + } + }, + "wireValue": "size" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_s3.getPresignedUrl": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPresignedUrl", + "camelCase": { + "unsafeName": "getPresignedURL", + "safeName": "getPresignedURL" + }, + "snakeCase": { + "unsafeName": "get_presigned_url", + "safeName": "get_presigned_url" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL", + "safeName": "GET_PRESIGNED_URL" + }, + "pascalCase": { + "unsafeName": "GetPresignedURL", + "safeName": "GetPresignedURL" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "location": { + "method": "POST", + "path": "/s3/presigned-url" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetPresignedUrlRequest", + "camelCase": { + "unsafeName": "getPresignedURLRequest", + "safeName": "getPresignedURLRequest" + }, + "snakeCase": { + "unsafeName": "get_presigned_url_request", + "safeName": "get_presigned_url_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL_REQUEST", + "safeName": "GET_PRESIGNED_URL_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetPresignedURLRequest", + "safeName": "GetPresignedURLRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "s3Key", + "camelCase": { + "unsafeName": "s3Key", + "safeName": "s3Key" + }, + "snakeCase": { + "unsafeName": "s3key", + "safeName": "s3key" + }, + "screamingSnakeCase": { + "unsafeName": "S3KEY", + "safeName": "S3KEY" + }, + "pascalCase": { + "unsafeName": "S3Key", + "safeName": "S3Key" + } + }, + "wireValue": "s3Key" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/no-environment.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/no-environment.json new file mode 100644 index 00000000000..f3907b4fc1c --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/no-environment.json @@ -0,0 +1,107 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_dummy.getDummy": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDummy", + "camelCase": { + "unsafeName": "getDummy", + "safeName": "getDummy" + }, + "snakeCase": { + "unsafeName": "get_dummy", + "safeName": "get_dummy" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DUMMY", + "safeName": "GET_DUMMY" + }, + "pascalCase": { + "unsafeName": "GetDummy", + "safeName": "GetDummy" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "GET", + "path": "/dummy" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-default.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-default.json new file mode 100644 index 00000000000..d22f873dd33 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-default.json @@ -0,0 +1,369 @@ +{ + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "getToken", + "camelCase": { + "unsafeName": "getToken", + "safeName": "getToken" + }, + "snakeCase": { + "unsafeName": "get_token", + "safeName": "get_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN", + "safeName": "GET_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetToken", + "safeName": "GetToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json new file mode 100644 index 00000000000..a833e16b6e0 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json @@ -0,0 +1,788 @@ +{ + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getTokenWithClientCredentials": { + "auth": null, + "declaration": { + "name": { + "originalName": "getTokenWithClientCredentials", + "camelCase": { + "unsafeName": "getTokenWithClientCredentials", + "safeName": "getTokenWithClientCredentials" + }, + "snakeCase": { + "unsafeName": "get_token_with_client_credentials", + "safeName": "get_token_with_client_credentials" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS", + "safeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS" + }, + "pascalCase": { + "unsafeName": "GetTokenWithClientCredentials", + "safeName": "GetTokenWithClientCredentials" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_auth.refreshToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "refreshToken", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RefreshTokenRequest", + "camelCase": { + "unsafeName": "refreshTokenRequest", + "safeName": "refreshTokenRequest" + }, + "snakeCase": { + "unsafeName": "refresh_token_request", + "safeName": "refresh_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN_REQUEST", + "safeName": "REFRESH_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "RefreshTokenRequest", + "safeName": "RefreshTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "refresh_token" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-nested-root.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-nested-root.json new file mode 100644 index 00000000000..ef756ee1d1a --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-nested-root.json @@ -0,0 +1,468 @@ +{ + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "getToken", + "camelCase": { + "unsafeName": "getToken", + "safeName": "getToken" + }, + "snakeCase": { + "unsafeName": "get_token", + "safeName": "get_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN", + "safeName": "GET_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetToken", + "safeName": "GetToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials.json new file mode 100644 index 00000000000..a833e16b6e0 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials.json @@ -0,0 +1,788 @@ +{ + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getTokenWithClientCredentials": { + "auth": null, + "declaration": { + "name": { + "originalName": "getTokenWithClientCredentials", + "camelCase": { + "unsafeName": "getTokenWithClientCredentials", + "safeName": "getTokenWithClientCredentials" + }, + "snakeCase": { + "unsafeName": "get_token_with_client_credentials", + "safeName": "get_token_with_client_credentials" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS", + "safeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS" + }, + "pascalCase": { + "unsafeName": "GetTokenWithClientCredentials", + "safeName": "GetTokenWithClientCredentials" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_auth.refreshToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "refreshToken", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RefreshTokenRequest", + "camelCase": { + "unsafeName": "refreshTokenRequest", + "safeName": "refreshTokenRequest" + }, + "snakeCase": { + "unsafeName": "refresh_token_request", + "safeName": "refresh_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN_REQUEST", + "safeName": "REFRESH_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "RefreshTokenRequest", + "safeName": "RefreshTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "refresh_token" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/object.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/object.json new file mode 100644 index 00000000000..fe90a1ecc8e --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/object.json @@ -0,0 +1,809 @@ +{ + "version": "1.0.0", + "types": { + "type_:Type": { + "type": "object", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "one", + "camelCase": { + "unsafeName": "one", + "safeName": "one" + }, + "snakeCase": { + "unsafeName": "one", + "safeName": "one" + }, + "screamingSnakeCase": { + "unsafeName": "ONE", + "safeName": "ONE" + }, + "pascalCase": { + "unsafeName": "One", + "safeName": "One" + } + }, + "wireValue": "one" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "two", + "camelCase": { + "unsafeName": "two", + "safeName": "two" + }, + "snakeCase": { + "unsafeName": "two", + "safeName": "two" + }, + "screamingSnakeCase": { + "unsafeName": "TWO", + "safeName": "TWO" + }, + "pascalCase": { + "unsafeName": "Two", + "safeName": "Two" + } + }, + "wireValue": "two" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "three", + "camelCase": { + "unsafeName": "three", + "safeName": "three" + }, + "snakeCase": { + "unsafeName": "three", + "safeName": "three" + }, + "screamingSnakeCase": { + "unsafeName": "THREE", + "safeName": "THREE" + }, + "pascalCase": { + "unsafeName": "Three", + "safeName": "Three" + } + }, + "wireValue": "three" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "four", + "camelCase": { + "unsafeName": "four", + "safeName": "four" + }, + "snakeCase": { + "unsafeName": "four", + "safeName": "four" + }, + "screamingSnakeCase": { + "unsafeName": "FOUR", + "safeName": "FOUR" + }, + "pascalCase": { + "unsafeName": "Four", + "safeName": "Four" + } + }, + "wireValue": "four" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "five", + "camelCase": { + "unsafeName": "five", + "safeName": "five" + }, + "snakeCase": { + "unsafeName": "five", + "safeName": "five" + }, + "screamingSnakeCase": { + "unsafeName": "FIVE", + "safeName": "FIVE" + }, + "pascalCase": { + "unsafeName": "Five", + "safeName": "Five" + } + }, + "wireValue": "five" + }, + "typeReference": { + "_type": "primitive", + "value": "LONG" + } + }, + { + "name": { + "name": { + "originalName": "six", + "camelCase": { + "unsafeName": "six", + "safeName": "six" + }, + "snakeCase": { + "unsafeName": "six", + "safeName": "six" + }, + "screamingSnakeCase": { + "unsafeName": "SIX", + "safeName": "SIX" + }, + "pascalCase": { + "unsafeName": "Six", + "safeName": "Six" + } + }, + "wireValue": "six" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "seven", + "camelCase": { + "unsafeName": "seven", + "safeName": "seven" + }, + "snakeCase": { + "unsafeName": "seven", + "safeName": "seven" + }, + "screamingSnakeCase": { + "unsafeName": "SEVEN", + "safeName": "SEVEN" + }, + "pascalCase": { + "unsafeName": "Seven", + "safeName": "Seven" + } + }, + "wireValue": "seven" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + }, + { + "name": { + "name": { + "originalName": "eight", + "camelCase": { + "unsafeName": "eight", + "safeName": "eight" + }, + "snakeCase": { + "unsafeName": "eight", + "safeName": "eight" + }, + "screamingSnakeCase": { + "unsafeName": "EIGHT", + "safeName": "EIGHT" + }, + "pascalCase": { + "unsafeName": "Eight", + "safeName": "Eight" + } + }, + "wireValue": "eight" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + { + "name": { + "name": { + "originalName": "nine", + "camelCase": { + "unsafeName": "nine", + "safeName": "nine" + }, + "snakeCase": { + "unsafeName": "nine", + "safeName": "nine" + }, + "screamingSnakeCase": { + "unsafeName": "NINE", + "safeName": "NINE" + }, + "pascalCase": { + "unsafeName": "Nine", + "safeName": "Nine" + } + }, + "wireValue": "nine" + }, + "typeReference": { + "_type": "primitive", + "value": "BASE_64" + } + }, + { + "name": { + "name": { + "originalName": "ten", + "camelCase": { + "unsafeName": "ten", + "safeName": "ten" + }, + "snakeCase": { + "unsafeName": "ten", + "safeName": "ten" + }, + "screamingSnakeCase": { + "unsafeName": "TEN", + "safeName": "TEN" + }, + "pascalCase": { + "unsafeName": "Ten", + "safeName": "Ten" + } + }, + "wireValue": "ten" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "eleven", + "camelCase": { + "unsafeName": "eleven", + "safeName": "eleven" + }, + "snakeCase": { + "unsafeName": "eleven", + "safeName": "eleven" + }, + "screamingSnakeCase": { + "unsafeName": "ELEVEN", + "safeName": "ELEVEN" + }, + "pascalCase": { + "unsafeName": "Eleven", + "safeName": "Eleven" + } + }, + "wireValue": "eleven" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + { + "name": { + "name": { + "originalName": "twelve", + "camelCase": { + "unsafeName": "twelve", + "safeName": "twelve" + }, + "snakeCase": { + "unsafeName": "twelve", + "safeName": "twelve" + }, + "screamingSnakeCase": { + "unsafeName": "TWELVE", + "safeName": "TWELVE" + }, + "pascalCase": { + "unsafeName": "Twelve", + "safeName": "Twelve" + } + }, + "wireValue": "twelve" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "thirteen", + "camelCase": { + "unsafeName": "thirteen", + "safeName": "thirteen" + }, + "snakeCase": { + "unsafeName": "thirteen", + "safeName": "thirteen" + }, + "screamingSnakeCase": { + "unsafeName": "THIRTEEN", + "safeName": "THIRTEEN" + }, + "pascalCase": { + "unsafeName": "Thirteen", + "safeName": "Thirteen" + } + }, + "wireValue": "thirteen" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "LONG" + } + } + }, + { + "name": { + "name": { + "originalName": "fourteen", + "camelCase": { + "unsafeName": "fourteen", + "safeName": "fourteen" + }, + "snakeCase": { + "unsafeName": "fourteen", + "safeName": "fourteen" + }, + "screamingSnakeCase": { + "unsafeName": "FOURTEEN", + "safeName": "FOURTEEN" + }, + "pascalCase": { + "unsafeName": "Fourteen", + "safeName": "Fourteen" + } + }, + "wireValue": "fourteen" + }, + "typeReference": { + "_type": "unknown" + } + }, + { + "name": { + "name": { + "originalName": "fifteen", + "camelCase": { + "unsafeName": "fifteen", + "safeName": "fifteen" + }, + "snakeCase": { + "unsafeName": "fifteen", + "safeName": "fifteen" + }, + "screamingSnakeCase": { + "unsafeName": "FIFTEEN", + "safeName": "FIFTEEN" + }, + "pascalCase": { + "unsafeName": "Fifteen", + "safeName": "Fifteen" + } + }, + "wireValue": "fifteen" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + }, + { + "name": { + "name": { + "originalName": "sixteen", + "camelCase": { + "unsafeName": "sixteen", + "safeName": "sixteen" + }, + "snakeCase": { + "unsafeName": "sixteen", + "safeName": "sixteen" + }, + "screamingSnakeCase": { + "unsafeName": "SIXTEEN", + "safeName": "SIXTEEN" + }, + "pascalCase": { + "unsafeName": "Sixteen", + "safeName": "Sixteen" + } + }, + "wireValue": "sixteen" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + }, + { + "name": { + "name": { + "originalName": "seventeen", + "camelCase": { + "unsafeName": "seventeen", + "safeName": "seventeen" + }, + "snakeCase": { + "unsafeName": "seventeen", + "safeName": "seventeen" + }, + "screamingSnakeCase": { + "unsafeName": "SEVENTEEN", + "safeName": "SEVENTEEN" + }, + "pascalCase": { + "unsafeName": "Seventeen", + "safeName": "Seventeen" + } + }, + "wireValue": "seventeen" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + }, + { + "name": { + "name": { + "originalName": "eighteen", + "camelCase": { + "unsafeName": "eighteen", + "safeName": "eighteen" + }, + "snakeCase": { + "unsafeName": "eighteen", + "safeName": "eighteen" + }, + "screamingSnakeCase": { + "unsafeName": "EIGHTEEN", + "safeName": "EIGHTEEN" + }, + "pascalCase": { + "unsafeName": "Eighteen", + "safeName": "Eighteen" + } + }, + "wireValue": "eighteen" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "eighteen" + } + } + }, + { + "name": { + "name": { + "originalName": "nineteen", + "camelCase": { + "unsafeName": "nineteen", + "safeName": "nineteen" + }, + "snakeCase": { + "unsafeName": "nineteen", + "safeName": "nineteen" + }, + "screamingSnakeCase": { + "unsafeName": "NINETEEN", + "safeName": "NINETEEN" + }, + "pascalCase": { + "unsafeName": "Nineteen", + "safeName": "Nineteen" + } + }, + "wireValue": "nineteen" + }, + "typeReference": { + "_type": "named", + "value": "type_:Name" + } + }, + { + "name": { + "name": { + "originalName": "twenty", + "camelCase": { + "unsafeName": "twenty", + "safeName": "twenty" + }, + "snakeCase": { + "unsafeName": "twenty", + "safeName": "twenty" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTY", + "safeName": "TWENTY" + }, + "pascalCase": { + "unsafeName": "Twenty", + "safeName": "Twenty" + } + }, + "wireValue": "twenty" + }, + "typeReference": { + "_type": "primitive", + "value": "UINT" + } + }, + { + "name": { + "name": { + "originalName": "twentyone", + "camelCase": { + "unsafeName": "twentyone", + "safeName": "twentyone" + }, + "snakeCase": { + "unsafeName": "twentyone", + "safeName": "twentyone" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTYONE", + "safeName": "TWENTYONE" + }, + "pascalCase": { + "unsafeName": "Twentyone", + "safeName": "Twentyone" + } + }, + "wireValue": "twentyone" + }, + "typeReference": { + "_type": "primitive", + "value": "UINT_64" + } + }, + { + "name": { + "name": { + "originalName": "twentytwo", + "camelCase": { + "unsafeName": "twentytwo", + "safeName": "twentytwo" + }, + "snakeCase": { + "unsafeName": "twentytwo", + "safeName": "twentytwo" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTYTWO", + "safeName": "TWENTYTWO" + }, + "pascalCase": { + "unsafeName": "Twentytwo", + "safeName": "Twentytwo" + } + }, + "wireValue": "twentytwo" + }, + "typeReference": { + "_type": "primitive", + "value": "FLOAT" + } + }, + { + "name": { + "name": { + "originalName": "twentythree", + "camelCase": { + "unsafeName": "twentythree", + "safeName": "twentythree" + }, + "snakeCase": { + "unsafeName": "twentythree", + "safeName": "twentythree" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTYTHREE", + "safeName": "TWENTYTHREE" + }, + "pascalCase": { + "unsafeName": "Twentythree", + "safeName": "Twentythree" + } + }, + "wireValue": "twentythree" + }, + "typeReference": { + "_type": "primitive", + "value": "BIG_INTEGER" + } + } + ] + }, + "type_:Name": { + "type": "object", + "declaration": { + "name": { + "originalName": "Name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": {} +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/objects-with-imports.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/objects-with-imports.json new file mode 100644 index 00000000000..20c92fd25c3 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/objects-with-imports.json @@ -0,0 +1,837 @@ +{ + "version": "1.0.0", + "types": { + "type_:Node": { + "type": "object", + "declaration": { + "name": { + "originalName": "Node", + "camelCase": { + "unsafeName": "node", + "safeName": "node" + }, + "snakeCase": { + "unsafeName": "node", + "safeName": "node" + }, + "screamingSnakeCase": { + "unsafeName": "NODE", + "safeName": "NODE" + }, + "pascalCase": { + "unsafeName": "Node", + "safeName": "Node" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "label", + "camelCase": { + "unsafeName": "label", + "safeName": "label" + }, + "snakeCase": { + "unsafeName": "label", + "safeName": "label" + }, + "screamingSnakeCase": { + "unsafeName": "LABEL", + "safeName": "LABEL" + }, + "pascalCase": { + "unsafeName": "Label", + "safeName": "Label" + } + }, + "wireValue": "label" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons/metadata:Metadata" + } + } + } + ] + }, + "type_:Tree": { + "type": "object", + "declaration": { + "name": { + "originalName": "Tree", + "camelCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "snakeCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "screamingSnakeCase": { + "unsafeName": "TREE", + "safeName": "TREE" + }, + "pascalCase": { + "unsafeName": "Tree", + "safeName": "Tree" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Node" + } + } + } + } + ] + }, + "type_commons/metadata:Metadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + } + ] + }, + "type_file:File": { + "type": "object", + "declaration": { + "name": { + "originalName": "File", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "packagePath": [], + "file": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "info", + "camelCase": { + "unsafeName": "info", + "safeName": "info" + }, + "snakeCase": { + "unsafeName": "info", + "safeName": "info" + }, + "screamingSnakeCase": { + "unsafeName": "INFO", + "safeName": "INFO" + }, + "pascalCase": { + "unsafeName": "Info", + "safeName": "Info" + } + }, + "wireValue": "info" + }, + "typeReference": { + "_type": "named", + "value": "type_file:FileInfo" + } + } + ] + }, + "type_file:FileInfo": { + "type": "enum", + "declaration": { + "name": { + "originalName": "FileInfo", + "camelCase": { + "unsafeName": "fileInfo", + "safeName": "fileInfo" + }, + "snakeCase": { + "unsafeName": "file_info", + "safeName": "file_info" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO", + "safeName": "FILE_INFO" + }, + "pascalCase": { + "unsafeName": "FileInfo", + "safeName": "FileInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "packagePath": [], + "file": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "REGULAR", + "camelCase": { + "unsafeName": "regular", + "safeName": "regular" + }, + "snakeCase": { + "unsafeName": "regular", + "safeName": "regular" + }, + "screamingSnakeCase": { + "unsafeName": "REGULAR", + "safeName": "REGULAR" + }, + "pascalCase": { + "unsafeName": "Regular", + "safeName": "Regular" + } + }, + "wireValue": "REGULAR" + }, + { + "name": { + "originalName": "DIRECTORY", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "DIRECTORY" + } + ] + }, + "type_file/directory:Directory": { + "type": "object", + "declaration": { + "name": { + "originalName": "Directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_file:File" + } + } + } + }, + { + "name": { + "name": { + "originalName": "directories", + "camelCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "snakeCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORIES", + "safeName": "DIRECTORIES" + }, + "pascalCase": { + "unsafeName": "Directories", + "safeName": "Directories" + } + }, + "wireValue": "directories" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_file/directory:Directory" + } + } + } + } + ] + } + }, + "headers": [], + "endpoints": {} +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/optional.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/optional.json new file mode 100644 index 00000000000..522dd9cffc4 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/optional.json @@ -0,0 +1,101 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_optional.sendOptionalBody": { + "auth": null, + "declaration": { + "name": { + "originalName": "sendOptionalBody", + "camelCase": { + "unsafeName": "sendOptionalBody", + "safeName": "sendOptionalBody" + }, + "snakeCase": { + "unsafeName": "send_optional_body", + "safeName": "send_optional_body" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_OPTIONAL_BODY", + "safeName": "SEND_OPTIONAL_BODY" + }, + "pascalCase": { + "unsafeName": "SendOptionalBody", + "safeName": "SendOptionalBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + } + ], + "packagePath": [], + "file": { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + } + } + }, + "location": { + "method": "POST", + "path": "/send-optional-body" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/package-yml.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/package-yml.json new file mode 100644 index 00000000000..1b5a60b430c --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/package-yml.json @@ -0,0 +1,307 @@ +{ + "version": "1.0.0", + "types": { + "type_:EchoRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "EchoRequest", + "camelCase": { + "unsafeName": "echoRequest", + "safeName": "echoRequest" + }, + "snakeCase": { + "unsafeName": "echo_request", + "safeName": "echo_request" + }, + "screamingSnakeCase": { + "unsafeName": "ECHO_REQUEST", + "safeName": "ECHO_REQUEST" + }, + "pascalCase": { + "unsafeName": "EchoRequest", + "safeName": "EchoRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "size", + "camelCase": { + "unsafeName": "size", + "safeName": "size" + }, + "snakeCase": { + "unsafeName": "size", + "safeName": "size" + }, + "screamingSnakeCase": { + "unsafeName": "SIZE", + "safeName": "SIZE" + }, + "pascalCase": { + "unsafeName": "Size", + "safeName": "Size" + } + }, + "wireValue": "size" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.echo": { + "auth": null, + "declaration": { + "name": { + "originalName": "echo", + "camelCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "snakeCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "screamingSnakeCase": { + "unsafeName": "ECHO", + "safeName": "ECHO" + }, + "pascalCase": { + "unsafeName": "Echo", + "safeName": "Echo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/{id}/" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_:EchoRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.nop": { + "auth": null, + "declaration": { + "name": { + "originalName": "nop", + "camelCase": { + "unsafeName": "nop", + "safeName": "nop" + }, + "snakeCase": { + "unsafeName": "nop", + "safeName": "nop" + }, + "screamingSnakeCase": { + "unsafeName": "NOP", + "safeName": "NOP" + }, + "pascalCase": { + "unsafeName": "Nop", + "safeName": "Nop" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/{id}/{nestedId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "nestedId", + "camelCase": { + "unsafeName": "nestedID", + "safeName": "nestedID" + }, + "snakeCase": { + "unsafeName": "nested_id", + "safeName": "nested_id" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_ID", + "safeName": "NESTED_ID" + }, + "pascalCase": { + "unsafeName": "NestedID", + "safeName": "NestedID" + } + }, + "wireValue": "nestedId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/pagination.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/pagination.json new file mode 100644 index 00000000000..0360fb86c19 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/pagination.json @@ -0,0 +1,4264 @@ +{ + "version": "1.0.0", + "types": { + "type_:UsernameCursor": { + "type": "object", + "declaration": { + "name": { + "originalName": "UsernameCursor", + "camelCase": { + "unsafeName": "usernameCursor", + "safeName": "usernameCursor" + }, + "snakeCase": { + "unsafeName": "username_cursor", + "safeName": "username_cursor" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME_CURSOR", + "safeName": "USERNAME_CURSOR" + }, + "pascalCase": { + "unsafeName": "UsernameCursor", + "safeName": "UsernameCursor" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "named", + "value": "type_:UsernamePage" + } + } + ] + }, + "type_:UsernamePage": { + "type": "object", + "declaration": { + "name": { + "originalName": "UsernamePage", + "camelCase": { + "unsafeName": "usernamePage", + "safeName": "usernamePage" + }, + "snakeCase": { + "unsafeName": "username_page", + "safeName": "username_page" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME_PAGE", + "safeName": "USERNAME_PAGE" + }, + "pascalCase": { + "unsafeName": "UsernamePage", + "safeName": "UsernamePage" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "after", + "camelCase": { + "unsafeName": "after", + "safeName": "after" + }, + "snakeCase": { + "unsafeName": "after", + "safeName": "after" + }, + "screamingSnakeCase": { + "unsafeName": "AFTER", + "safeName": "AFTER" + }, + "pascalCase": { + "unsafeName": "After", + "safeName": "After" + } + }, + "wireValue": "after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_users:Order": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "asc", + "camelCase": { + "unsafeName": "asc", + "safeName": "asc" + }, + "snakeCase": { + "unsafeName": "asc", + "safeName": "asc" + }, + "screamingSnakeCase": { + "unsafeName": "ASC", + "safeName": "ASC" + }, + "pascalCase": { + "unsafeName": "Asc", + "safeName": "Asc" + } + }, + "wireValue": "asc" + }, + { + "name": { + "originalName": "desc", + "camelCase": { + "unsafeName": "desc", + "safeName": "desc" + }, + "snakeCase": { + "unsafeName": "desc", + "safeName": "desc" + }, + "screamingSnakeCase": { + "unsafeName": "DESC", + "safeName": "DESC" + }, + "pascalCase": { + "unsafeName": "Desc", + "safeName": "Desc" + } + }, + "wireValue": "desc" + } + ] + }, + "type_users:WithPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithPage", + "camelCase": { + "unsafeName": "withPage", + "safeName": "withPage" + }, + "snakeCase": { + "unsafeName": "with_page", + "safeName": "with_page" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_PAGE", + "safeName": "WITH_PAGE" + }, + "pascalCase": { + "unsafeName": "WithPage", + "safeName": "WithPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "type_users:WithCursor": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithCursor", + "camelCase": { + "unsafeName": "withCursor", + "safeName": "withCursor" + }, + "snakeCase": { + "unsafeName": "with_cursor", + "safeName": "with_cursor" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_CURSOR", + "safeName": "WITH_CURSOR" + }, + "pascalCase": { + "unsafeName": "WithCursor", + "safeName": "WithCursor" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_users:UserListContainer": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserListContainer", + "camelCase": { + "unsafeName": "userListContainer", + "safeName": "userListContainer" + }, + "snakeCase": { + "unsafeName": "user_list_container", + "safeName": "user_list_container" + }, + "screamingSnakeCase": { + "unsafeName": "USER_LIST_CONTAINER", + "safeName": "USER_LIST_CONTAINER" + }, + "pascalCase": { + "unsafeName": "UserListContainer", + "safeName": "UserListContainer" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + }, + "wireValue": "users" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_users:User" + } + } + } + ] + }, + "type_users:UserPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserPage", + "camelCase": { + "unsafeName": "userPage", + "safeName": "userPage" + }, + "snakeCase": { + "unsafeName": "user_page", + "safeName": "user_page" + }, + "screamingSnakeCase": { + "unsafeName": "USER_PAGE", + "safeName": "USER_PAGE" + }, + "pascalCase": { + "unsafeName": "UserPage", + "safeName": "UserPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ] + }, + "type_users:UserOptionalListContainer": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserOptionalListContainer", + "camelCase": { + "unsafeName": "userOptionalListContainer", + "safeName": "userOptionalListContainer" + }, + "snakeCase": { + "unsafeName": "user_optional_list_container", + "safeName": "user_optional_list_container" + }, + "screamingSnakeCase": { + "unsafeName": "USER_OPTIONAL_LIST_CONTAINER", + "safeName": "USER_OPTIONAL_LIST_CONTAINER" + }, + "pascalCase": { + "unsafeName": "UserOptionalListContainer", + "safeName": "UserOptionalListContainer" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + }, + "wireValue": "users" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_users:User" + } + } + } + } + ] + }, + "type_users:UserOptionalListPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserOptionalListPage", + "camelCase": { + "unsafeName": "userOptionalListPage", + "safeName": "userOptionalListPage" + }, + "snakeCase": { + "unsafeName": "user_optional_list_page", + "safeName": "user_optional_list_page" + }, + "screamingSnakeCase": { + "unsafeName": "USER_OPTIONAL_LIST_PAGE", + "safeName": "USER_OPTIONAL_LIST_PAGE" + }, + "pascalCase": { + "unsafeName": "UserOptionalListPage", + "safeName": "UserOptionalListPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserOptionalListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ] + }, + "type_users:UsernameContainer": { + "type": "object", + "declaration": { + "name": { + "originalName": "UsernameContainer", + "camelCase": { + "unsafeName": "usernameContainer", + "safeName": "usernameContainer" + }, + "snakeCase": { + "unsafeName": "username_container", + "safeName": "username_container" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME_CONTAINER", + "safeName": "USERNAME_CONTAINER" + }, + "pascalCase": { + "unsafeName": "UsernameContainer", + "safeName": "UsernameContainer" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + }, + "wireValue": "results" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_users:ListUsersExtendedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListUsersExtendedResponse", + "camelCase": { + "unsafeName": "listUsersExtendedResponse", + "safeName": "listUsersExtendedResponse" + }, + "snakeCase": { + "unsafeName": "list_users_extended_response", + "safeName": "list_users_extended_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_RESPONSE", + "safeName": "LIST_USERS_EXTENDED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedResponse", + "safeName": "ListUsersExtendedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + { + "name": { + "name": { + "originalName": "total_count", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "total_count" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_users:ListUsersExtendedOptionalListResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListUsersExtendedOptionalListResponse", + "camelCase": { + "unsafeName": "listUsersExtendedOptionalListResponse", + "safeName": "listUsersExtendedOptionalListResponse" + }, + "snakeCase": { + "unsafeName": "list_users_extended_optional_list_response", + "safeName": "list_users_extended_optional_list_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_OPTIONAL_LIST_RESPONSE", + "safeName": "LIST_USERS_EXTENDED_OPTIONAL_LIST_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedOptionalListResponse", + "safeName": "ListUsersExtendedOptionalListResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserOptionalListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + { + "name": { + "name": { + "originalName": "total_count", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "total_count" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_users:ListUsersPaginationResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListUsersPaginationResponse", + "camelCase": { + "unsafeName": "listUsersPaginationResponse", + "safeName": "listUsersPaginationResponse" + }, + "snakeCase": { + "unsafeName": "list_users_pagination_response", + "safeName": "list_users_pagination_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_PAGINATION_RESPONSE", + "safeName": "LIST_USERS_PAGINATION_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListUsersPaginationResponse", + "safeName": "ListUsersPaginationResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "hasNextPage", + "camelCase": { + "unsafeName": "hasNextPage", + "safeName": "hasNextPage" + }, + "snakeCase": { + "unsafeName": "has_next_page", + "safeName": "has_next_page" + }, + "screamingSnakeCase": { + "unsafeName": "HAS_NEXT_PAGE", + "safeName": "HAS_NEXT_PAGE" + }, + "pascalCase": { + "unsafeName": "HasNextPage", + "safeName": "HasNextPage" + } + }, + "wireValue": "hasNextPage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Page" + } + } + }, + { + "name": { + "name": { + "originalName": "total_count", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "total_count" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_users:User" + } + } + } + ] + }, + "type_users:Page": { + "type": "object", + "declaration": { + "name": { + "originalName": "Page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:NextPage" + } + } + }, + { + "name": { + "name": { + "originalName": "per_page", + "camelCase": { + "unsafeName": "perPage", + "safeName": "perPage" + }, + "snakeCase": { + "unsafeName": "per_page", + "safeName": "per_page" + }, + "screamingSnakeCase": { + "unsafeName": "PER_PAGE", + "safeName": "PER_PAGE" + }, + "pascalCase": { + "unsafeName": "PerPage", + "safeName": "PerPage" + } + }, + "wireValue": "per_page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "total_page", + "camelCase": { + "unsafeName": "totalPage", + "safeName": "totalPage" + }, + "snakeCase": { + "unsafeName": "total_page", + "safeName": "total_page" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_PAGE", + "safeName": "TOTAL_PAGE" + }, + "pascalCase": { + "unsafeName": "TotalPage", + "safeName": "TotalPage" + } + }, + "wireValue": "total_page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_users:NextPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "NextPage", + "camelCase": { + "unsafeName": "nextPage", + "safeName": "nextPage" + }, + "snakeCase": { + "unsafeName": "next_page", + "safeName": "next_page" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT_PAGE", + "safeName": "NEXT_PAGE" + }, + "pascalCase": { + "unsafeName": "NextPage", + "safeName": "NextPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_users:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_users.listWithCursorPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithCursorPagination", + "camelCase": { + "unsafeName": "listWithCursorPagination", + "safeName": "listWithCursorPagination" + }, + "snakeCase": { + "unsafeName": "list_with_cursor_pagination", + "safeName": "list_with_cursor_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_CURSOR_PAGINATION", + "safeName": "LIST_WITH_CURSOR_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithCursorPagination", + "safeName": "ListWithCursorPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersCursorPaginationRequest", + "camelCase": { + "unsafeName": "listUsersCursorPaginationRequest", + "safeName": "listUsersCursorPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_cursor_pagination_request", + "safeName": "list_users_cursor_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_CURSOR_PAGINATION_REQUEST", + "safeName": "LIST_USERS_CURSOR_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersCursorPaginationRequest", + "safeName": "ListUsersCursorPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "per_page", + "camelCase": { + "unsafeName": "perPage", + "safeName": "perPage" + }, + "snakeCase": { + "unsafeName": "per_page", + "safeName": "per_page" + }, + "screamingSnakeCase": { + "unsafeName": "PER_PAGE", + "safeName": "PER_PAGE" + }, + "pascalCase": { + "unsafeName": "PerPage", + "safeName": "PerPage" + } + }, + "wireValue": "per_page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + }, + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithBodyCursorPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithBodyCursorPagination", + "camelCase": { + "unsafeName": "listWithBodyCursorPagination", + "safeName": "listWithBodyCursorPagination" + }, + "snakeCase": { + "unsafeName": "list_with_body_cursor_pagination", + "safeName": "list_with_body_cursor_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_BODY_CURSOR_PAGINATION", + "safeName": "LIST_WITH_BODY_CURSOR_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithBodyCursorPagination", + "safeName": "ListWithBodyCursorPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersBodyCursorPaginationRequest", + "camelCase": { + "unsafeName": "listUsersBodyCursorPaginationRequest", + "safeName": "listUsersBodyCursorPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_body_cursor_pagination_request", + "safeName": "list_users_body_cursor_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_BODY_CURSOR_PAGINATION_REQUEST", + "safeName": "LIST_USERS_BODY_CURSOR_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersBodyCursorPaginationRequest", + "safeName": "ListUsersBodyCursorPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "wireValue": "pagination" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:WithCursor" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithOffsetPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithOffsetPagination", + "camelCase": { + "unsafeName": "listWithOffsetPagination", + "safeName": "listWithOffsetPagination" + }, + "snakeCase": { + "unsafeName": "list_with_offset_pagination", + "safeName": "list_with_offset_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_PAGINATION", + "safeName": "LIST_WITH_OFFSET_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetPagination", + "safeName": "ListWithOffsetPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersOffsetPaginationRequest", + "camelCase": { + "unsafeName": "listUsersOffsetPaginationRequest", + "safeName": "listUsersOffsetPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_offset_pagination_request", + "safeName": "list_users_offset_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_OFFSET_PAGINATION_REQUEST", + "safeName": "LIST_USERS_OFFSET_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersOffsetPaginationRequest", + "safeName": "ListUsersOffsetPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "per_page", + "camelCase": { + "unsafeName": "perPage", + "safeName": "perPage" + }, + "snakeCase": { + "unsafeName": "per_page", + "safeName": "per_page" + }, + "screamingSnakeCase": { + "unsafeName": "PER_PAGE", + "safeName": "PER_PAGE" + }, + "pascalCase": { + "unsafeName": "PerPage", + "safeName": "PerPage" + } + }, + "wireValue": "per_page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + }, + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithBodyOffsetPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithBodyOffsetPagination", + "camelCase": { + "unsafeName": "listWithBodyOffsetPagination", + "safeName": "listWithBodyOffsetPagination" + }, + "snakeCase": { + "unsafeName": "list_with_body_offset_pagination", + "safeName": "list_with_body_offset_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_BODY_OFFSET_PAGINATION", + "safeName": "LIST_WITH_BODY_OFFSET_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithBodyOffsetPagination", + "safeName": "ListWithBodyOffsetPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersBodyOffsetPaginationRequest", + "camelCase": { + "unsafeName": "listUsersBodyOffsetPaginationRequest", + "safeName": "listUsersBodyOffsetPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_body_offset_pagination_request", + "safeName": "list_users_body_offset_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_BODY_OFFSET_PAGINATION_REQUEST", + "safeName": "LIST_USERS_BODY_OFFSET_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersBodyOffsetPaginationRequest", + "safeName": "ListUsersBodyOffsetPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "wireValue": "pagination" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:WithPage" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithOffsetStepPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithOffsetStepPagination", + "camelCase": { + "unsafeName": "listWithOffsetStepPagination", + "safeName": "listWithOffsetStepPagination" + }, + "snakeCase": { + "unsafeName": "list_with_offset_step_pagination", + "safeName": "list_with_offset_step_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_STEP_PAGINATION", + "safeName": "LIST_WITH_OFFSET_STEP_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetStepPagination", + "safeName": "ListWithOffsetStepPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersOffsetStepPaginationRequest", + "camelCase": { + "unsafeName": "listUsersOffsetStepPaginationRequest", + "safeName": "listUsersOffsetStepPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_offset_step_pagination_request", + "safeName": "list_users_offset_step_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_OFFSET_STEP_PAGINATION_REQUEST", + "safeName": "LIST_USERS_OFFSET_STEP_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersOffsetStepPaginationRequest", + "safeName": "ListUsersOffsetStepPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithOffsetPaginationHasNextPage": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithOffsetPaginationHasNextPage", + "camelCase": { + "unsafeName": "listWithOffsetPaginationHasNextPage", + "safeName": "listWithOffsetPaginationHasNextPage" + }, + "snakeCase": { + "unsafeName": "list_with_offset_pagination_has_next_page", + "safeName": "list_with_offset_pagination_has_next_page" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE", + "safeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetPaginationHasNextPage", + "safeName": "ListWithOffsetPaginationHasNextPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListWithOffsetPaginationHasNextPageRequest", + "camelCase": { + "unsafeName": "listWithOffsetPaginationHasNextPageRequest", + "safeName": "listWithOffsetPaginationHasNextPageRequest" + }, + "snakeCase": { + "unsafeName": "list_with_offset_pagination_has_next_page_request", + "safeName": "list_with_offset_pagination_has_next_page_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE_REQUEST", + "safeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetPaginationHasNextPageRequest", + "safeName": "ListWithOffsetPaginationHasNextPageRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithExtendedResults": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithExtendedResults", + "camelCase": { + "unsafeName": "listWithExtendedResults", + "safeName": "listWithExtendedResults" + }, + "snakeCase": { + "unsafeName": "list_with_extended_results", + "safeName": "list_with_extended_results" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_EXTENDED_RESULTS", + "safeName": "LIST_WITH_EXTENDED_RESULTS" + }, + "pascalCase": { + "unsafeName": "ListWithExtendedResults", + "safeName": "ListWithExtendedResults" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersExtendedRequest", + "camelCase": { + "unsafeName": "listUsersExtendedRequest", + "safeName": "listUsersExtendedRequest" + }, + "snakeCase": { + "unsafeName": "list_users_extended_request", + "safeName": "list_users_extended_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_REQUEST", + "safeName": "LIST_USERS_EXTENDED_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedRequest", + "safeName": "ListUsersExtendedRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithExtendedResultsAndOptionalData": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithExtendedResultsAndOptionalData", + "camelCase": { + "unsafeName": "listWithExtendedResultsAndOptionalData", + "safeName": "listWithExtendedResultsAndOptionalData" + }, + "snakeCase": { + "unsafeName": "list_with_extended_results_and_optional_data", + "safeName": "list_with_extended_results_and_optional_data" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_EXTENDED_RESULTS_AND_OPTIONAL_DATA", + "safeName": "LIST_WITH_EXTENDED_RESULTS_AND_OPTIONAL_DATA" + }, + "pascalCase": { + "unsafeName": "ListWithExtendedResultsAndOptionalData", + "safeName": "ListWithExtendedResultsAndOptionalData" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersExtendedRequestForOptionalData", + "camelCase": { + "unsafeName": "listUsersExtendedRequestForOptionalData", + "safeName": "listUsersExtendedRequestForOptionalData" + }, + "snakeCase": { + "unsafeName": "list_users_extended_request_for_optional_data", + "safeName": "list_users_extended_request_for_optional_data" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_REQUEST_FOR_OPTIONAL_DATA", + "safeName": "LIST_USERS_EXTENDED_REQUEST_FOR_OPTIONAL_DATA" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedRequestForOptionalData", + "safeName": "ListUsersExtendedRequestForOptionalData" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listUsernames": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listUsernames", + "camelCase": { + "unsafeName": "listUsernames", + "safeName": "listUsernames" + }, + "snakeCase": { + "unsafeName": "list_usernames", + "safeName": "list_usernames" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERNAMES", + "safeName": "LIST_USERNAMES" + }, + "pascalCase": { + "unsafeName": "ListUsernames", + "safeName": "ListUsernames" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsernamesRequest", + "camelCase": { + "unsafeName": "listUsernamesRequest", + "safeName": "listUsernamesRequest" + }, + "snakeCase": { + "unsafeName": "list_usernames_request", + "safeName": "list_usernames_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERNAMES_REQUEST", + "safeName": "LIST_USERNAMES_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsernamesRequest", + "safeName": "ListUsernamesRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithGlobalConfig": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithGlobalConfig", + "camelCase": { + "unsafeName": "listWithGlobalConfig", + "safeName": "listWithGlobalConfig" + }, + "snakeCase": { + "unsafeName": "list_with_global_config", + "safeName": "list_with_global_config" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_GLOBAL_CONFIG", + "safeName": "LIST_WITH_GLOBAL_CONFIG" + }, + "pascalCase": { + "unsafeName": "ListWithGlobalConfig", + "safeName": "ListWithGlobalConfig" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListWithGlobalConfigRequest", + "camelCase": { + "unsafeName": "listWithGlobalConfigRequest", + "safeName": "listWithGlobalConfigRequest" + }, + "snakeCase": { + "unsafeName": "list_with_global_config_request", + "safeName": "list_with_global_config_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_GLOBAL_CONFIG_REQUEST", + "safeName": "LIST_WITH_GLOBAL_CONFIG_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListWithGlobalConfigRequest", + "safeName": "ListWithGlobalConfigRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/plain-text.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/plain-text.json new file mode 100644 index 00000000000..52fa3253355 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/plain-text.json @@ -0,0 +1,86 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.getText": { + "auth": null, + "declaration": { + "name": { + "originalName": "getText", + "camelCase": { + "unsafeName": "getText", + "safeName": "getText" + }, + "snakeCase": { + "unsafeName": "get_text", + "safeName": "get_text" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TEXT", + "safeName": "GET_TEXT" + }, + "pascalCase": { + "unsafeName": "GetText", + "safeName": "GetText" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/text" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/query-parameters.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/query-parameters.json new file mode 100644 index 00000000000..83e71376273 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/query-parameters.json @@ -0,0 +1,818 @@ +{ + "version": "1.0.0", + "types": { + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_user:NestedUser": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "typeReference": { + "_type": "named", + "value": "type_user:User" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUsername": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUsername", + "camelCase": { + "unsafeName": "getUsername", + "safeName": "getUsername" + }, + "snakeCase": { + "unsafeName": "get_username", + "safeName": "get_username" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USERNAME", + "safeName": "GET_USERNAME" + }, + "pascalCase": { + "unsafeName": "GetUsername", + "safeName": "GetUsername" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/user" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetUsersRequest", + "camelCase": { + "unsafeName": "getUsersRequest", + "safeName": "getUsersRequest" + }, + "snakeCase": { + "unsafeName": "get_users_request", + "safeName": "get_users_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USERS_REQUEST", + "safeName": "GET_USERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetUsersRequest", + "safeName": "GetUsersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + { + "name": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + }, + { + "name": { + "name": { + "originalName": "deadline", + "camelCase": { + "unsafeName": "deadline", + "safeName": "deadline" + }, + "snakeCase": { + "unsafeName": "deadline", + "safeName": "deadline" + }, + "screamingSnakeCase": { + "unsafeName": "DEADLINE", + "safeName": "DEADLINE" + }, + "pascalCase": { + "unsafeName": "Deadline", + "safeName": "Deadline" + } + }, + "wireValue": "deadline" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "bytes", + "camelCase": { + "unsafeName": "bytes", + "safeName": "bytes" + }, + "snakeCase": { + "unsafeName": "bytes", + "safeName": "bytes" + }, + "screamingSnakeCase": { + "unsafeName": "BYTES", + "safeName": "BYTES" + }, + "pascalCase": { + "unsafeName": "Bytes", + "safeName": "Bytes" + } + }, + "wireValue": "bytes" + }, + "typeReference": { + "_type": "primitive", + "value": "BASE_64" + } + }, + { + "name": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "typeReference": { + "_type": "named", + "value": "type_user:User" + } + }, + { + "name": { + "name": { + "originalName": "userList", + "camelCase": { + "unsafeName": "userList", + "safeName": "userList" + }, + "snakeCase": { + "unsafeName": "user_list", + "safeName": "user_list" + }, + "screamingSnakeCase": { + "unsafeName": "USER_LIST", + "safeName": "USER_LIST" + }, + "pascalCase": { + "unsafeName": "UserList", + "safeName": "UserList" + } + }, + "wireValue": "userList" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_user:User" + } + } + }, + { + "name": { + "name": { + "originalName": "optionalDeadline", + "camelCase": { + "unsafeName": "optionalDeadline", + "safeName": "optionalDeadline" + }, + "snakeCase": { + "unsafeName": "optional_deadline", + "safeName": "optional_deadline" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_DEADLINE", + "safeName": "OPTIONAL_DEADLINE" + }, + "pascalCase": { + "unsafeName": "OptionalDeadline", + "safeName": "OptionalDeadline" + } + }, + "wireValue": "optionalDeadline" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + { + "name": { + "name": { + "originalName": "keyValue", + "camelCase": { + "unsafeName": "keyValue", + "safeName": "keyValue" + }, + "snakeCase": { + "unsafeName": "key_value", + "safeName": "key_value" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE", + "safeName": "KEY_VALUE" + }, + "pascalCase": { + "unsafeName": "KeyValue", + "safeName": "KeyValue" + } + }, + "wireValue": "keyValue" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "optionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "wireValue": "optionalString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "nestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "wireValue": "nestedUser" + }, + "typeReference": { + "_type": "named", + "value": "type_user:NestedUser" + } + }, + { + "name": { + "name": { + "originalName": "optionalUser", + "camelCase": { + "unsafeName": "optionalUser", + "safeName": "optionalUser" + }, + "snakeCase": { + "unsafeName": "optional_user", + "safeName": "optional_user" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_USER", + "safeName": "OPTIONAL_USER" + }, + "pascalCase": { + "unsafeName": "OptionalUser", + "safeName": "OptionalUser" + } + }, + "wireValue": "optionalUser" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_user:User" + } + } + }, + { + "name": { + "name": { + "originalName": "excludeUser", + "camelCase": { + "unsafeName": "excludeUser", + "safeName": "excludeUser" + }, + "snakeCase": { + "unsafeName": "exclude_user", + "safeName": "exclude_user" + }, + "screamingSnakeCase": { + "unsafeName": "EXCLUDE_USER", + "safeName": "EXCLUDE_USER" + }, + "pascalCase": { + "unsafeName": "ExcludeUser", + "safeName": "ExcludeUser" + } + }, + "wireValue": "excludeUser" + }, + "typeReference": { + "_type": "named", + "value": "type_user:User" + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/reserved-keywords.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/reserved-keywords.json new file mode 100644 index 00000000000..e07d3099997 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/reserved-keywords.json @@ -0,0 +1,411 @@ +{ + "version": "1.0.0", + "types": { + "type_package:Package": { + "type": "object", + "declaration": { + "name": { + "originalName": "Package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_package:Record": { + "type": "object", + "declaration": { + "name": { + "originalName": "Record", + "camelCase": { + "unsafeName": "record", + "safeName": "record" + }, + "snakeCase": { + "unsafeName": "record", + "safeName": "record" + }, + "screamingSnakeCase": { + "unsafeName": "RECORD", + "safeName": "RECORD" + }, + "pascalCase": { + "unsafeName": "Record", + "safeName": "Record" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "3d", + "camelCase": { + "unsafeName": "3D", + "safeName": "3D" + }, + "snakeCase": { + "unsafeName": "3d", + "safeName": "3d" + }, + "screamingSnakeCase": { + "unsafeName": "3D", + "safeName": "3D" + }, + "pascalCase": { + "unsafeName": "3D", + "safeName": "3D" + } + }, + "wireValue": "3d" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_package.test": { + "auth": null, + "declaration": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "TestRequest", + "camelCase": { + "unsafeName": "testRequest", + "safeName": "testRequest" + }, + "snakeCase": { + "unsafeName": "test_request", + "safeName": "test_request" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_REQUEST", + "safeName": "TEST_REQUEST" + }, + "pascalCase": { + "unsafeName": "TestRequest", + "safeName": "TestRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "for", + "camelCase": { + "unsafeName": "for", + "safeName": "for" + }, + "snakeCase": { + "unsafeName": "for", + "safeName": "for" + }, + "screamingSnakeCase": { + "unsafeName": "FOR", + "safeName": "FOR" + }, + "pascalCase": { + "unsafeName": "For", + "safeName": "For" + } + }, + "wireValue": "for" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/response-property.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/response-property.json new file mode 100644 index 00000000000..f5513729e7e --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/response-property.json @@ -0,0 +1,1220 @@ +{ + "version": "1.0.0", + "types": { + "type_:StringResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StringResponse", + "camelCase": { + "unsafeName": "stringResponse", + "safeName": "stringResponse" + }, + "snakeCase": { + "unsafeName": "string_response", + "safeName": "string_response" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_RESPONSE", + "safeName": "STRING_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StringResponse", + "safeName": "StringResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:OptionalStringResponse": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalStringResponse", + "camelCase": { + "unsafeName": "optionalStringResponse", + "safeName": "optionalStringResponse" + }, + "snakeCase": { + "unsafeName": "optional_string_response", + "safeName": "optional_string_response" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING_RESPONSE", + "safeName": "OPTIONAL_STRING_RESPONSE" + }, + "pascalCase": { + "unsafeName": "OptionalStringResponse", + "safeName": "OptionalStringResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:StringResponse" + } + } + }, + "type_:WithMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithMetadata", + "camelCase": { + "unsafeName": "withMetadata", + "safeName": "withMetadata" + }, + "snakeCase": { + "unsafeName": "with_metadata", + "safeName": "with_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_METADATA", + "safeName": "WITH_METADATA" + }, + "pascalCase": { + "unsafeName": "WithMetadata", + "safeName": "WithMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_service:WithDocs": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithDocs", + "camelCase": { + "unsafeName": "withDocs", + "safeName": "withDocs" + }, + "snakeCase": { + "unsafeName": "with_docs", + "safeName": "with_docs" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_DOCS", + "safeName": "WITH_DOCS" + }, + "pascalCase": { + "unsafeName": "WithDocs", + "safeName": "WithDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:OptionalWithDocs": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalWithDocs", + "camelCase": { + "unsafeName": "optionalWithDocs", + "safeName": "optionalWithDocs" + }, + "snakeCase": { + "unsafeName": "optional_with_docs", + "safeName": "optional_with_docs" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_WITH_DOCS", + "safeName": "OPTIONAL_WITH_DOCS" + }, + "pascalCase": { + "unsafeName": "OptionalWithDocs", + "safeName": "OptionalWithDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_service:WithDocs" + } + } + }, + "type_service:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_service:Movie" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_service.getMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovieDocs": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovieDocs", + "camelCase": { + "unsafeName": "getMovieDocs", + "safeName": "getMovieDocs" + }, + "snakeCase": { + "unsafeName": "get_movie_docs", + "safeName": "get_movie_docs" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE_DOCS", + "safeName": "GET_MOVIE_DOCS" + }, + "pascalCase": { + "unsafeName": "GetMovieDocs", + "safeName": "GetMovieDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovieName": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovieName", + "camelCase": { + "unsafeName": "getMovieName", + "safeName": "getMovieName" + }, + "snakeCase": { + "unsafeName": "get_movie_name", + "safeName": "get_movie_name" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE_NAME", + "safeName": "GET_MOVIE_NAME" + }, + "pascalCase": { + "unsafeName": "GetMovieName", + "safeName": "GetMovieName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovieMetadata": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovieMetadata", + "camelCase": { + "unsafeName": "getMovieMetadata", + "safeName": "getMovieMetadata" + }, + "snakeCase": { + "unsafeName": "get_movie_metadata", + "safeName": "get_movie_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE_METADATA", + "safeName": "GET_MOVIE_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMovieMetadata", + "safeName": "GetMovieMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getOptionalMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOptionalMovie", + "camelCase": { + "unsafeName": "getOptionalMovie", + "safeName": "getOptionalMovie" + }, + "snakeCase": { + "unsafeName": "get_optional_movie", + "safeName": "get_optional_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_OPTIONAL_MOVIE", + "safeName": "GET_OPTIONAL_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetOptionalMovie", + "safeName": "GetOptionalMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getOptionalMovieDocs": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOptionalMovieDocs", + "camelCase": { + "unsafeName": "getOptionalMovieDocs", + "safeName": "getOptionalMovieDocs" + }, + "snakeCase": { + "unsafeName": "get_optional_movie_docs", + "safeName": "get_optional_movie_docs" + }, + "screamingSnakeCase": { + "unsafeName": "GET_OPTIONAL_MOVIE_DOCS", + "safeName": "GET_OPTIONAL_MOVIE_DOCS" + }, + "pascalCase": { + "unsafeName": "GetOptionalMovieDocs", + "safeName": "GetOptionalMovieDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getOptionalMovieName": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOptionalMovieName", + "camelCase": { + "unsafeName": "getOptionalMovieName", + "safeName": "getOptionalMovieName" + }, + "snakeCase": { + "unsafeName": "get_optional_movie_name", + "safeName": "get_optional_movie_name" + }, + "screamingSnakeCase": { + "unsafeName": "GET_OPTIONAL_MOVIE_NAME", + "safeName": "GET_OPTIONAL_MOVIE_NAME" + }, + "pascalCase": { + "unsafeName": "GetOptionalMovieName", + "safeName": "GetOptionalMovieName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-event-examples.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-event-examples.json new file mode 100644 index 00000000000..1e4ad6d85cc --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-event-examples.json @@ -0,0 +1,313 @@ +{ + "version": "1.0.0", + "types": { + "type_completions:StreamedCompletion": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamedCompletion", + "camelCase": { + "unsafeName": "streamedCompletion", + "safeName": "streamedCompletion" + }, + "snakeCase": { + "unsafeName": "streamed_completion", + "safeName": "streamed_completion" + }, + "screamingSnakeCase": { + "unsafeName": "STREAMED_COMPLETION", + "safeName": "STREAMED_COMPLETION" + }, + "pascalCase": { + "unsafeName": "StreamedCompletion", + "safeName": "StreamedCompletion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "delta", + "camelCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "snakeCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "screamingSnakeCase": { + "unsafeName": "DELTA", + "safeName": "DELTA" + }, + "pascalCase": { + "unsafeName": "Delta", + "safeName": "Delta" + } + }, + "wireValue": "delta" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tokens", + "camelCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "snakeCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "screamingSnakeCase": { + "unsafeName": "TOKENS", + "safeName": "TOKENS" + }, + "pascalCase": { + "unsafeName": "Tokens", + "safeName": "Tokens" + } + }, + "wireValue": "tokens" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_completions.stream": { + "auth": null, + "declaration": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "location": { + "method": "POST", + "path": "/stream" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StreamCompletionRequest", + "camelCase": { + "unsafeName": "streamCompletionRequest", + "safeName": "streamCompletionRequest" + }, + "snakeCase": { + "unsafeName": "stream_completion_request", + "safeName": "stream_completion_request" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_COMPLETION_REQUEST", + "safeName": "STREAM_COMPLETION_REQUEST" + }, + "pascalCase": { + "unsafeName": "StreamCompletionRequest", + "safeName": "StreamCompletionRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-events.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-events.json new file mode 100644 index 00000000000..1e4ad6d85cc --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-events.json @@ -0,0 +1,313 @@ +{ + "version": "1.0.0", + "types": { + "type_completions:StreamedCompletion": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamedCompletion", + "camelCase": { + "unsafeName": "streamedCompletion", + "safeName": "streamedCompletion" + }, + "snakeCase": { + "unsafeName": "streamed_completion", + "safeName": "streamed_completion" + }, + "screamingSnakeCase": { + "unsafeName": "STREAMED_COMPLETION", + "safeName": "STREAMED_COMPLETION" + }, + "pascalCase": { + "unsafeName": "StreamedCompletion", + "safeName": "StreamedCompletion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "delta", + "camelCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "snakeCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "screamingSnakeCase": { + "unsafeName": "DELTA", + "safeName": "DELTA" + }, + "pascalCase": { + "unsafeName": "Delta", + "safeName": "Delta" + } + }, + "wireValue": "delta" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tokens", + "camelCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "snakeCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "screamingSnakeCase": { + "unsafeName": "TOKENS", + "safeName": "TOKENS" + }, + "pascalCase": { + "unsafeName": "Tokens", + "safeName": "Tokens" + } + }, + "wireValue": "tokens" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_completions.stream": { + "auth": null, + "declaration": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "location": { + "method": "POST", + "path": "/stream" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StreamCompletionRequest", + "camelCase": { + "unsafeName": "streamCompletionRequest", + "safeName": "streamCompletionRequest" + }, + "snakeCase": { + "unsafeName": "stream_completion_request", + "safeName": "stream_completion_request" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_COMPLETION_REQUEST", + "safeName": "STREAM_COMPLETION_REQUEST" + }, + "pascalCase": { + "unsafeName": "StreamCompletionRequest", + "safeName": "StreamCompletionRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/simple-fhir.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/simple-fhir.json new file mode 100644 index 00000000000..8ccd5211884 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/simple-fhir.json @@ -0,0 +1,1134 @@ +{ + "version": "1.0.0", + "types": { + "type_:Memo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "account", + "camelCase": { + "unsafeName": "account", + "safeName": "account" + }, + "snakeCase": { + "unsafeName": "account", + "safeName": "account" + }, + "screamingSnakeCase": { + "unsafeName": "ACCOUNT", + "safeName": "ACCOUNT" + }, + "pascalCase": { + "unsafeName": "Account", + "safeName": "Account" + } + }, + "wireValue": "account" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Account" + } + } + } + ] + }, + "type_:BaseResource": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseResource", + "camelCase": { + "unsafeName": "baseResource", + "safeName": "baseResource" + }, + "snakeCase": { + "unsafeName": "base_resource", + "safeName": "base_resource" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_RESOURCE", + "safeName": "BASE_RESOURCE" + }, + "pascalCase": { + "unsafeName": "BaseResource", + "safeName": "BaseResource" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + } + ] + }, + "type_:ResourceList": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "ResourceList", + "camelCase": { + "unsafeName": "resourceList", + "safeName": "resourceList" + }, + "snakeCase": { + "unsafeName": "resource_list", + "safeName": "resource_list" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_LIST", + "safeName": "RESOURCE_LIST" + }, + "pascalCase": { + "unsafeName": "ResourceList", + "safeName": "ResourceList" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "named", + "value": "type_:Account" + }, + { + "_type": "named", + "value": "type_:Patient" + }, + { + "_type": "named", + "value": "type_:Practitioner" + }, + { + "_type": "named", + "value": "type_:Script" + } + ] + }, + "type_:Account": { + "type": "object", + "declaration": { + "name": { + "originalName": "Account", + "camelCase": { + "unsafeName": "account", + "safeName": "account" + }, + "snakeCase": { + "unsafeName": "account", + "safeName": "account" + }, + "screamingSnakeCase": { + "unsafeName": "ACCOUNT", + "safeName": "ACCOUNT" + }, + "pascalCase": { + "unsafeName": "Account", + "safeName": "Account" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Account" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "patient", + "camelCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "snakeCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "screamingSnakeCase": { + "unsafeName": "PATIENT", + "safeName": "PATIENT" + }, + "pascalCase": { + "unsafeName": "Patient", + "safeName": "Patient" + } + }, + "wireValue": "patient" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Patient" + } + } + }, + { + "name": { + "name": { + "originalName": "practitioner", + "camelCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "snakeCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "screamingSnakeCase": { + "unsafeName": "PRACTITIONER", + "safeName": "PRACTITIONER" + }, + "pascalCase": { + "unsafeName": "Practitioner", + "safeName": "Practitioner" + } + }, + "wireValue": "practitioner" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Practitioner" + } + } + } + ] + }, + "type_:Patient": { + "type": "object", + "declaration": { + "name": { + "originalName": "Patient", + "camelCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "snakeCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "screamingSnakeCase": { + "unsafeName": "PATIENT", + "safeName": "PATIENT" + }, + "pascalCase": { + "unsafeName": "Patient", + "safeName": "Patient" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Patient" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "scripts", + "camelCase": { + "unsafeName": "scripts", + "safeName": "scripts" + }, + "snakeCase": { + "unsafeName": "scripts", + "safeName": "scripts" + }, + "screamingSnakeCase": { + "unsafeName": "SCRIPTS", + "safeName": "SCRIPTS" + }, + "pascalCase": { + "unsafeName": "Scripts", + "safeName": "Scripts" + } + }, + "wireValue": "scripts" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Script" + } + } + } + ] + }, + "type_:Practitioner": { + "type": "object", + "declaration": { + "name": { + "originalName": "Practitioner", + "camelCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "snakeCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "screamingSnakeCase": { + "unsafeName": "PRACTITIONER", + "safeName": "PRACTITIONER" + }, + "pascalCase": { + "unsafeName": "Practitioner", + "safeName": "Practitioner" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Practitioner" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Script": { + "type": "object", + "declaration": { + "name": { + "originalName": "Script", + "camelCase": { + "unsafeName": "script", + "safeName": "script" + }, + "snakeCase": { + "unsafeName": "script", + "safeName": "script" + }, + "screamingSnakeCase": { + "unsafeName": "SCRIPT", + "safeName": "SCRIPT" + }, + "pascalCase": { + "unsafeName": "Script", + "safeName": "Script" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Script" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.getAccount": { + "auth": null, + "declaration": { + "name": { + "originalName": "getAccount", + "camelCase": { + "unsafeName": "getAccount", + "safeName": "getAccount" + }, + "snakeCase": { + "unsafeName": "get_account", + "safeName": "get_account" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACCOUNT", + "safeName": "GET_ACCOUNT" + }, + "pascalCase": { + "unsafeName": "GetAccount", + "safeName": "GetAccount" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/account/{account_id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "account_id", + "camelCase": { + "unsafeName": "accountID", + "safeName": "accountID" + }, + "snakeCase": { + "unsafeName": "account_id", + "safeName": "account_id" + }, + "screamingSnakeCase": { + "unsafeName": "ACCOUNT_ID", + "safeName": "ACCOUNT_ID" + }, + "pascalCase": { + "unsafeName": "AccountID", + "safeName": "AccountID" + } + }, + "wireValue": "account_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-default.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-default.json new file mode 100644 index 00000000000..f3907b4fc1c --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-default.json @@ -0,0 +1,107 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_dummy.getDummy": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDummy", + "camelCase": { + "unsafeName": "getDummy", + "safeName": "getDummy" + }, + "snakeCase": { + "unsafeName": "get_dummy", + "safeName": "get_dummy" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DUMMY", + "safeName": "GET_DUMMY" + }, + "pascalCase": { + "unsafeName": "GetDummy", + "safeName": "GetDummy" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "GET", + "path": "/dummy" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-no-default.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-no-default.json new file mode 100644 index 00000000000..f3907b4fc1c --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-no-default.json @@ -0,0 +1,107 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_dummy.getDummy": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDummy", + "camelCase": { + "unsafeName": "getDummy", + "safeName": "getDummy" + }, + "snakeCase": { + "unsafeName": "get_dummy", + "safeName": "get_dummy" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DUMMY", + "safeName": "GET_DUMMY" + }, + "pascalCase": { + "unsafeName": "GetDummy", + "safeName": "GetDummy" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "GET", + "path": "/dummy" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming-parameter.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming-parameter.json new file mode 100644 index 00000000000..0a6973cb097 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming-parameter.json @@ -0,0 +1,469 @@ +{ + "version": "1.0.0", + "types": { + "type_dummy:RegularResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RegularResponse", + "camelCase": { + "unsafeName": "regularResponse", + "safeName": "regularResponse" + }, + "snakeCase": { + "unsafeName": "regular_response", + "safeName": "regular_response" + }, + "screamingSnakeCase": { + "unsafeName": "REGULAR_RESPONSE", + "safeName": "REGULAR_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RegularResponse", + "safeName": "RegularResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_dummy:StreamResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamResponse", + "camelCase": { + "unsafeName": "streamResponse", + "safeName": "streamResponse" + }, + "snakeCase": { + "unsafeName": "stream_response", + "safeName": "stream_response" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_RESPONSE", + "safeName": "STREAM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StreamResponse", + "safeName": "StreamResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_dummy.generate": { + "auth": null, + "declaration": { + "name": { + "originalName": "generate", + "camelCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "snakeCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE", + "safeName": "GENERATE" + }, + "pascalCase": { + "unsafeName": "Generate", + "safeName": "Generate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "POST", + "path": "/generate" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GenerateRequest", + "camelCase": { + "unsafeName": "generateRequest", + "safeName": "generateRequest" + }, + "snakeCase": { + "unsafeName": "generate_request", + "safeName": "generate_request" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE_REQUEST", + "safeName": "GENERATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GenerateRequest", + "safeName": "GenerateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "num_events", + "camelCase": { + "unsafeName": "numEvents", + "safeName": "numEvents" + }, + "snakeCase": { + "unsafeName": "num_events", + "safeName": "num_events" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_EVENTS", + "safeName": "NUM_EVENTS" + }, + "pascalCase": { + "unsafeName": "NumEvents", + "safeName": "NumEvents" + } + }, + "wireValue": "num_events" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming.json new file mode 100644 index 00000000000..b55a4925f70 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming.json @@ -0,0 +1,552 @@ +{ + "version": "1.0.0", + "types": { + "type_dummy:StreamResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamResponse", + "camelCase": { + "unsafeName": "streamResponse", + "safeName": "streamResponse" + }, + "snakeCase": { + "unsafeName": "stream_response", + "safeName": "stream_response" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_RESPONSE", + "safeName": "STREAM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StreamResponse", + "safeName": "StreamResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_dummy.generate-stream": { + "auth": null, + "declaration": { + "name": { + "originalName": "generate-stream", + "camelCase": { + "unsafeName": "generateStream", + "safeName": "generateStream" + }, + "snakeCase": { + "unsafeName": "generate_stream", + "safeName": "generate_stream" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE_STREAM", + "safeName": "GENERATE_STREAM" + }, + "pascalCase": { + "unsafeName": "GenerateStream", + "safeName": "GenerateStream" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "POST", + "path": "/generate-stream" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GenerateStreamRequest", + "camelCase": { + "unsafeName": "generateStreamRequest", + "safeName": "generateStreamRequest" + }, + "snakeCase": { + "unsafeName": "generate_stream_request", + "safeName": "generate_stream_request" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE_STREAM_REQUEST", + "safeName": "GENERATE_STREAM_REQUEST" + }, + "pascalCase": { + "unsafeName": "GenerateStreamRequest", + "safeName": "GenerateStreamRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + }, + { + "name": { + "name": { + "originalName": "num_events", + "camelCase": { + "unsafeName": "numEvents", + "safeName": "numEvents" + }, + "snakeCase": { + "unsafeName": "num_events", + "safeName": "num_events" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_EVENTS", + "safeName": "NUM_EVENTS" + }, + "pascalCase": { + "unsafeName": "NumEvents", + "safeName": "NumEvents" + } + }, + "wireValue": "num_events" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dummy.generate": { + "auth": null, + "declaration": { + "name": { + "originalName": "generate", + "camelCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "snakeCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE", + "safeName": "GENERATE" + }, + "pascalCase": { + "unsafeName": "Generate", + "safeName": "Generate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "POST", + "path": "/generate" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "Generateequest", + "camelCase": { + "unsafeName": "generateequest", + "safeName": "generateequest" + }, + "snakeCase": { + "unsafeName": "generateequest", + "safeName": "generateequest" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATEEQUEST", + "safeName": "GENERATEEQUEST" + }, + "pascalCase": { + "unsafeName": "Generateequest", + "safeName": "Generateequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + }, + { + "name": { + "name": { + "originalName": "num_events", + "camelCase": { + "unsafeName": "numEvents", + "safeName": "numEvents" + }, + "snakeCase": { + "unsafeName": "num_events", + "safeName": "num_events" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_EVENTS", + "safeName": "NUM_EVENTS" + }, + "pascalCase": { + "unsafeName": "NumEvents", + "safeName": "NumEvents" + } + }, + "wireValue": "num_events" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/trace.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/trace.json new file mode 100644 index 00000000000..b19e83756bc --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/trace.json @@ -0,0 +1,45575 @@ +{ + "version": "1.0.0", + "types": { + "type_admin:Test": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "and": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "and", + "camelCase": { + "unsafeName": "and", + "safeName": "and" + }, + "snakeCase": { + "unsafeName": "and", + "safeName": "and" + }, + "screamingSnakeCase": { + "unsafeName": "AND", + "safeName": "AND" + }, + "pascalCase": { + "unsafeName": "And", + "safeName": "And" + } + }, + "wireValue": "and" + }, + "properties": null + }, + "or": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "or", + "camelCase": { + "unsafeName": "or", + "safeName": "or" + }, + "snakeCase": { + "unsafeName": "or", + "safeName": "or" + }, + "screamingSnakeCase": { + "unsafeName": "OR", + "safeName": "OR" + }, + "pascalCase": { + "unsafeName": "Or", + "safeName": "Or" + } + }, + "wireValue": "or" + }, + "properties": null + } + } + }, + "type_commons:UserId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "UserId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons:ProblemId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ProblemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons:NodeId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "NodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons:VariableType": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "VariableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integerType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "integerType", + "camelCase": { + "unsafeName": "integerType", + "safeName": "integerType" + }, + "snakeCase": { + "unsafeName": "integer_type", + "safeName": "integer_type" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER_TYPE", + "safeName": "INTEGER_TYPE" + }, + "pascalCase": { + "unsafeName": "IntegerType", + "safeName": "IntegerType" + } + }, + "wireValue": "integerType" + }, + "properties": null + }, + "doubleType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "doubleType", + "camelCase": { + "unsafeName": "doubleType", + "safeName": "doubleType" + }, + "snakeCase": { + "unsafeName": "double_type", + "safeName": "double_type" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_TYPE", + "safeName": "DOUBLE_TYPE" + }, + "pascalCase": { + "unsafeName": "DoubleType", + "safeName": "DoubleType" + } + }, + "wireValue": "doubleType" + }, + "properties": null + }, + "booleanType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "booleanType", + "camelCase": { + "unsafeName": "booleanType", + "safeName": "booleanType" + }, + "snakeCase": { + "unsafeName": "boolean_type", + "safeName": "boolean_type" + }, + "screamingSnakeCase": { + "unsafeName": "BOOLEAN_TYPE", + "safeName": "BOOLEAN_TYPE" + }, + "pascalCase": { + "unsafeName": "BooleanType", + "safeName": "BooleanType" + } + }, + "wireValue": "booleanType" + }, + "properties": null + }, + "stringType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stringType", + "camelCase": { + "unsafeName": "stringType", + "safeName": "stringType" + }, + "snakeCase": { + "unsafeName": "string_type", + "safeName": "string_type" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_TYPE", + "safeName": "STRING_TYPE" + }, + "pascalCase": { + "unsafeName": "StringType", + "safeName": "StringType" + } + }, + "wireValue": "stringType" + }, + "properties": null + }, + "charType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "charType", + "camelCase": { + "unsafeName": "charType", + "safeName": "charType" + }, + "snakeCase": { + "unsafeName": "char_type", + "safeName": "char_type" + }, + "screamingSnakeCase": { + "unsafeName": "CHAR_TYPE", + "safeName": "CHAR_TYPE" + }, + "pascalCase": { + "unsafeName": "CharType", + "safeName": "CharType" + } + }, + "wireValue": "charType" + }, + "properties": null + }, + "listType": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:ListType", + "discriminantValue": { + "name": { + "originalName": "listType", + "camelCase": { + "unsafeName": "listType", + "safeName": "listType" + }, + "snakeCase": { + "unsafeName": "list_type", + "safeName": "list_type" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_TYPE", + "safeName": "LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "ListType", + "safeName": "ListType" + } + }, + "wireValue": "listType" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "valueType", + "camelCase": { + "unsafeName": "valueType", + "safeName": "valueType" + }, + "snakeCase": { + "unsafeName": "value_type", + "safeName": "value_type" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE_TYPE", + "safeName": "VALUE_TYPE" + }, + "pascalCase": { + "unsafeName": "ValueType", + "safeName": "ValueType" + } + }, + "wireValue": "valueType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "isFixedLength", + "camelCase": { + "unsafeName": "isFixedLength", + "safeName": "isFixedLength" + }, + "snakeCase": { + "unsafeName": "is_fixed_length", + "safeName": "is_fixed_length" + }, + "screamingSnakeCase": { + "unsafeName": "IS_FIXED_LENGTH", + "safeName": "IS_FIXED_LENGTH" + }, + "pascalCase": { + "unsafeName": "IsFixedLength", + "safeName": "IsFixedLength" + } + }, + "wireValue": "isFixedLength" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + } + ] + }, + "mapType": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:MapType", + "discriminantValue": { + "name": { + "originalName": "mapType", + "camelCase": { + "unsafeName": "mapType", + "safeName": "mapType" + }, + "snakeCase": { + "unsafeName": "map_type", + "safeName": "map_type" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_TYPE", + "safeName": "MAP_TYPE" + }, + "pascalCase": { + "unsafeName": "MapType", + "safeName": "MapType" + } + }, + "wireValue": "mapType" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyType", + "camelCase": { + "unsafeName": "keyType", + "safeName": "keyType" + }, + "snakeCase": { + "unsafeName": "key_type", + "safeName": "key_type" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_TYPE", + "safeName": "KEY_TYPE" + }, + "pascalCase": { + "unsafeName": "KeyType", + "safeName": "KeyType" + } + }, + "wireValue": "keyType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "valueType", + "camelCase": { + "unsafeName": "valueType", + "safeName": "valueType" + }, + "snakeCase": { + "unsafeName": "value_type", + "safeName": "value_type" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE_TYPE", + "safeName": "VALUE_TYPE" + }, + "pascalCase": { + "unsafeName": "ValueType", + "safeName": "ValueType" + } + }, + "wireValue": "valueType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "binaryTreeType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "binaryTreeType", + "camelCase": { + "unsafeName": "binaryTreeType", + "safeName": "binaryTreeType" + }, + "snakeCase": { + "unsafeName": "binary_tree_type", + "safeName": "binary_tree_type" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_TYPE", + "safeName": "BINARY_TREE_TYPE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeType", + "safeName": "BinaryTreeType" + } + }, + "wireValue": "binaryTreeType" + }, + "properties": null + }, + "singlyLinkedListType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "singlyLinkedListType", + "camelCase": { + "unsafeName": "singlyLinkedListType", + "safeName": "singlyLinkedListType" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_type", + "safeName": "singly_linked_list_type" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_TYPE", + "safeName": "SINGLY_LINKED_LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListType", + "safeName": "SinglyLinkedListType" + } + }, + "wireValue": "singlyLinkedListType" + }, + "properties": null + }, + "doublyLinkedListType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "doublyLinkedListType", + "camelCase": { + "unsafeName": "doublyLinkedListType", + "safeName": "doublyLinkedListType" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_type", + "safeName": "doubly_linked_list_type" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_TYPE", + "safeName": "DOUBLY_LINKED_LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListType", + "safeName": "DoublyLinkedListType" + } + }, + "wireValue": "doublyLinkedListType" + }, + "properties": null + } + } + }, + "type_commons:ListType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListType", + "camelCase": { + "unsafeName": "listType", + "safeName": "listType" + }, + "snakeCase": { + "unsafeName": "list_type", + "safeName": "list_type" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_TYPE", + "safeName": "LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "ListType", + "safeName": "ListType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "valueType", + "camelCase": { + "unsafeName": "valueType", + "safeName": "valueType" + }, + "snakeCase": { + "unsafeName": "value_type", + "safeName": "value_type" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE_TYPE", + "safeName": "VALUE_TYPE" + }, + "pascalCase": { + "unsafeName": "ValueType", + "safeName": "ValueType" + } + }, + "wireValue": "valueType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "isFixedLength", + "camelCase": { + "unsafeName": "isFixedLength", + "safeName": "isFixedLength" + }, + "snakeCase": { + "unsafeName": "is_fixed_length", + "safeName": "is_fixed_length" + }, + "screamingSnakeCase": { + "unsafeName": "IS_FIXED_LENGTH", + "safeName": "IS_FIXED_LENGTH" + }, + "pascalCase": { + "unsafeName": "IsFixedLength", + "safeName": "IsFixedLength" + } + }, + "wireValue": "isFixedLength" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + } + ] + }, + "type_commons:MapType": { + "type": "object", + "declaration": { + "name": { + "originalName": "MapType", + "camelCase": { + "unsafeName": "mapType", + "safeName": "mapType" + }, + "snakeCase": { + "unsafeName": "map_type", + "safeName": "map_type" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_TYPE", + "safeName": "MAP_TYPE" + }, + "pascalCase": { + "unsafeName": "MapType", + "safeName": "MapType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyType", + "camelCase": { + "unsafeName": "keyType", + "safeName": "keyType" + }, + "snakeCase": { + "unsafeName": "key_type", + "safeName": "key_type" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_TYPE", + "safeName": "KEY_TYPE" + }, + "pascalCase": { + "unsafeName": "KeyType", + "safeName": "KeyType" + } + }, + "wireValue": "keyType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "valueType", + "camelCase": { + "unsafeName": "valueType", + "safeName": "valueType" + }, + "snakeCase": { + "unsafeName": "value_type", + "safeName": "value_type" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE_TYPE", + "safeName": "VALUE_TYPE" + }, + "pascalCase": { + "unsafeName": "ValueType", + "safeName": "ValueType" + } + }, + "wireValue": "valueType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_commons:VariableValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "VariableValue", + "camelCase": { + "unsafeName": "variableValue", + "safeName": "variableValue" + }, + "snakeCase": { + "unsafeName": "variable_value", + "safeName": "variable_value" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_VALUE", + "safeName": "VARIABLE_VALUE" + }, + "pascalCase": { + "unsafeName": "VariableValue", + "safeName": "VariableValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integerValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integerValue", + "camelCase": { + "unsafeName": "integerValue", + "safeName": "integerValue" + }, + "snakeCase": { + "unsafeName": "integer_value", + "safeName": "integer_value" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER_VALUE", + "safeName": "INTEGER_VALUE" + }, + "pascalCase": { + "unsafeName": "IntegerValue", + "safeName": "IntegerValue" + } + }, + "wireValue": "integerValue" + }, + "properties": null + }, + "booleanValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "booleanValue", + "camelCase": { + "unsafeName": "booleanValue", + "safeName": "booleanValue" + }, + "snakeCase": { + "unsafeName": "boolean_value", + "safeName": "boolean_value" + }, + "screamingSnakeCase": { + "unsafeName": "BOOLEAN_VALUE", + "safeName": "BOOLEAN_VALUE" + }, + "pascalCase": { + "unsafeName": "BooleanValue", + "safeName": "BooleanValue" + } + }, + "wireValue": "booleanValue" + }, + "properties": null + }, + "doubleValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + }, + "discriminantValue": { + "name": { + "originalName": "doubleValue", + "camelCase": { + "unsafeName": "doubleValue", + "safeName": "doubleValue" + }, + "snakeCase": { + "unsafeName": "double_value", + "safeName": "double_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_VALUE", + "safeName": "DOUBLE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoubleValue", + "safeName": "DoubleValue" + } + }, + "wireValue": "doubleValue" + }, + "properties": null + }, + "stringValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "stringValue", + "camelCase": { + "unsafeName": "stringValue", + "safeName": "stringValue" + }, + "snakeCase": { + "unsafeName": "string_value", + "safeName": "string_value" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_VALUE", + "safeName": "STRING_VALUE" + }, + "pascalCase": { + "unsafeName": "StringValue", + "safeName": "StringValue" + } + }, + "wireValue": "stringValue" + }, + "properties": null + }, + "charValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "charValue", + "camelCase": { + "unsafeName": "charValue", + "safeName": "charValue" + }, + "snakeCase": { + "unsafeName": "char_value", + "safeName": "char_value" + }, + "screamingSnakeCase": { + "unsafeName": "CHAR_VALUE", + "safeName": "CHAR_VALUE" + }, + "pascalCase": { + "unsafeName": "CharValue", + "safeName": "CharValue" + } + }, + "wireValue": "charValue" + }, + "properties": null + }, + "mapValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:MapValue", + "discriminantValue": { + "name": { + "originalName": "mapValue", + "camelCase": { + "unsafeName": "mapValue", + "safeName": "mapValue" + }, + "snakeCase": { + "unsafeName": "map_value", + "safeName": "map_value" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_VALUE", + "safeName": "MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "MapValue", + "safeName": "MapValue" + } + }, + "wireValue": "mapValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyValuePairs", + "camelCase": { + "unsafeName": "keyValuePairs", + "safeName": "keyValuePairs" + }, + "snakeCase": { + "unsafeName": "key_value_pairs", + "safeName": "key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIRS", + "safeName": "KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "KeyValuePairs", + "safeName": "KeyValuePairs" + } + }, + "wireValue": "keyValuePairs" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:KeyValuePair" + } + } + } + ] + }, + "listValue": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "listValue", + "camelCase": { + "unsafeName": "listValue", + "safeName": "listValue" + }, + "snakeCase": { + "unsafeName": "list_value", + "safeName": "list_value" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_VALUE", + "safeName": "LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "ListValue", + "safeName": "ListValue" + } + }, + "wireValue": "listValue" + }, + "properties": null + }, + "binaryTreeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:BinaryTreeValue", + "discriminantValue": { + "name": { + "originalName": "binaryTreeValue", + "camelCase": { + "unsafeName": "binaryTreeValue", + "safeName": "binaryTreeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_value", + "safeName": "binary_tree_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_VALUE", + "safeName": "BINARY_TREE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeValue", + "safeName": "BinaryTreeValue" + } + }, + "wireValue": "binaryTreeValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "root", + "camelCase": { + "unsafeName": "root", + "safeName": "root" + }, + "snakeCase": { + "unsafeName": "root", + "safeName": "root" + }, + "screamingSnakeCase": { + "unsafeName": "ROOT", + "safeName": "ROOT" + }, + "pascalCase": { + "unsafeName": "Root", + "safeName": "Root" + } + }, + "wireValue": "root" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:BinaryTreeNodeValue" + } + } + } + ] + }, + "singlyLinkedListValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:SinglyLinkedListValue", + "discriminantValue": { + "name": { + "originalName": "singlyLinkedListValue", + "camelCase": { + "unsafeName": "singlyLinkedListValue", + "safeName": "singlyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_value", + "safeName": "singly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_VALUE", + "safeName": "SINGLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListValue", + "safeName": "SinglyLinkedListValue" + } + }, + "wireValue": "singlyLinkedListValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "head", + "camelCase": { + "unsafeName": "head", + "safeName": "head" + }, + "snakeCase": { + "unsafeName": "head", + "safeName": "head" + }, + "screamingSnakeCase": { + "unsafeName": "HEAD", + "safeName": "HEAD" + }, + "pascalCase": { + "unsafeName": "Head", + "safeName": "Head" + } + }, + "wireValue": "head" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:SinglyLinkedListNodeValue" + } + } + } + ] + }, + "doublyLinkedListValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:DoublyLinkedListValue", + "discriminantValue": { + "name": { + "originalName": "doublyLinkedListValue", + "camelCase": { + "unsafeName": "doublyLinkedListValue", + "safeName": "doublyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_value", + "safeName": "doubly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_VALUE", + "safeName": "DOUBLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListValue", + "safeName": "DoublyLinkedListValue" + } + }, + "wireValue": "doublyLinkedListValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "head", + "camelCase": { + "unsafeName": "head", + "safeName": "head" + }, + "snakeCase": { + "unsafeName": "head", + "safeName": "head" + }, + "screamingSnakeCase": { + "unsafeName": "HEAD", + "safeName": "HEAD" + }, + "pascalCase": { + "unsafeName": "Head", + "safeName": "Head" + } + }, + "wireValue": "head" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:DoublyLinkedListNodeValue" + } + } + } + ] + }, + "nullValue": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "nullValue", + "camelCase": { + "unsafeName": "nullValue", + "safeName": "nullValue" + }, + "snakeCase": { + "unsafeName": "null_value", + "safeName": "null_value" + }, + "screamingSnakeCase": { + "unsafeName": "NULL_VALUE", + "safeName": "NULL_VALUE" + }, + "pascalCase": { + "unsafeName": "NullValue", + "safeName": "NullValue" + } + }, + "wireValue": "nullValue" + }, + "properties": null + } + } + }, + "type_commons:DebugVariableValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "DebugVariableValue", + "camelCase": { + "unsafeName": "debugVariableValue", + "safeName": "debugVariableValue" + }, + "snakeCase": { + "unsafeName": "debug_variable_value", + "safeName": "debug_variable_value" + }, + "screamingSnakeCase": { + "unsafeName": "DEBUG_VARIABLE_VALUE", + "safeName": "DEBUG_VARIABLE_VALUE" + }, + "pascalCase": { + "unsafeName": "DebugVariableValue", + "safeName": "DebugVariableValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integerValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integerValue", + "camelCase": { + "unsafeName": "integerValue", + "safeName": "integerValue" + }, + "snakeCase": { + "unsafeName": "integer_value", + "safeName": "integer_value" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER_VALUE", + "safeName": "INTEGER_VALUE" + }, + "pascalCase": { + "unsafeName": "IntegerValue", + "safeName": "IntegerValue" + } + }, + "wireValue": "integerValue" + }, + "properties": null + }, + "booleanValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "booleanValue", + "camelCase": { + "unsafeName": "booleanValue", + "safeName": "booleanValue" + }, + "snakeCase": { + "unsafeName": "boolean_value", + "safeName": "boolean_value" + }, + "screamingSnakeCase": { + "unsafeName": "BOOLEAN_VALUE", + "safeName": "BOOLEAN_VALUE" + }, + "pascalCase": { + "unsafeName": "BooleanValue", + "safeName": "BooleanValue" + } + }, + "wireValue": "booleanValue" + }, + "properties": null + }, + "doubleValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + }, + "discriminantValue": { + "name": { + "originalName": "doubleValue", + "camelCase": { + "unsafeName": "doubleValue", + "safeName": "doubleValue" + }, + "snakeCase": { + "unsafeName": "double_value", + "safeName": "double_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_VALUE", + "safeName": "DOUBLE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoubleValue", + "safeName": "DoubleValue" + } + }, + "wireValue": "doubleValue" + }, + "properties": null + }, + "stringValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "stringValue", + "camelCase": { + "unsafeName": "stringValue", + "safeName": "stringValue" + }, + "snakeCase": { + "unsafeName": "string_value", + "safeName": "string_value" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_VALUE", + "safeName": "STRING_VALUE" + }, + "pascalCase": { + "unsafeName": "StringValue", + "safeName": "StringValue" + } + }, + "wireValue": "stringValue" + }, + "properties": null + }, + "charValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "charValue", + "camelCase": { + "unsafeName": "charValue", + "safeName": "charValue" + }, + "snakeCase": { + "unsafeName": "char_value", + "safeName": "char_value" + }, + "screamingSnakeCase": { + "unsafeName": "CHAR_VALUE", + "safeName": "CHAR_VALUE" + }, + "pascalCase": { + "unsafeName": "CharValue", + "safeName": "CharValue" + } + }, + "wireValue": "charValue" + }, + "properties": null + }, + "mapValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:DebugMapValue", + "discriminantValue": { + "name": { + "originalName": "mapValue", + "camelCase": { + "unsafeName": "mapValue", + "safeName": "mapValue" + }, + "snakeCase": { + "unsafeName": "map_value", + "safeName": "map_value" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_VALUE", + "safeName": "MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "MapValue", + "safeName": "MapValue" + } + }, + "wireValue": "mapValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyValuePairs", + "camelCase": { + "unsafeName": "keyValuePairs", + "safeName": "keyValuePairs" + }, + "snakeCase": { + "unsafeName": "key_value_pairs", + "safeName": "key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIRS", + "safeName": "KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "KeyValuePairs", + "safeName": "KeyValuePairs" + } + }, + "wireValue": "keyValuePairs" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:DebugKeyValuePairs" + } + } + } + ] + }, + "listValue": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "listValue", + "camelCase": { + "unsafeName": "listValue", + "safeName": "listValue" + }, + "snakeCase": { + "unsafeName": "list_value", + "safeName": "list_value" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_VALUE", + "safeName": "LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "ListValue", + "safeName": "ListValue" + } + }, + "wireValue": "listValue" + }, + "properties": null + }, + "binaryTreeNodeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:BinaryTreeNodeAndTreeValue", + "discriminantValue": { + "name": { + "originalName": "binaryTreeNodeValue", + "camelCase": { + "unsafeName": "binaryTreeNodeValue", + "safeName": "binaryTreeNodeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_node_value", + "safeName": "binary_tree_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_NODE_VALUE", + "safeName": "BINARY_TREE_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeNodeValue", + "safeName": "BinaryTreeNodeValue" + } + }, + "wireValue": "binaryTreeNodeValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullTree", + "camelCase": { + "unsafeName": "fullTree", + "safeName": "fullTree" + }, + "snakeCase": { + "unsafeName": "full_tree", + "safeName": "full_tree" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_TREE", + "safeName": "FULL_TREE" + }, + "pascalCase": { + "unsafeName": "FullTree", + "safeName": "FullTree" + } + }, + "wireValue": "fullTree" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:BinaryTreeValue" + } + } + ] + }, + "singlyLinkedListNodeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:SinglyLinkedListNodeAndListValue", + "discriminantValue": { + "name": { + "originalName": "singlyLinkedListNodeValue", + "camelCase": { + "unsafeName": "singlyLinkedListNodeValue", + "safeName": "singlyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_node_value", + "safeName": "singly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_NODE_VALUE", + "safeName": "SINGLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListNodeValue", + "safeName": "SinglyLinkedListNodeValue" + } + }, + "wireValue": "singlyLinkedListNodeValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullList", + "camelCase": { + "unsafeName": "fullList", + "safeName": "fullList" + }, + "snakeCase": { + "unsafeName": "full_list", + "safeName": "full_list" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_LIST", + "safeName": "FULL_LIST" + }, + "pascalCase": { + "unsafeName": "FullList", + "safeName": "FullList" + } + }, + "wireValue": "fullList" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:SinglyLinkedListValue" + } + } + ] + }, + "doublyLinkedListNodeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:DoublyLinkedListNodeAndListValue", + "discriminantValue": { + "name": { + "originalName": "doublyLinkedListNodeValue", + "camelCase": { + "unsafeName": "doublyLinkedListNodeValue", + "safeName": "doublyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_node_value", + "safeName": "doubly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_NODE_VALUE", + "safeName": "DOUBLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListNodeValue", + "safeName": "DoublyLinkedListNodeValue" + } + }, + "wireValue": "doublyLinkedListNodeValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullList", + "camelCase": { + "unsafeName": "fullList", + "safeName": "fullList" + }, + "snakeCase": { + "unsafeName": "full_list", + "safeName": "full_list" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_LIST", + "safeName": "FULL_LIST" + }, + "pascalCase": { + "unsafeName": "FullList", + "safeName": "FullList" + } + }, + "wireValue": "fullList" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:DoublyLinkedListValue" + } + } + ] + }, + "undefinedValue": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "undefinedValue", + "camelCase": { + "unsafeName": "undefinedValue", + "safeName": "undefinedValue" + }, + "snakeCase": { + "unsafeName": "undefined_value", + "safeName": "undefined_value" + }, + "screamingSnakeCase": { + "unsafeName": "UNDEFINED_VALUE", + "safeName": "UNDEFINED_VALUE" + }, + "pascalCase": { + "unsafeName": "UndefinedValue", + "safeName": "UndefinedValue" + } + }, + "wireValue": "undefinedValue" + }, + "properties": null + }, + "nullValue": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "nullValue", + "camelCase": { + "unsafeName": "nullValue", + "safeName": "nullValue" + }, + "snakeCase": { + "unsafeName": "null_value", + "safeName": "null_value" + }, + "screamingSnakeCase": { + "unsafeName": "NULL_VALUE", + "safeName": "NULL_VALUE" + }, + "pascalCase": { + "unsafeName": "NullValue", + "safeName": "NullValue" + } + }, + "wireValue": "nullValue" + }, + "properties": null + }, + "genericValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:GenericValue", + "discriminantValue": { + "name": { + "originalName": "genericValue", + "camelCase": { + "unsafeName": "genericValue", + "safeName": "genericValue" + }, + "snakeCase": { + "unsafeName": "generic_value", + "safeName": "generic_value" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC_VALUE", + "safeName": "GENERIC_VALUE" + }, + "pascalCase": { + "unsafeName": "GenericValue", + "safeName": "GenericValue" + } + }, + "wireValue": "genericValue" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "stringifiedType", + "camelCase": { + "unsafeName": "stringifiedType", + "safeName": "stringifiedType" + }, + "snakeCase": { + "unsafeName": "stringified_type", + "safeName": "stringified_type" + }, + "screamingSnakeCase": { + "unsafeName": "STRINGIFIED_TYPE", + "safeName": "STRINGIFIED_TYPE" + }, + "pascalCase": { + "unsafeName": "StringifiedType", + "safeName": "StringifiedType" + } + }, + "wireValue": "stringifiedType" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "stringifiedValue", + "camelCase": { + "unsafeName": "stringifiedValue", + "safeName": "stringifiedValue" + }, + "snakeCase": { + "unsafeName": "stringified_value", + "safeName": "stringified_value" + }, + "screamingSnakeCase": { + "unsafeName": "STRINGIFIED_VALUE", + "safeName": "STRINGIFIED_VALUE" + }, + "pascalCase": { + "unsafeName": "StringifiedValue", + "safeName": "StringifiedValue" + } + }, + "wireValue": "stringifiedValue" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_commons:GenericValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "GenericValue", + "camelCase": { + "unsafeName": "genericValue", + "safeName": "genericValue" + }, + "snakeCase": { + "unsafeName": "generic_value", + "safeName": "generic_value" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC_VALUE", + "safeName": "GENERIC_VALUE" + }, + "pascalCase": { + "unsafeName": "GenericValue", + "safeName": "GenericValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "stringifiedType", + "camelCase": { + "unsafeName": "stringifiedType", + "safeName": "stringifiedType" + }, + "snakeCase": { + "unsafeName": "stringified_type", + "safeName": "stringified_type" + }, + "screamingSnakeCase": { + "unsafeName": "STRINGIFIED_TYPE", + "safeName": "STRINGIFIED_TYPE" + }, + "pascalCase": { + "unsafeName": "StringifiedType", + "safeName": "StringifiedType" + } + }, + "wireValue": "stringifiedType" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "stringifiedValue", + "camelCase": { + "unsafeName": "stringifiedValue", + "safeName": "stringifiedValue" + }, + "snakeCase": { + "unsafeName": "stringified_value", + "safeName": "stringified_value" + }, + "screamingSnakeCase": { + "unsafeName": "STRINGIFIED_VALUE", + "safeName": "STRINGIFIED_VALUE" + }, + "pascalCase": { + "unsafeName": "StringifiedValue", + "safeName": "StringifiedValue" + } + }, + "wireValue": "stringifiedValue" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_commons:MapValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "MapValue", + "camelCase": { + "unsafeName": "mapValue", + "safeName": "mapValue" + }, + "snakeCase": { + "unsafeName": "map_value", + "safeName": "map_value" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_VALUE", + "safeName": "MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "MapValue", + "safeName": "MapValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyValuePairs", + "camelCase": { + "unsafeName": "keyValuePairs", + "safeName": "keyValuePairs" + }, + "snakeCase": { + "unsafeName": "key_value_pairs", + "safeName": "key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIRS", + "safeName": "KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "KeyValuePairs", + "safeName": "KeyValuePairs" + } + }, + "wireValue": "keyValuePairs" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:KeyValuePair" + } + } + } + ] + }, + "type_commons:KeyValuePair": { + "type": "object", + "declaration": { + "name": { + "originalName": "KeyValuePair", + "camelCase": { + "unsafeName": "keyValuePair", + "safeName": "keyValuePair" + }, + "snakeCase": { + "unsafeName": "key_value_pair", + "safeName": "key_value_pair" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIR", + "safeName": "KEY_VALUE_PAIR" + }, + "pascalCase": { + "unsafeName": "KeyValuePair", + "safeName": "KeyValuePair" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "key", + "camelCase": { + "unsafeName": "key", + "safeName": "key" + }, + "snakeCase": { + "unsafeName": "key", + "safeName": "key" + }, + "screamingSnakeCase": { + "unsafeName": "KEY", + "safeName": "KEY" + }, + "pascalCase": { + "unsafeName": "Key", + "safeName": "Key" + } + }, + "wireValue": "key" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + ] + }, + "type_commons:BinaryTreeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "BinaryTreeValue", + "camelCase": { + "unsafeName": "binaryTreeValue", + "safeName": "binaryTreeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_value", + "safeName": "binary_tree_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_VALUE", + "safeName": "BINARY_TREE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeValue", + "safeName": "BinaryTreeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "root", + "camelCase": { + "unsafeName": "root", + "safeName": "root" + }, + "snakeCase": { + "unsafeName": "root", + "safeName": "root" + }, + "screamingSnakeCase": { + "unsafeName": "ROOT", + "safeName": "ROOT" + }, + "pascalCase": { + "unsafeName": "Root", + "safeName": "Root" + } + }, + "wireValue": "root" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:BinaryTreeNodeValue" + } + } + } + ] + }, + "type_commons:BinaryTreeNodeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "BinaryTreeNodeValue", + "camelCase": { + "unsafeName": "binaryTreeNodeValue", + "safeName": "binaryTreeNodeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_node_value", + "safeName": "binary_tree_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_NODE_VALUE", + "safeName": "BINARY_TREE_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeNodeValue", + "safeName": "BinaryTreeNodeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "val", + "camelCase": { + "unsafeName": "val", + "safeName": "val" + }, + "snakeCase": { + "unsafeName": "val", + "safeName": "val" + }, + "screamingSnakeCase": { + "unsafeName": "VAL", + "safeName": "VAL" + }, + "pascalCase": { + "unsafeName": "Val", + "safeName": "Val" + } + }, + "wireValue": "val" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "right", + "camelCase": { + "unsafeName": "right", + "safeName": "right" + }, + "snakeCase": { + "unsafeName": "right", + "safeName": "right" + }, + "screamingSnakeCase": { + "unsafeName": "RIGHT", + "safeName": "RIGHT" + }, + "pascalCase": { + "unsafeName": "Right", + "safeName": "Right" + } + }, + "wireValue": "right" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "left", + "camelCase": { + "unsafeName": "left", + "safeName": "left" + }, + "snakeCase": { + "unsafeName": "left", + "safeName": "left" + }, + "screamingSnakeCase": { + "unsafeName": "LEFT", + "safeName": "LEFT" + }, + "pascalCase": { + "unsafeName": "Left", + "safeName": "Left" + } + }, + "wireValue": "left" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + } + ] + }, + "type_commons:BinaryTreeNodeAndTreeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "BinaryTreeNodeAndTreeValue", + "camelCase": { + "unsafeName": "binaryTreeNodeAndTreeValue", + "safeName": "binaryTreeNodeAndTreeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_node_and_tree_value", + "safeName": "binary_tree_node_and_tree_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_NODE_AND_TREE_VALUE", + "safeName": "BINARY_TREE_NODE_AND_TREE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeNodeAndTreeValue", + "safeName": "BinaryTreeNodeAndTreeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullTree", + "camelCase": { + "unsafeName": "fullTree", + "safeName": "fullTree" + }, + "snakeCase": { + "unsafeName": "full_tree", + "safeName": "full_tree" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_TREE", + "safeName": "FULL_TREE" + }, + "pascalCase": { + "unsafeName": "FullTree", + "safeName": "FullTree" + } + }, + "wireValue": "fullTree" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:BinaryTreeValue" + } + } + ] + }, + "type_commons:SinglyLinkedListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "SinglyLinkedListValue", + "camelCase": { + "unsafeName": "singlyLinkedListValue", + "safeName": "singlyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_value", + "safeName": "singly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_VALUE", + "safeName": "SINGLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListValue", + "safeName": "SinglyLinkedListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "head", + "camelCase": { + "unsafeName": "head", + "safeName": "head" + }, + "snakeCase": { + "unsafeName": "head", + "safeName": "head" + }, + "screamingSnakeCase": { + "unsafeName": "HEAD", + "safeName": "HEAD" + }, + "pascalCase": { + "unsafeName": "Head", + "safeName": "Head" + } + }, + "wireValue": "head" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:SinglyLinkedListNodeValue" + } + } + } + ] + }, + "type_commons:SinglyLinkedListNodeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "SinglyLinkedListNodeValue", + "camelCase": { + "unsafeName": "singlyLinkedListNodeValue", + "safeName": "singlyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_node_value", + "safeName": "singly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_NODE_VALUE", + "safeName": "SINGLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListNodeValue", + "safeName": "SinglyLinkedListNodeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "val", + "camelCase": { + "unsafeName": "val", + "safeName": "val" + }, + "snakeCase": { + "unsafeName": "val", + "safeName": "val" + }, + "screamingSnakeCase": { + "unsafeName": "VAL", + "safeName": "VAL" + }, + "pascalCase": { + "unsafeName": "Val", + "safeName": "Val" + } + }, + "wireValue": "val" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + } + ] + }, + "type_commons:SinglyLinkedListNodeAndListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "SinglyLinkedListNodeAndListValue", + "camelCase": { + "unsafeName": "singlyLinkedListNodeAndListValue", + "safeName": "singlyLinkedListNodeAndListValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_node_and_list_value", + "safeName": "singly_linked_list_node_and_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_NODE_AND_LIST_VALUE", + "safeName": "SINGLY_LINKED_LIST_NODE_AND_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListNodeAndListValue", + "safeName": "SinglyLinkedListNodeAndListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullList", + "camelCase": { + "unsafeName": "fullList", + "safeName": "fullList" + }, + "snakeCase": { + "unsafeName": "full_list", + "safeName": "full_list" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_LIST", + "safeName": "FULL_LIST" + }, + "pascalCase": { + "unsafeName": "FullList", + "safeName": "FullList" + } + }, + "wireValue": "fullList" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:SinglyLinkedListValue" + } + } + ] + }, + "type_commons:DoublyLinkedListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoublyLinkedListValue", + "camelCase": { + "unsafeName": "doublyLinkedListValue", + "safeName": "doublyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_value", + "safeName": "doubly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_VALUE", + "safeName": "DOUBLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListValue", + "safeName": "DoublyLinkedListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "head", + "camelCase": { + "unsafeName": "head", + "safeName": "head" + }, + "snakeCase": { + "unsafeName": "head", + "safeName": "head" + }, + "screamingSnakeCase": { + "unsafeName": "HEAD", + "safeName": "HEAD" + }, + "pascalCase": { + "unsafeName": "Head", + "safeName": "Head" + } + }, + "wireValue": "head" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:DoublyLinkedListNodeValue" + } + } + } + ] + }, + "type_commons:DoublyLinkedListNodeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoublyLinkedListNodeValue", + "camelCase": { + "unsafeName": "doublyLinkedListNodeValue", + "safeName": "doublyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_node_value", + "safeName": "doubly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_NODE_VALUE", + "safeName": "DOUBLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListNodeValue", + "safeName": "DoublyLinkedListNodeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "val", + "camelCase": { + "unsafeName": "val", + "safeName": "val" + }, + "snakeCase": { + "unsafeName": "val", + "safeName": "val" + }, + "screamingSnakeCase": { + "unsafeName": "VAL", + "safeName": "VAL" + }, + "pascalCase": { + "unsafeName": "Val", + "safeName": "Val" + } + }, + "wireValue": "val" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "prev", + "camelCase": { + "unsafeName": "prev", + "safeName": "prev" + }, + "snakeCase": { + "unsafeName": "prev", + "safeName": "prev" + }, + "screamingSnakeCase": { + "unsafeName": "PREV", + "safeName": "PREV" + }, + "pascalCase": { + "unsafeName": "Prev", + "safeName": "Prev" + } + }, + "wireValue": "prev" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + } + ] + }, + "type_commons:DoublyLinkedListNodeAndListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoublyLinkedListNodeAndListValue", + "camelCase": { + "unsafeName": "doublyLinkedListNodeAndListValue", + "safeName": "doublyLinkedListNodeAndListValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_node_and_list_value", + "safeName": "doubly_linked_list_node_and_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_NODE_AND_LIST_VALUE", + "safeName": "DOUBLY_LINKED_LIST_NODE_AND_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListNodeAndListValue", + "safeName": "DoublyLinkedListNodeAndListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullList", + "camelCase": { + "unsafeName": "fullList", + "safeName": "fullList" + }, + "snakeCase": { + "unsafeName": "full_list", + "safeName": "full_list" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_LIST", + "safeName": "FULL_LIST" + }, + "pascalCase": { + "unsafeName": "FullList", + "safeName": "FullList" + } + }, + "wireValue": "fullList" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:DoublyLinkedListValue" + } + } + ] + }, + "type_commons:DebugMapValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DebugMapValue", + "camelCase": { + "unsafeName": "debugMapValue", + "safeName": "debugMapValue" + }, + "snakeCase": { + "unsafeName": "debug_map_value", + "safeName": "debug_map_value" + }, + "screamingSnakeCase": { + "unsafeName": "DEBUG_MAP_VALUE", + "safeName": "DEBUG_MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "DebugMapValue", + "safeName": "DebugMapValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyValuePairs", + "camelCase": { + "unsafeName": "keyValuePairs", + "safeName": "keyValuePairs" + }, + "snakeCase": { + "unsafeName": "key_value_pairs", + "safeName": "key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIRS", + "safeName": "KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "KeyValuePairs", + "safeName": "KeyValuePairs" + } + }, + "wireValue": "keyValuePairs" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:DebugKeyValuePairs" + } + } + } + ] + }, + "type_commons:DebugKeyValuePairs": { + "type": "object", + "declaration": { + "name": { + "originalName": "DebugKeyValuePairs", + "camelCase": { + "unsafeName": "debugKeyValuePairs", + "safeName": "debugKeyValuePairs" + }, + "snakeCase": { + "unsafeName": "debug_key_value_pairs", + "safeName": "debug_key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "DEBUG_KEY_VALUE_PAIRS", + "safeName": "DEBUG_KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "DebugKeyValuePairs", + "safeName": "DebugKeyValuePairs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "key", + "camelCase": { + "unsafeName": "key", + "safeName": "key" + }, + "snakeCase": { + "unsafeName": "key", + "safeName": "key" + }, + "screamingSnakeCase": { + "unsafeName": "KEY", + "safeName": "KEY" + }, + "pascalCase": { + "unsafeName": "Key", + "safeName": "Key" + } + }, + "wireValue": "key" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + ] + }, + "type_commons:TestCase": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + }, + "wireValue": "params" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + } + ] + }, + "type_commons:TestCaseWithExpectedResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseWithExpectedResult", + "camelCase": { + "unsafeName": "testCaseWithExpectedResult", + "safeName": "testCaseWithExpectedResult" + }, + "snakeCase": { + "unsafeName": "test_case_with_expected_result", + "safeName": "test_case_with_expected_result" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_WITH_EXPECTED_RESULT", + "safeName": "TEST_CASE_WITH_EXPECTED_RESULT" + }, + "pascalCase": { + "unsafeName": "TestCaseWithExpectedResult", + "safeName": "TestCaseWithExpectedResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "wireValue": "testCase" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:TestCase" + } + }, + { + "name": { + "name": { + "originalName": "expectedResult", + "camelCase": { + "unsafeName": "expectedResult", + "safeName": "expectedResult" + }, + "snakeCase": { + "unsafeName": "expected_result", + "safeName": "expected_result" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_RESULT", + "safeName": "EXPECTED_RESULT" + }, + "pascalCase": { + "unsafeName": "ExpectedResult", + "safeName": "ExpectedResult" + } + }, + "wireValue": "expectedResult" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + ] + }, + "type_commons:FileInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "FileInfo", + "camelCase": { + "unsafeName": "fileInfo", + "safeName": "fileInfo" + }, + "snakeCase": { + "unsafeName": "file_info", + "safeName": "file_info" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO", + "safeName": "FILE_INFO" + }, + "pascalCase": { + "unsafeName": "FileInfo", + "safeName": "FileInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_commons:Language": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "JAVA", + "camelCase": { + "unsafeName": "java", + "safeName": "java" + }, + "snakeCase": { + "unsafeName": "java", + "safeName": "java" + }, + "screamingSnakeCase": { + "unsafeName": "JAVA", + "safeName": "JAVA" + }, + "pascalCase": { + "unsafeName": "Java", + "safeName": "Java" + } + }, + "wireValue": "JAVA" + }, + { + "name": { + "originalName": "JAVASCRIPT", + "camelCase": { + "unsafeName": "javascript", + "safeName": "javascript" + }, + "snakeCase": { + "unsafeName": "javascript", + "safeName": "javascript" + }, + "screamingSnakeCase": { + "unsafeName": "JAVASCRIPT", + "safeName": "JAVASCRIPT" + }, + "pascalCase": { + "unsafeName": "Javascript", + "safeName": "Javascript" + } + }, + "wireValue": "JAVASCRIPT" + }, + { + "name": { + "originalName": "PYTHON", + "camelCase": { + "unsafeName": "python", + "safeName": "python" + }, + "snakeCase": { + "unsafeName": "python", + "safeName": "python" + }, + "screamingSnakeCase": { + "unsafeName": "PYTHON", + "safeName": "PYTHON" + }, + "pascalCase": { + "unsafeName": "Python", + "safeName": "Python" + } + }, + "wireValue": "PYTHON" + } + ] + }, + "type_lang-server:LangServerRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "LangServerRequest", + "camelCase": { + "unsafeName": "langServerRequest", + "safeName": "langServerRequest" + }, + "snakeCase": { + "unsafeName": "lang_server_request", + "safeName": "lang_server_request" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER_REQUEST", + "safeName": "LANG_SERVER_REQUEST" + }, + "pascalCase": { + "unsafeName": "LangServerRequest", + "safeName": "LangServerRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + ], + "packagePath": [], + "file": { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "wireValue": "request" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + }, + "type_lang-server:LangServerResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "LangServerResponse", + "camelCase": { + "unsafeName": "langServerResponse", + "safeName": "langServerResponse" + }, + "snakeCase": { + "unsafeName": "lang_server_response", + "safeName": "lang_server_response" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER_RESPONSE", + "safeName": "LANG_SERVER_RESPONSE" + }, + "pascalCase": { + "unsafeName": "LangServerResponse", + "safeName": "LangServerResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + ], + "packagePath": [], + "file": { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "wireValue": "response" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + }, + "type_migration:MigrationStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "MigrationStatus", + "camelCase": { + "unsafeName": "migrationStatus", + "safeName": "migrationStatus" + }, + "snakeCase": { + "unsafeName": "migration_status", + "safeName": "migration_status" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION_STATUS", + "safeName": "MIGRATION_STATUS" + }, + "pascalCase": { + "unsafeName": "MigrationStatus", + "safeName": "MigrationStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "RUNNING", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "RUNNING" + }, + { + "name": { + "originalName": "FAILED", + "camelCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "snakeCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "screamingSnakeCase": { + "unsafeName": "FAILED", + "safeName": "FAILED" + }, + "pascalCase": { + "unsafeName": "Failed", + "safeName": "Failed" + } + }, + "wireValue": "FAILED" + }, + { + "name": { + "originalName": "FINISHED", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "FINISHED" + } + ] + }, + "type_migration:Migration": { + "type": "object", + "declaration": { + "name": { + "originalName": "Migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_migration:MigrationStatus" + } + } + ] + }, + "type_playlist:PlaylistId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "PlaylistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_playlist:Playlist": { + "type": "object", + "declaration": { + "name": { + "originalName": "Playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problems", + "camelCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "snakeCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEMS", + "safeName": "PROBLEMS" + }, + "pascalCase": { + "unsafeName": "Problems", + "safeName": "Problems" + } + }, + "wireValue": "problems" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + }, + { + "name": { + "name": { + "originalName": "playlist_id", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlist_id" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + }, + { + "name": { + "name": { + "originalName": "owner-id", + "camelCase": { + "unsafeName": "ownerID", + "safeName": "ownerID" + }, + "snakeCase": { + "unsafeName": "owner_id", + "safeName": "owner_id" + }, + "screamingSnakeCase": { + "unsafeName": "OWNER_ID", + "safeName": "OWNER_ID" + }, + "pascalCase": { + "unsafeName": "OwnerID", + "safeName": "OwnerID" + } + }, + "wireValue": "owner-id" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:UserId" + } + } + ] + }, + "type_playlist:PlaylistCreateRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "PlaylistCreateRequest", + "camelCase": { + "unsafeName": "playlistCreateRequest", + "safeName": "playlistCreateRequest" + }, + "snakeCase": { + "unsafeName": "playlist_create_request", + "safeName": "playlist_create_request" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_CREATE_REQUEST", + "safeName": "PLAYLIST_CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "PlaylistCreateRequest", + "safeName": "PlaylistCreateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problems", + "camelCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "snakeCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEMS", + "safeName": "PROBLEMS" + }, + "pascalCase": { + "unsafeName": "Problems", + "safeName": "Problems" + } + }, + "wireValue": "problems" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + } + ] + }, + "type_playlist:UpdatePlaylistRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "UpdatePlaylistRequest", + "camelCase": { + "unsafeName": "updatePlaylistRequest", + "safeName": "updatePlaylistRequest" + }, + "snakeCase": { + "unsafeName": "update_playlist_request", + "safeName": "update_playlist_request" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PLAYLIST_REQUEST", + "safeName": "UPDATE_PLAYLIST_REQUEST" + }, + "pascalCase": { + "unsafeName": "UpdatePlaylistRequest", + "safeName": "UpdatePlaylistRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problems", + "camelCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "snakeCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEMS", + "safeName": "PROBLEMS" + }, + "pascalCase": { + "unsafeName": "Problems", + "safeName": "Problems" + } + }, + "wireValue": "problems" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + } + ] + }, + "type_playlist:PlaylistIdNotFoundErrorBody": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "PlaylistIdNotFoundErrorBody", + "camelCase": { + "unsafeName": "playlistIDNotFoundErrorBody", + "safeName": "playlistIDNotFoundErrorBody" + }, + "snakeCase": { + "unsafeName": "playlist_id_not_found_error_body", + "safeName": "playlist_id_not_found_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID_NOT_FOUND_ERROR_BODY", + "safeName": "PLAYLIST_ID_NOT_FOUND_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "PlaylistIDNotFoundErrorBody", + "safeName": "PlaylistIDNotFoundErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "playlistId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + }, + "discriminantValue": { + "name": { + "originalName": "playlistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlistId" + }, + "properties": null + } + } + }, + "type_playlist:ReservedKeywordEnum": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ReservedKeywordEnum", + "camelCase": { + "unsafeName": "reservedKeywordEnum", + "safeName": "reservedKeywordEnum" + }, + "snakeCase": { + "unsafeName": "reserved_keyword_enum", + "safeName": "reserved_keyword_enum" + }, + "screamingSnakeCase": { + "unsafeName": "RESERVED_KEYWORD_ENUM", + "safeName": "RESERVED_KEYWORD_ENUM" + }, + "pascalCase": { + "unsafeName": "ReservedKeywordEnum", + "safeName": "ReservedKeywordEnum" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "is", + "camelCase": { + "unsafeName": "is", + "safeName": "is" + }, + "snakeCase": { + "unsafeName": "is", + "safeName": "is" + }, + "screamingSnakeCase": { + "unsafeName": "IS", + "safeName": "IS" + }, + "pascalCase": { + "unsafeName": "Is", + "safeName": "Is" + } + }, + "wireValue": "is" + }, + { + "name": { + "originalName": "as", + "camelCase": { + "unsafeName": "as", + "safeName": "as" + }, + "snakeCase": { + "unsafeName": "as", + "safeName": "as" + }, + "screamingSnakeCase": { + "unsafeName": "AS", + "safeName": "AS" + }, + "pascalCase": { + "unsafeName": "As", + "safeName": "As" + } + }, + "wireValue": "as" + } + ] + }, + "type_problem:ProblemInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemInfo", + "camelCase": { + "unsafeName": "problemInfo", + "safeName": "problemInfo" + }, + "snakeCase": { + "unsafeName": "problem_info", + "safeName": "problem_info" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO", + "safeName": "PROBLEM_INFO" + }, + "pascalCase": { + "unsafeName": "ProblemInfo", + "safeName": "ProblemInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_problem:ProblemFiles" + } + } + }, + { + "name": { + "name": { + "originalName": "inputParams", + "camelCase": { + "unsafeName": "inputParams", + "safeName": "inputParams" + }, + "snakeCase": { + "unsafeName": "input_params", + "safeName": "input_params" + }, + "screamingSnakeCase": { + "unsafeName": "INPUT_PARAMS", + "safeName": "INPUT_PARAMS" + }, + "pascalCase": { + "unsafeName": "InputParams", + "safeName": "InputParams" + } + }, + "wireValue": "inputParams" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:VariableTypeAndName" + } + } + }, + { + "name": { + "name": { + "originalName": "outputType", + "camelCase": { + "unsafeName": "outputType", + "safeName": "outputType" + }, + "snakeCase": { + "unsafeName": "output_type", + "safeName": "output_type" + }, + "screamingSnakeCase": { + "unsafeName": "OUTPUT_TYPE", + "safeName": "OUTPUT_TYPE" + }, + "pascalCase": { + "unsafeName": "OutputType", + "safeName": "OutputType" + } + }, + "wireValue": "outputType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCaseWithExpectedResult" + } + } + }, + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "supportsCustomTestCases", + "camelCase": { + "unsafeName": "supportsCustomTestCases", + "safeName": "supportsCustomTestCases" + }, + "snakeCase": { + "unsafeName": "supports_custom_test_cases", + "safeName": "supports_custom_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTS_CUSTOM_TEST_CASES", + "safeName": "SUPPORTS_CUSTOM_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "SupportsCustomTestCases", + "safeName": "SupportsCustomTestCases" + } + }, + "wireValue": "supportsCustomTestCases" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_problem:ProblemDescription": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "boards", + "camelCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "snakeCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "screamingSnakeCase": { + "unsafeName": "BOARDS", + "safeName": "BOARDS" + }, + "pascalCase": { + "unsafeName": "Boards", + "safeName": "Boards" + } + }, + "wireValue": "boards" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:ProblemDescriptionBoard" + } + } + } + ] + }, + "type_problem:ProblemDescriptionBoard": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ProblemDescriptionBoard", + "camelCase": { + "unsafeName": "problemDescriptionBoard", + "safeName": "problemDescriptionBoard" + }, + "snakeCase": { + "unsafeName": "problem_description_board", + "safeName": "problem_description_board" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION_BOARD", + "safeName": "PROBLEM_DESCRIPTION_BOARD" + }, + "pascalCase": { + "unsafeName": "ProblemDescriptionBoard", + "safeName": "ProblemDescriptionBoard" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": null + }, + "variable": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + }, + "discriminantValue": { + "name": { + "originalName": "variable", + "camelCase": { + "unsafeName": "variable", + "safeName": "variable" + }, + "snakeCase": { + "unsafeName": "variable", + "safeName": "variable" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE", + "safeName": "VARIABLE" + }, + "pascalCase": { + "unsafeName": "Variable", + "safeName": "Variable" + } + }, + "wireValue": "variable" + }, + "properties": null + }, + "testCaseId": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "properties": null + } + } + }, + "type_problem:ProblemFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemFiles", + "camelCase": { + "unsafeName": "problemFiles", + "safeName": "problemFiles" + }, + "snakeCase": { + "unsafeName": "problem_files", + "safeName": "problem_files" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_FILES", + "safeName": "PROBLEM_FILES" + }, + "pascalCase": { + "unsafeName": "ProblemFiles", + "safeName": "ProblemFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "solutionFile", + "camelCase": { + "unsafeName": "solutionFile", + "safeName": "solutionFile" + }, + "snakeCase": { + "unsafeName": "solution_file", + "safeName": "solution_file" + }, + "screamingSnakeCase": { + "unsafeName": "SOLUTION_FILE", + "safeName": "SOLUTION_FILE" + }, + "pascalCase": { + "unsafeName": "SolutionFile", + "safeName": "SolutionFile" + } + }, + "wireValue": "solutionFile" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:FileInfo" + } + }, + { + "name": { + "name": { + "originalName": "readOnlyFiles", + "camelCase": { + "unsafeName": "readOnlyFiles", + "safeName": "readOnlyFiles" + }, + "snakeCase": { + "unsafeName": "read_only_files", + "safeName": "read_only_files" + }, + "screamingSnakeCase": { + "unsafeName": "READ_ONLY_FILES", + "safeName": "READ_ONLY_FILES" + }, + "pascalCase": { + "unsafeName": "ReadOnlyFiles", + "safeName": "ReadOnlyFiles" + } + }, + "wireValue": "readOnlyFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:FileInfo" + } + } + } + ] + }, + "type_problem:VariableTypeAndName": { + "type": "object", + "declaration": { + "name": { + "originalName": "VariableTypeAndName", + "camelCase": { + "unsafeName": "variableTypeAndName", + "safeName": "variableTypeAndName" + }, + "snakeCase": { + "unsafeName": "variable_type_and_name", + "safeName": "variable_type_and_name" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE_AND_NAME", + "safeName": "VARIABLE_TYPE_AND_NAME" + }, + "pascalCase": { + "unsafeName": "VariableTypeAndName", + "safeName": "VariableTypeAndName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "variableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "wireValue": "variableType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_problem:CreateProblemRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateProblemRequest", + "camelCase": { + "unsafeName": "createProblemRequest", + "safeName": "createProblemRequest" + }, + "snakeCase": { + "unsafeName": "create_problem_request", + "safeName": "create_problem_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_REQUEST", + "safeName": "CREATE_PROBLEM_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateProblemRequest", + "safeName": "CreateProblemRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_problem:ProblemFiles" + } + } + }, + { + "name": { + "name": { + "originalName": "inputParams", + "camelCase": { + "unsafeName": "inputParams", + "safeName": "inputParams" + }, + "snakeCase": { + "unsafeName": "input_params", + "safeName": "input_params" + }, + "screamingSnakeCase": { + "unsafeName": "INPUT_PARAMS", + "safeName": "INPUT_PARAMS" + }, + "pascalCase": { + "unsafeName": "InputParams", + "safeName": "InputParams" + } + }, + "wireValue": "inputParams" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:VariableTypeAndName" + } + } + }, + { + "name": { + "name": { + "originalName": "outputType", + "camelCase": { + "unsafeName": "outputType", + "safeName": "outputType" + }, + "snakeCase": { + "unsafeName": "output_type", + "safeName": "output_type" + }, + "screamingSnakeCase": { + "unsafeName": "OUTPUT_TYPE", + "safeName": "OUTPUT_TYPE" + }, + "pascalCase": { + "unsafeName": "OutputType", + "safeName": "OutputType" + } + }, + "wireValue": "outputType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCaseWithExpectedResult" + } + } + }, + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_problem:CreateProblemResponse": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CreateProblemResponse", + "camelCase": { + "unsafeName": "createProblemResponse", + "safeName": "createProblemResponse" + }, + "snakeCase": { + "unsafeName": "create_problem_response", + "safeName": "create_problem_response" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_RESPONSE", + "safeName": "CREATE_PROBLEM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "CreateProblemResponse", + "safeName": "CreateProblemResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "success": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + }, + "discriminantValue": { + "name": { + "originalName": "success", + "camelCase": { + "unsafeName": "success", + "safeName": "success" + }, + "snakeCase": { + "unsafeName": "success", + "safeName": "success" + }, + "screamingSnakeCase": { + "unsafeName": "SUCCESS", + "safeName": "SUCCESS" + }, + "pascalCase": { + "unsafeName": "Success", + "safeName": "Success" + } + }, + "wireValue": "success" + }, + "properties": null + }, + "error": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_problem:CreateProblemError" + }, + "discriminantValue": { + "name": { + "originalName": "error", + "camelCase": { + "unsafeName": "error", + "safeName": "error" + }, + "snakeCase": { + "unsafeName": "error", + "safeName": "error" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR", + "safeName": "ERROR" + }, + "pascalCase": { + "unsafeName": "Error", + "safeName": "Error" + } + }, + "wireValue": "error" + }, + "properties": null + } + } + }, + "type_problem:UpdateProblemResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UpdateProblemResponse", + "camelCase": { + "unsafeName": "updateProblemResponse", + "safeName": "updateProblemResponse" + }, + "snakeCase": { + "unsafeName": "update_problem_response", + "safeName": "update_problem_response" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PROBLEM_RESPONSE", + "safeName": "UPDATE_PROBLEM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UpdateProblemResponse", + "safeName": "UpdateProblemResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_problem:CreateProblemError": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CreateProblemError", + "camelCase": { + "unsafeName": "createProblemError", + "safeName": "createProblemError" + }, + "snakeCase": { + "unsafeName": "create_problem_error", + "safeName": "create_problem_error" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_ERROR", + "safeName": "CREATE_PROBLEM_ERROR" + }, + "pascalCase": { + "unsafeName": "CreateProblemError", + "safeName": "CreateProblemError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "errorType", + "camelCase": { + "unsafeName": "errorType", + "safeName": "errorType" + }, + "snakeCase": { + "unsafeName": "error_type", + "safeName": "error_type" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR_TYPE", + "safeName": "ERROR_TYPE" + }, + "pascalCase": { + "unsafeName": "ErrorType", + "safeName": "ErrorType" + } + }, + "wireValue": "_type" + }, + "types": { + "generic": { + "type": "samePropertiesAsObject", + "typeId": "type_problem:GenericCreateProblemError", + "discriminantValue": { + "name": { + "originalName": "generic", + "camelCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "snakeCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC", + "safeName": "GENERIC" + }, + "pascalCase": { + "unsafeName": "Generic", + "safeName": "Generic" + } + }, + "wireValue": "generic" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "stacktrace", + "camelCase": { + "unsafeName": "stacktrace", + "safeName": "stacktrace" + }, + "snakeCase": { + "unsafeName": "stacktrace", + "safeName": "stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "STACKTRACE", + "safeName": "STACKTRACE" + }, + "pascalCase": { + "unsafeName": "Stacktrace", + "safeName": "Stacktrace" + } + }, + "wireValue": "stacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_problem:GenericCreateProblemError": { + "type": "object", + "declaration": { + "name": { + "originalName": "GenericCreateProblemError", + "camelCase": { + "unsafeName": "genericCreateProblemError", + "safeName": "genericCreateProblemError" + }, + "snakeCase": { + "unsafeName": "generic_create_problem_error", + "safeName": "generic_create_problem_error" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC_CREATE_PROBLEM_ERROR", + "safeName": "GENERIC_CREATE_PROBLEM_ERROR" + }, + "pascalCase": { + "unsafeName": "GenericCreateProblemError", + "safeName": "GenericCreateProblemError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "stacktrace", + "camelCase": { + "unsafeName": "stacktrace", + "safeName": "stacktrace" + }, + "snakeCase": { + "unsafeName": "stacktrace", + "safeName": "stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "STACKTRACE", + "safeName": "STACKTRACE" + }, + "pascalCase": { + "unsafeName": "Stacktrace", + "safeName": "Stacktrace" + } + }, + "wireValue": "stacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_problem:GetDefaultStarterFilesResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetDefaultStarterFilesResponse", + "camelCase": { + "unsafeName": "getDefaultStarterFilesResponse", + "safeName": "getDefaultStarterFilesResponse" + }, + "snakeCase": { + "unsafeName": "get_default_starter_files_response", + "safeName": "get_default_starter_files_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DEFAULT_STARTER_FILES_RESPONSE", + "safeName": "GET_DEFAULT_STARTER_FILES_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetDefaultStarterFilesResponse", + "safeName": "GetDefaultStarterFilesResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_problem:ProblemFiles" + } + } + } + ] + }, + "type_submission:SubmissionId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SubmissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + "type_submission:ShareId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ShareId", + "camelCase": { + "unsafeName": "shareID", + "safeName": "shareID" + }, + "snakeCase": { + "unsafeName": "share_id", + "safeName": "share_id" + }, + "screamingSnakeCase": { + "unsafeName": "SHARE_ID", + "safeName": "SHARE_ID" + }, + "pascalCase": { + "unsafeName": "ShareID", + "safeName": "ShareID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_submission:SubmissionRequest": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionRequest", + "camelCase": { + "unsafeName": "submissionRequest", + "safeName": "submissionRequest" + }, + "snakeCase": { + "unsafeName": "submission_request", + "safeName": "submission_request" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_REQUEST", + "safeName": "SUBMISSION_REQUEST" + }, + "pascalCase": { + "unsafeName": "SubmissionRequest", + "safeName": "SubmissionRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "initializeProblemRequest": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:InitializeProblemRequest", + "discriminantValue": { + "name": { + "originalName": "initializeProblemRequest", + "camelCase": { + "unsafeName": "initializeProblemRequest", + "safeName": "initializeProblemRequest" + }, + "snakeCase": { + "unsafeName": "initialize_problem_request", + "safeName": "initialize_problem_request" + }, + "screamingSnakeCase": { + "unsafeName": "INITIALIZE_PROBLEM_REQUEST", + "safeName": "INITIALIZE_PROBLEM_REQUEST" + }, + "pascalCase": { + "unsafeName": "InitializeProblemRequest", + "safeName": "InitializeProblemRequest" + } + }, + "wireValue": "initializeProblemRequest" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "initializeWorkspaceRequest": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "initializeWorkspaceRequest", + "camelCase": { + "unsafeName": "initializeWorkspaceRequest", + "safeName": "initializeWorkspaceRequest" + }, + "snakeCase": { + "unsafeName": "initialize_workspace_request", + "safeName": "initialize_workspace_request" + }, + "screamingSnakeCase": { + "unsafeName": "INITIALIZE_WORKSPACE_REQUEST", + "safeName": "INITIALIZE_WORKSPACE_REQUEST" + }, + "pascalCase": { + "unsafeName": "InitializeWorkspaceRequest", + "safeName": "InitializeWorkspaceRequest" + } + }, + "wireValue": "initializeWorkspaceRequest" + }, + "properties": null + }, + "submitV2": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:SubmitRequestV2", + "discriminantValue": { + "name": { + "originalName": "submitV2", + "camelCase": { + "unsafeName": "submitV2", + "safeName": "submitV2" + }, + "snakeCase": { + "unsafeName": "submit_v2", + "safeName": "submit_v2" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMIT_V2", + "safeName": "SUBMIT_V2" + }, + "pascalCase": { + "unsafeName": "SubmitV2", + "safeName": "SubmitV2" + } + }, + "wireValue": "submitV2" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionFiles", + "camelCase": { + "unsafeName": "submissionFiles", + "safeName": "submissionFiles" + }, + "snakeCase": { + "unsafeName": "submission_files", + "safeName": "submission_files" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILES", + "safeName": "SUBMISSION_FILES" + }, + "pascalCase": { + "unsafeName": "SubmissionFiles", + "safeName": "SubmissionFiles" + } + }, + "wireValue": "submissionFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:SubmissionFileInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "workspaceSubmit": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceSubmitRequest", + "discriminantValue": { + "name": { + "originalName": "workspaceSubmit", + "camelCase": { + "unsafeName": "workspaceSubmit", + "safeName": "workspaceSubmit" + }, + "snakeCase": { + "unsafeName": "workspace_submit", + "safeName": "workspace_submit" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMIT", + "safeName": "WORKSPACE_SUBMIT" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmit", + "safeName": "WorkspaceSubmit" + } + }, + "wireValue": "workspaceSubmit" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionFiles", + "camelCase": { + "unsafeName": "submissionFiles", + "safeName": "submissionFiles" + }, + "snakeCase": { + "unsafeName": "submission_files", + "safeName": "submission_files" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILES", + "safeName": "SUBMISSION_FILES" + }, + "pascalCase": { + "unsafeName": "SubmissionFiles", + "safeName": "SubmissionFiles" + } + }, + "wireValue": "submissionFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:SubmissionFileInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "stop": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:StopRequest", + "discriminantValue": { + "name": { + "originalName": "stop", + "camelCase": { + "unsafeName": "stop", + "safeName": "stop" + }, + "snakeCase": { + "unsafeName": "stop", + "safeName": "stop" + }, + "screamingSnakeCase": { + "unsafeName": "STOP", + "safeName": "STOP" + }, + "pascalCase": { + "unsafeName": "Stop", + "safeName": "Stop" + } + }, + "wireValue": "stop" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + } + } + }, + "type_submission:InitializeProblemRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "InitializeProblemRequest", + "camelCase": { + "unsafeName": "initializeProblemRequest", + "safeName": "initializeProblemRequest" + }, + "snakeCase": { + "unsafeName": "initialize_problem_request", + "safeName": "initialize_problem_request" + }, + "screamingSnakeCase": { + "unsafeName": "INITIALIZE_PROBLEM_REQUEST", + "safeName": "INITIALIZE_PROBLEM_REQUEST" + }, + "pascalCase": { + "unsafeName": "InitializeProblemRequest", + "safeName": "InitializeProblemRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "type_submission:SubmitRequestV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubmitRequestV2", + "camelCase": { + "unsafeName": "submitRequestV2", + "safeName": "submitRequestV2" + }, + "snakeCase": { + "unsafeName": "submit_request_v2", + "safeName": "submit_request_v2" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMIT_REQUEST_V2", + "safeName": "SUBMIT_REQUEST_V2" + }, + "pascalCase": { + "unsafeName": "SubmitRequestV2", + "safeName": "SubmitRequestV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionFiles", + "camelCase": { + "unsafeName": "submissionFiles", + "safeName": "submissionFiles" + }, + "snakeCase": { + "unsafeName": "submission_files", + "safeName": "submission_files" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILES", + "safeName": "SUBMISSION_FILES" + }, + "pascalCase": { + "unsafeName": "SubmissionFiles", + "safeName": "SubmissionFiles" + } + }, + "wireValue": "submissionFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:SubmissionFileInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:WorkspaceSubmitRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmitRequest", + "camelCase": { + "unsafeName": "workspaceSubmitRequest", + "safeName": "workspaceSubmitRequest" + }, + "snakeCase": { + "unsafeName": "workspace_submit_request", + "safeName": "workspace_submit_request" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMIT_REQUEST", + "safeName": "WORKSPACE_SUBMIT_REQUEST" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmitRequest", + "safeName": "WorkspaceSubmitRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionFiles", + "camelCase": { + "unsafeName": "submissionFiles", + "safeName": "submissionFiles" + }, + "snakeCase": { + "unsafeName": "submission_files", + "safeName": "submission_files" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILES", + "safeName": "SUBMISSION_FILES" + }, + "pascalCase": { + "unsafeName": "SubmissionFiles", + "safeName": "SubmissionFiles" + } + }, + "wireValue": "submissionFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:SubmissionFileInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:SubmissionFileInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubmissionFileInfo", + "camelCase": { + "unsafeName": "submissionFileInfo", + "safeName": "submissionFileInfo" + }, + "snakeCase": { + "unsafeName": "submission_file_info", + "safeName": "submission_file_info" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILE_INFO", + "safeName": "SUBMISSION_FILE_INFO" + }, + "pascalCase": { + "unsafeName": "SubmissionFileInfo", + "safeName": "SubmissionFileInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:SubmissionTypeEnum": { + "type": "enum", + "declaration": { + "name": { + "originalName": "SubmissionTypeEnum", + "camelCase": { + "unsafeName": "submissionTypeEnum", + "safeName": "submissionTypeEnum" + }, + "snakeCase": { + "unsafeName": "submission_type_enum", + "safeName": "submission_type_enum" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_TYPE_ENUM", + "safeName": "SUBMISSION_TYPE_ENUM" + }, + "pascalCase": { + "unsafeName": "SubmissionTypeEnum", + "safeName": "SubmissionTypeEnum" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "TEST", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "wireValue": "TEST" + } + ] + }, + "type_submission:StopRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "StopRequest", + "camelCase": { + "unsafeName": "stopRequest", + "safeName": "stopRequest" + }, + "snakeCase": { + "unsafeName": "stop_request", + "safeName": "stop_request" + }, + "screamingSnakeCase": { + "unsafeName": "STOP_REQUEST", + "safeName": "STOP_REQUEST" + }, + "pascalCase": { + "unsafeName": "StopRequest", + "safeName": "StopRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:SubmissionResponse": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionResponse", + "camelCase": { + "unsafeName": "submissionResponse", + "safeName": "submissionResponse" + }, + "snakeCase": { + "unsafeName": "submission_response", + "safeName": "submission_response" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_RESPONSE", + "safeName": "SUBMISSION_RESPONSE" + }, + "pascalCase": { + "unsafeName": "SubmissionResponse", + "safeName": "SubmissionResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "serverInitialized": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "serverInitialized", + "camelCase": { + "unsafeName": "serverInitialized", + "safeName": "serverInitialized" + }, + "snakeCase": { + "unsafeName": "server_initialized", + "safeName": "server_initialized" + }, + "screamingSnakeCase": { + "unsafeName": "SERVER_INITIALIZED", + "safeName": "SERVER_INITIALIZED" + }, + "pascalCase": { + "unsafeName": "ServerInitialized", + "safeName": "ServerInitialized" + } + }, + "wireValue": "serverInitialized" + }, + "properties": null + }, + "problemInitialized": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + }, + "discriminantValue": { + "name": { + "originalName": "problemInitialized", + "camelCase": { + "unsafeName": "problemInitialized", + "safeName": "problemInitialized" + }, + "snakeCase": { + "unsafeName": "problem_initialized", + "safeName": "problem_initialized" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INITIALIZED", + "safeName": "PROBLEM_INITIALIZED" + }, + "pascalCase": { + "unsafeName": "ProblemInitialized", + "safeName": "ProblemInitialized" + } + }, + "wireValue": "problemInitialized" + }, + "properties": null + }, + "workspaceInitialized": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "workspaceInitialized", + "camelCase": { + "unsafeName": "workspaceInitialized", + "safeName": "workspaceInitialized" + }, + "snakeCase": { + "unsafeName": "workspace_initialized", + "safeName": "workspace_initialized" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_INITIALIZED", + "safeName": "WORKSPACE_INITIALIZED" + }, + "pascalCase": { + "unsafeName": "WorkspaceInitialized", + "safeName": "WorkspaceInitialized" + } + }, + "wireValue": "workspaceInitialized" + }, + "properties": null + }, + "serverErrored": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "serverErrored", + "camelCase": { + "unsafeName": "serverErrored", + "safeName": "serverErrored" + }, + "snakeCase": { + "unsafeName": "server_errored", + "safeName": "server_errored" + }, + "screamingSnakeCase": { + "unsafeName": "SERVER_ERRORED", + "safeName": "SERVER_ERRORED" + }, + "pascalCase": { + "unsafeName": "ServerErrored", + "safeName": "ServerErrored" + } + }, + "wireValue": "serverErrored" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "codeExecutionUpdate": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:CodeExecutionUpdate" + }, + "discriminantValue": { + "name": { + "originalName": "codeExecutionUpdate", + "camelCase": { + "unsafeName": "codeExecutionUpdate", + "safeName": "codeExecutionUpdate" + }, + "snakeCase": { + "unsafeName": "code_execution_update", + "safeName": "code_execution_update" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_EXECUTION_UPDATE", + "safeName": "CODE_EXECUTION_UPDATE" + }, + "pascalCase": { + "unsafeName": "CodeExecutionUpdate", + "safeName": "CodeExecutionUpdate" + } + }, + "wireValue": "codeExecutionUpdate" + }, + "properties": null + }, + "terminated": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TerminatedResponse", + "discriminantValue": { + "name": { + "originalName": "terminated", + "camelCase": { + "unsafeName": "terminated", + "safeName": "terminated" + }, + "snakeCase": { + "unsafeName": "terminated", + "safeName": "terminated" + }, + "screamingSnakeCase": { + "unsafeName": "TERMINATED", + "safeName": "TERMINATED" + }, + "pascalCase": { + "unsafeName": "Terminated", + "safeName": "Terminated" + } + }, + "wireValue": "terminated" + }, + "properties": [] + } + } + }, + "type_submission:CodeExecutionUpdate": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CodeExecutionUpdate", + "camelCase": { + "unsafeName": "codeExecutionUpdate", + "safeName": "codeExecutionUpdate" + }, + "snakeCase": { + "unsafeName": "code_execution_update", + "safeName": "code_execution_update" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_EXECUTION_UPDATE", + "safeName": "CODE_EXECUTION_UPDATE" + }, + "pascalCase": { + "unsafeName": "CodeExecutionUpdate", + "safeName": "CodeExecutionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "buildingExecutor": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:BuildingExecutorResponse", + "discriminantValue": { + "name": { + "originalName": "buildingExecutor", + "camelCase": { + "unsafeName": "buildingExecutor", + "safeName": "buildingExecutor" + }, + "snakeCase": { + "unsafeName": "building_executor", + "safeName": "building_executor" + }, + "screamingSnakeCase": { + "unsafeName": "BUILDING_EXECUTOR", + "safeName": "BUILDING_EXECUTOR" + }, + "pascalCase": { + "unsafeName": "BuildingExecutor", + "safeName": "BuildingExecutor" + } + }, + "wireValue": "buildingExecutor" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExecutionSessionStatus" + } + } + ] + }, + "running": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RunningResponse", + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "state", + "camelCase": { + "unsafeName": "state", + "safeName": "state" + }, + "snakeCase": { + "unsafeName": "state", + "safeName": "state" + }, + "screamingSnakeCase": { + "unsafeName": "STATE", + "safeName": "STATE" + }, + "pascalCase": { + "unsafeName": "State", + "safeName": "State" + } + }, + "wireValue": "state" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + } + } + ] + }, + "errored": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ErroredResponse", + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "errorInfo", + "camelCase": { + "unsafeName": "errorInfo", + "safeName": "errorInfo" + }, + "snakeCase": { + "unsafeName": "error_info", + "safeName": "error_info" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR_INFO", + "safeName": "ERROR_INFO" + }, + "pascalCase": { + "unsafeName": "ErrorInfo", + "safeName": "ErrorInfo" + } + }, + "wireValue": "errorInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + } + } + ] + }, + "stopped": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:StoppedResponse", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "graded": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:GradedResponse", + "discriminantValue": { + "name": { + "originalName": "graded", + "camelCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "snakeCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED", + "safeName": "GRADED" + }, + "pascalCase": { + "unsafeName": "Graded", + "safeName": "Graded" + } + }, + "wireValue": "graded" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCases", + "camelCase": { + "unsafeName": "testCases", + "safeName": "testCases" + }, + "snakeCase": { + "unsafeName": "test_cases", + "safeName": "test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASES", + "safeName": "TEST_CASES" + }, + "pascalCase": { + "unsafeName": "TestCases", + "safeName": "TestCases" + } + }, + "wireValue": "testCases" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + } + } + ] + }, + "gradedV2": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:GradedResponseV2", + "discriminantValue": { + "name": { + "originalName": "gradedV2", + "camelCase": { + "unsafeName": "gradedV2", + "safeName": "gradedV2" + }, + "snakeCase": { + "unsafeName": "graded_v2", + "safeName": "graded_v2" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_V2", + "safeName": "GRADED_V2" + }, + "pascalCase": { + "unsafeName": "GradedV2", + "safeName": "GradedV2" + } + }, + "wireValue": "gradedV2" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCases", + "camelCase": { + "unsafeName": "testCases", + "safeName": "testCases" + }, + "snakeCase": { + "unsafeName": "test_cases", + "safeName": "test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASES", + "safeName": "TEST_CASES" + }, + "pascalCase": { + "unsafeName": "TestCases", + "safeName": "TestCases" + } + }, + "wireValue": "testCases" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + }, + "value": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + } + } + } + ] + }, + "workspaceRan": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRanResponse", + "discriminantValue": { + "name": { + "originalName": "workspaceRan", + "camelCase": { + "unsafeName": "workspaceRan", + "safeName": "workspaceRan" + }, + "snakeCase": { + "unsafeName": "workspace_ran", + "safeName": "workspace_ran" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RAN", + "safeName": "WORKSPACE_RAN" + }, + "pascalCase": { + "unsafeName": "WorkspaceRan", + "safeName": "WorkspaceRan" + } + }, + "wireValue": "workspaceRan" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "runDetails", + "camelCase": { + "unsafeName": "runDetails", + "safeName": "runDetails" + }, + "snakeCase": { + "unsafeName": "run_details", + "safeName": "run_details" + }, + "screamingSnakeCase": { + "unsafeName": "RUN_DETAILS", + "safeName": "RUN_DETAILS" + }, + "pascalCase": { + "unsafeName": "RunDetails", + "safeName": "RunDetails" + } + }, + "wireValue": "runDetails" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceRunDetails" + } + } + ] + }, + "recording": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RecordingResponseNotification", + "discriminantValue": { + "name": { + "originalName": "recording", + "camelCase": { + "unsafeName": "recording", + "safeName": "recording" + }, + "snakeCase": { + "unsafeName": "recording", + "safeName": "recording" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDING", + "safeName": "RECORDING" + }, + "pascalCase": { + "unsafeName": "Recording", + "safeName": "Recording" + } + }, + "wireValue": "recording" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "lightweightStackInfo", + "camelCase": { + "unsafeName": "lightweightStackInfo", + "safeName": "lightweightStackInfo" + }, + "snakeCase": { + "unsafeName": "lightweight_stack_info", + "safeName": "lightweight_stack_info" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_STACK_INFO", + "safeName": "LIGHTWEIGHT_STACK_INFO" + }, + "pascalCase": { + "unsafeName": "LightweightStackInfo", + "safeName": "LightweightStackInfo" + } + }, + "wireValue": "lightweightStackInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:LightweightStackframeInformation" + } + }, + { + "name": { + "name": { + "originalName": "tracedFile", + "camelCase": { + "unsafeName": "tracedFile", + "safeName": "tracedFile" + }, + "snakeCase": { + "unsafeName": "traced_file", + "safeName": "traced_file" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_FILE", + "safeName": "TRACED_FILE" + }, + "pascalCase": { + "unsafeName": "TracedFile", + "safeName": "TracedFile" + } + }, + "wireValue": "tracedFile" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:TracedFile" + } + } + } + ] + }, + "recorded": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RecordedResponseNotification", + "discriminantValue": { + "name": { + "originalName": "recorded", + "camelCase": { + "unsafeName": "recorded", + "safeName": "recorded" + }, + "snakeCase": { + "unsafeName": "recorded", + "safeName": "recorded" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED", + "safeName": "RECORDED" + }, + "pascalCase": { + "unsafeName": "Recorded", + "safeName": "Recorded" + } + }, + "wireValue": "recorded" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "invalidRequest": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:InvalidRequestResponse", + "discriminantValue": { + "name": { + "originalName": "invalidRequest", + "camelCase": { + "unsafeName": "invalidRequest", + "safeName": "invalidRequest" + }, + "snakeCase": { + "unsafeName": "invalid_request", + "safeName": "invalid_request" + }, + "screamingSnakeCase": { + "unsafeName": "INVALID_REQUEST", + "safeName": "INVALID_REQUEST" + }, + "pascalCase": { + "unsafeName": "InvalidRequest", + "safeName": "InvalidRequest" + } + }, + "wireValue": "invalidRequest" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "wireValue": "request" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionRequest" + } + }, + { + "name": { + "name": { + "originalName": "cause", + "camelCase": { + "unsafeName": "cause", + "safeName": "cause" + }, + "snakeCase": { + "unsafeName": "cause", + "safeName": "cause" + }, + "screamingSnakeCase": { + "unsafeName": "CAUSE", + "safeName": "CAUSE" + }, + "pascalCase": { + "unsafeName": "Cause", + "safeName": "Cause" + } + }, + "wireValue": "cause" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:InvalidRequestCause" + } + } + ] + }, + "finished": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:FinishedResponse", + "discriminantValue": { + "name": { + "originalName": "finished", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "finished" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + } + } + }, + "type_submission:BuildingExecutorResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "BuildingExecutorResponse", + "camelCase": { + "unsafeName": "buildingExecutorResponse", + "safeName": "buildingExecutorResponse" + }, + "snakeCase": { + "unsafeName": "building_executor_response", + "safeName": "building_executor_response" + }, + "screamingSnakeCase": { + "unsafeName": "BUILDING_EXECUTOR_RESPONSE", + "safeName": "BUILDING_EXECUTOR_RESPONSE" + }, + "pascalCase": { + "unsafeName": "BuildingExecutorResponse", + "safeName": "BuildingExecutorResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExecutionSessionStatus" + } + } + ] + }, + "type_submission:RunningResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RunningResponse", + "camelCase": { + "unsafeName": "runningResponse", + "safeName": "runningResponse" + }, + "snakeCase": { + "unsafeName": "running_response", + "safeName": "running_response" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_RESPONSE", + "safeName": "RUNNING_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RunningResponse", + "safeName": "RunningResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "state", + "camelCase": { + "unsafeName": "state", + "safeName": "state" + }, + "snakeCase": { + "unsafeName": "state", + "safeName": "state" + }, + "screamingSnakeCase": { + "unsafeName": "STATE", + "safeName": "STATE" + }, + "pascalCase": { + "unsafeName": "State", + "safeName": "State" + } + }, + "wireValue": "state" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + } + } + ] + }, + "type_submission:RunningSubmissionState": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RunningSubmissionState", + "camelCase": { + "unsafeName": "runningSubmissionState", + "safeName": "runningSubmissionState" + }, + "snakeCase": { + "unsafeName": "running_submission_state", + "safeName": "running_submission_state" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_SUBMISSION_STATE", + "safeName": "RUNNING_SUBMISSION_STATE" + }, + "pascalCase": { + "unsafeName": "RunningSubmissionState", + "safeName": "RunningSubmissionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "QUEUEING_SUBMISSION", + "camelCase": { + "unsafeName": "queueingSubmission", + "safeName": "queueingSubmission" + }, + "snakeCase": { + "unsafeName": "queueing_submission", + "safeName": "queueing_submission" + }, + "screamingSnakeCase": { + "unsafeName": "QUEUEING_SUBMISSION", + "safeName": "QUEUEING_SUBMISSION" + }, + "pascalCase": { + "unsafeName": "QueueingSubmission", + "safeName": "QueueingSubmission" + } + }, + "wireValue": "QUEUEING_SUBMISSION" + }, + { + "name": { + "originalName": "KILLING_HISTORICAL_SUBMISSIONS", + "camelCase": { + "unsafeName": "killingHistoricalSubmissions", + "safeName": "killingHistoricalSubmissions" + }, + "snakeCase": { + "unsafeName": "killing_historical_submissions", + "safeName": "killing_historical_submissions" + }, + "screamingSnakeCase": { + "unsafeName": "KILLING_HISTORICAL_SUBMISSIONS", + "safeName": "KILLING_HISTORICAL_SUBMISSIONS" + }, + "pascalCase": { + "unsafeName": "KillingHistoricalSubmissions", + "safeName": "KillingHistoricalSubmissions" + } + }, + "wireValue": "KILLING_HISTORICAL_SUBMISSIONS" + }, + { + "name": { + "originalName": "WRITING_SUBMISSION_TO_FILE", + "camelCase": { + "unsafeName": "writingSubmissionToFile", + "safeName": "writingSubmissionToFile" + }, + "snakeCase": { + "unsafeName": "writing_submission_to_file", + "safeName": "writing_submission_to_file" + }, + "screamingSnakeCase": { + "unsafeName": "WRITING_SUBMISSION_TO_FILE", + "safeName": "WRITING_SUBMISSION_TO_FILE" + }, + "pascalCase": { + "unsafeName": "WritingSubmissionToFile", + "safeName": "WritingSubmissionToFile" + } + }, + "wireValue": "WRITING_SUBMISSION_TO_FILE" + }, + { + "name": { + "originalName": "COMPILING_SUBMISSION", + "camelCase": { + "unsafeName": "compilingSubmission", + "safeName": "compilingSubmission" + }, + "snakeCase": { + "unsafeName": "compiling_submission", + "safeName": "compiling_submission" + }, + "screamingSnakeCase": { + "unsafeName": "COMPILING_SUBMISSION", + "safeName": "COMPILING_SUBMISSION" + }, + "pascalCase": { + "unsafeName": "CompilingSubmission", + "safeName": "CompilingSubmission" + } + }, + "wireValue": "COMPILING_SUBMISSION" + }, + { + "name": { + "originalName": "RUNNING_SUBMISSION", + "camelCase": { + "unsafeName": "runningSubmission", + "safeName": "runningSubmission" + }, + "snakeCase": { + "unsafeName": "running_submission", + "safeName": "running_submission" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_SUBMISSION", + "safeName": "RUNNING_SUBMISSION" + }, + "pascalCase": { + "unsafeName": "RunningSubmission", + "safeName": "RunningSubmission" + } + }, + "wireValue": "RUNNING_SUBMISSION" + } + ] + }, + "type_submission:ErroredResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ErroredResponse", + "camelCase": { + "unsafeName": "erroredResponse", + "safeName": "erroredResponse" + }, + "snakeCase": { + "unsafeName": "errored_response", + "safeName": "errored_response" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED_RESPONSE", + "safeName": "ERRORED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ErroredResponse", + "safeName": "ErroredResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "errorInfo", + "camelCase": { + "unsafeName": "errorInfo", + "safeName": "errorInfo" + }, + "snakeCase": { + "unsafeName": "error_info", + "safeName": "error_info" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR_INFO", + "safeName": "ERROR_INFO" + }, + "pascalCase": { + "unsafeName": "ErrorInfo", + "safeName": "ErrorInfo" + } + }, + "wireValue": "errorInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + } + } + ] + }, + "type_submission:ErrorInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ErrorInfo", + "camelCase": { + "unsafeName": "errorInfo", + "safeName": "errorInfo" + }, + "snakeCase": { + "unsafeName": "error_info", + "safeName": "error_info" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR_INFO", + "safeName": "ERROR_INFO" + }, + "pascalCase": { + "unsafeName": "ErrorInfo", + "safeName": "ErrorInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "compileError": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:CompileError", + "discriminantValue": { + "name": { + "originalName": "compileError", + "camelCase": { + "unsafeName": "compileError", + "safeName": "compileError" + }, + "snakeCase": { + "unsafeName": "compile_error", + "safeName": "compile_error" + }, + "screamingSnakeCase": { + "unsafeName": "COMPILE_ERROR", + "safeName": "COMPILE_ERROR" + }, + "pascalCase": { + "unsafeName": "CompileError", + "safeName": "CompileError" + } + }, + "wireValue": "compileError" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "runtimeError": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RuntimeError", + "discriminantValue": { + "name": { + "originalName": "runtimeError", + "camelCase": { + "unsafeName": "runtimeError", + "safeName": "runtimeError" + }, + "snakeCase": { + "unsafeName": "runtime_error", + "safeName": "runtime_error" + }, + "screamingSnakeCase": { + "unsafeName": "RUNTIME_ERROR", + "safeName": "RUNTIME_ERROR" + }, + "pascalCase": { + "unsafeName": "RuntimeError", + "safeName": "RuntimeError" + } + }, + "wireValue": "runtimeError" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "internalError": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:InternalError", + "discriminantValue": { + "name": { + "originalName": "internalError", + "camelCase": { + "unsafeName": "internalError", + "safeName": "internalError" + }, + "snakeCase": { + "unsafeName": "internal_error", + "safeName": "internal_error" + }, + "screamingSnakeCase": { + "unsafeName": "INTERNAL_ERROR", + "safeName": "INTERNAL_ERROR" + }, + "pascalCase": { + "unsafeName": "InternalError", + "safeName": "InternalError" + } + }, + "wireValue": "internalError" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionInfo", + "camelCase": { + "unsafeName": "exceptionInfo", + "safeName": "exceptionInfo" + }, + "snakeCase": { + "unsafeName": "exception_info", + "safeName": "exception_info" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_INFO", + "safeName": "EXCEPTION_INFO" + }, + "pascalCase": { + "unsafeName": "ExceptionInfo", + "safeName": "ExceptionInfo" + } + }, + "wireValue": "exceptionInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + ] + } + } + }, + "type_submission:CompileError": { + "type": "object", + "declaration": { + "name": { + "originalName": "CompileError", + "camelCase": { + "unsafeName": "compileError", + "safeName": "compileError" + }, + "snakeCase": { + "unsafeName": "compile_error", + "safeName": "compile_error" + }, + "screamingSnakeCase": { + "unsafeName": "COMPILE_ERROR", + "safeName": "COMPILE_ERROR" + }, + "pascalCase": { + "unsafeName": "CompileError", + "safeName": "CompileError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:RuntimeError": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuntimeError", + "camelCase": { + "unsafeName": "runtimeError", + "safeName": "runtimeError" + }, + "snakeCase": { + "unsafeName": "runtime_error", + "safeName": "runtime_error" + }, + "screamingSnakeCase": { + "unsafeName": "RUNTIME_ERROR", + "safeName": "RUNTIME_ERROR" + }, + "pascalCase": { + "unsafeName": "RuntimeError", + "safeName": "RuntimeError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:InternalError": { + "type": "object", + "declaration": { + "name": { + "originalName": "InternalError", + "camelCase": { + "unsafeName": "internalError", + "safeName": "internalError" + }, + "snakeCase": { + "unsafeName": "internal_error", + "safeName": "internal_error" + }, + "screamingSnakeCase": { + "unsafeName": "INTERNAL_ERROR", + "safeName": "INTERNAL_ERROR" + }, + "pascalCase": { + "unsafeName": "InternalError", + "safeName": "InternalError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionInfo", + "camelCase": { + "unsafeName": "exceptionInfo", + "safeName": "exceptionInfo" + }, + "snakeCase": { + "unsafeName": "exception_info", + "safeName": "exception_info" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_INFO", + "safeName": "EXCEPTION_INFO" + }, + "pascalCase": { + "unsafeName": "ExceptionInfo", + "safeName": "ExceptionInfo" + } + }, + "wireValue": "exceptionInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + ] + }, + "type_submission:StoppedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StoppedResponse", + "camelCase": { + "unsafeName": "stoppedResponse", + "safeName": "stoppedResponse" + }, + "snakeCase": { + "unsafeName": "stopped_response", + "safeName": "stopped_response" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED_RESPONSE", + "safeName": "STOPPED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StoppedResponse", + "safeName": "StoppedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:WorkspaceRanResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceRanResponse", + "camelCase": { + "unsafeName": "workspaceRanResponse", + "safeName": "workspaceRanResponse" + }, + "snakeCase": { + "unsafeName": "workspace_ran_response", + "safeName": "workspace_ran_response" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RAN_RESPONSE", + "safeName": "WORKSPACE_RAN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "WorkspaceRanResponse", + "safeName": "WorkspaceRanResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "runDetails", + "camelCase": { + "unsafeName": "runDetails", + "safeName": "runDetails" + }, + "snakeCase": { + "unsafeName": "run_details", + "safeName": "run_details" + }, + "screamingSnakeCase": { + "unsafeName": "RUN_DETAILS", + "safeName": "RUN_DETAILS" + }, + "pascalCase": { + "unsafeName": "RunDetails", + "safeName": "RunDetails" + } + }, + "wireValue": "runDetails" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceRunDetails" + } + } + ] + }, + "type_submission:WorkspaceRunDetails": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceRunDetails", + "camelCase": { + "unsafeName": "workspaceRunDetails", + "safeName": "workspaceRunDetails" + }, + "snakeCase": { + "unsafeName": "workspace_run_details", + "safeName": "workspace_run_details" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RUN_DETAILS", + "safeName": "WORKSPACE_RUN_DETAILS" + }, + "pascalCase": { + "unsafeName": "WorkspaceRunDetails", + "safeName": "WorkspaceRunDetails" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "wireValue": "exceptionV2" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:GradedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GradedResponse", + "camelCase": { + "unsafeName": "gradedResponse", + "safeName": "gradedResponse" + }, + "snakeCase": { + "unsafeName": "graded_response", + "safeName": "graded_response" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_RESPONSE", + "safeName": "GRADED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GradedResponse", + "safeName": "GradedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCases", + "camelCase": { + "unsafeName": "testCases", + "safeName": "testCases" + }, + "snakeCase": { + "unsafeName": "test_cases", + "safeName": "test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASES", + "safeName": "TEST_CASES" + }, + "pascalCase": { + "unsafeName": "TestCases", + "safeName": "TestCases" + } + }, + "wireValue": "testCases" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + } + } + ] + }, + "type_submission:GradedResponseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "GradedResponseV2", + "camelCase": { + "unsafeName": "gradedResponseV2", + "safeName": "gradedResponseV2" + }, + "snakeCase": { + "unsafeName": "graded_response_v2", + "safeName": "graded_response_v2" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_RESPONSE_V2", + "safeName": "GRADED_RESPONSE_V2" + }, + "pascalCase": { + "unsafeName": "GradedResponseV2", + "safeName": "GradedResponseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCases", + "camelCase": { + "unsafeName": "testCases", + "safeName": "testCases" + }, + "snakeCase": { + "unsafeName": "test_cases", + "safeName": "test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASES", + "safeName": "TEST_CASES" + }, + "pascalCase": { + "unsafeName": "TestCases", + "safeName": "TestCases" + } + }, + "wireValue": "testCases" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + }, + "value": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + } + } + } + ] + }, + "type_submission:TestCaseGrade": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseGrade", + "camelCase": { + "unsafeName": "testCaseGrade", + "safeName": "testCaseGrade" + }, + "snakeCase": { + "unsafeName": "test_case_grade", + "safeName": "test_case_grade" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_GRADE", + "safeName": "TEST_CASE_GRADE" + }, + "pascalCase": { + "unsafeName": "TestCaseGrade", + "safeName": "TestCaseGrade" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "hidden": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestCaseHiddenGrade", + "discriminantValue": { + "name": { + "originalName": "hidden", + "camelCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "snakeCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "screamingSnakeCase": { + "unsafeName": "HIDDEN", + "safeName": "HIDDEN" + }, + "pascalCase": { + "unsafeName": "Hidden", + "safeName": "Hidden" + } + }, + "wireValue": "hidden" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "nonHidden": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestCaseNonHiddenGrade", + "discriminantValue": { + "name": { + "originalName": "nonHidden", + "camelCase": { + "unsafeName": "nonHidden", + "safeName": "nonHidden" + }, + "snakeCase": { + "unsafeName": "non_hidden", + "safeName": "non_hidden" + }, + "screamingSnakeCase": { + "unsafeName": "NON_HIDDEN", + "safeName": "NON_HIDDEN" + }, + "pascalCase": { + "unsafeName": "NonHidden", + "safeName": "NonHidden" + } + }, + "wireValue": "nonHidden" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "actualResult", + "camelCase": { + "unsafeName": "actualResult", + "safeName": "actualResult" + }, + "snakeCase": { + "unsafeName": "actual_result", + "safeName": "actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT", + "safeName": "ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "ActualResult", + "safeName": "ActualResult" + } + }, + "wireValue": "actualResult" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_submission:TestCaseHiddenGrade": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseHiddenGrade", + "camelCase": { + "unsafeName": "testCaseHiddenGrade", + "safeName": "testCaseHiddenGrade" + }, + "snakeCase": { + "unsafeName": "test_case_hidden_grade", + "safeName": "test_case_hidden_grade" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_HIDDEN_GRADE", + "safeName": "TEST_CASE_HIDDEN_GRADE" + }, + "pascalCase": { + "unsafeName": "TestCaseHiddenGrade", + "safeName": "TestCaseHiddenGrade" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_submission:TestCaseNonHiddenGrade": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseNonHiddenGrade", + "camelCase": { + "unsafeName": "testCaseNonHiddenGrade", + "safeName": "testCaseNonHiddenGrade" + }, + "snakeCase": { + "unsafeName": "test_case_non_hidden_grade", + "safeName": "test_case_non_hidden_grade" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_NON_HIDDEN_GRADE", + "safeName": "TEST_CASE_NON_HIDDEN_GRADE" + }, + "pascalCase": { + "unsafeName": "TestCaseNonHiddenGrade", + "safeName": "TestCaseNonHiddenGrade" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "actualResult", + "camelCase": { + "unsafeName": "actualResult", + "safeName": "actualResult" + }, + "snakeCase": { + "unsafeName": "actual_result", + "safeName": "actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT", + "safeName": "ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "ActualResult", + "safeName": "ActualResult" + } + }, + "wireValue": "actualResult" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:RecordedResponseNotification": { + "type": "object", + "declaration": { + "name": { + "originalName": "RecordedResponseNotification", + "camelCase": { + "unsafeName": "recordedResponseNotification", + "safeName": "recordedResponseNotification" + }, + "snakeCase": { + "unsafeName": "recorded_response_notification", + "safeName": "recorded_response_notification" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED_RESPONSE_NOTIFICATION", + "safeName": "RECORDED_RESPONSE_NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "RecordedResponseNotification", + "safeName": "RecordedResponseNotification" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:RecordingResponseNotification": { + "type": "object", + "declaration": { + "name": { + "originalName": "RecordingResponseNotification", + "camelCase": { + "unsafeName": "recordingResponseNotification", + "safeName": "recordingResponseNotification" + }, + "snakeCase": { + "unsafeName": "recording_response_notification", + "safeName": "recording_response_notification" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDING_RESPONSE_NOTIFICATION", + "safeName": "RECORDING_RESPONSE_NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "RecordingResponseNotification", + "safeName": "RecordingResponseNotification" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "lightweightStackInfo", + "camelCase": { + "unsafeName": "lightweightStackInfo", + "safeName": "lightweightStackInfo" + }, + "snakeCase": { + "unsafeName": "lightweight_stack_info", + "safeName": "lightweight_stack_info" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_STACK_INFO", + "safeName": "LIGHTWEIGHT_STACK_INFO" + }, + "pascalCase": { + "unsafeName": "LightweightStackInfo", + "safeName": "LightweightStackInfo" + } + }, + "wireValue": "lightweightStackInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:LightweightStackframeInformation" + } + }, + { + "name": { + "name": { + "originalName": "tracedFile", + "camelCase": { + "unsafeName": "tracedFile", + "safeName": "tracedFile" + }, + "snakeCase": { + "unsafeName": "traced_file", + "safeName": "traced_file" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_FILE", + "safeName": "TRACED_FILE" + }, + "pascalCase": { + "unsafeName": "TracedFile", + "safeName": "TracedFile" + } + }, + "wireValue": "tracedFile" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:TracedFile" + } + } + } + ] + }, + "type_submission:LightweightStackframeInformation": { + "type": "object", + "declaration": { + "name": { + "originalName": "LightweightStackframeInformation", + "camelCase": { + "unsafeName": "lightweightStackframeInformation", + "safeName": "lightweightStackframeInformation" + }, + "snakeCase": { + "unsafeName": "lightweight_stackframe_information", + "safeName": "lightweight_stackframe_information" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_STACKFRAME_INFORMATION", + "safeName": "LIGHTWEIGHT_STACKFRAME_INFORMATION" + }, + "pascalCase": { + "unsafeName": "LightweightStackframeInformation", + "safeName": "LightweightStackframeInformation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "numStackFrames", + "camelCase": { + "unsafeName": "numStackFrames", + "safeName": "numStackFrames" + }, + "snakeCase": { + "unsafeName": "num_stack_frames", + "safeName": "num_stack_frames" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_STACK_FRAMES", + "safeName": "NUM_STACK_FRAMES" + }, + "pascalCase": { + "unsafeName": "NumStackFrames", + "safeName": "NumStackFrames" + } + }, + "wireValue": "numStackFrames" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "topStackFrameMethodName", + "camelCase": { + "unsafeName": "topStackFrameMethodName", + "safeName": "topStackFrameMethodName" + }, + "snakeCase": { + "unsafeName": "top_stack_frame_method_name", + "safeName": "top_stack_frame_method_name" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_STACK_FRAME_METHOD_NAME", + "safeName": "TOP_STACK_FRAME_METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "TopStackFrameMethodName", + "safeName": "TopStackFrameMethodName" + } + }, + "wireValue": "topStackFrameMethodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:TestCaseResultWithStdout": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseResultWithStdout", + "camelCase": { + "unsafeName": "testCaseResultWithStdout", + "safeName": "testCaseResultWithStdout" + }, + "snakeCase": { + "unsafeName": "test_case_result_with_stdout", + "safeName": "test_case_result_with_stdout" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_RESULT_WITH_STDOUT", + "safeName": "TEST_CASE_RESULT_WITH_STDOUT" + }, + "pascalCase": { + "unsafeName": "TestCaseResultWithStdout", + "safeName": "TestCaseResultWithStdout" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResult" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:TestCaseResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseResult", + "camelCase": { + "unsafeName": "testCaseResult", + "safeName": "testCaseResult" + }, + "snakeCase": { + "unsafeName": "test_case_result", + "safeName": "test_case_result" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_RESULT", + "safeName": "TEST_CASE_RESULT" + }, + "pascalCase": { + "unsafeName": "TestCaseResult", + "safeName": "TestCaseResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedResult", + "camelCase": { + "unsafeName": "expectedResult", + "safeName": "expectedResult" + }, + "snakeCase": { + "unsafeName": "expected_result", + "safeName": "expected_result" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_RESULT", + "safeName": "EXPECTED_RESULT" + }, + "pascalCase": { + "unsafeName": "ExpectedResult", + "safeName": "ExpectedResult" + } + }, + "wireValue": "expectedResult" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + }, + { + "name": { + "name": { + "originalName": "actualResult", + "camelCase": { + "unsafeName": "actualResult", + "safeName": "actualResult" + }, + "snakeCase": { + "unsafeName": "actual_result", + "safeName": "actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT", + "safeName": "ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "ActualResult", + "safeName": "ActualResult" + } + }, + "wireValue": "actualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ActualResult" + } + }, + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_submission:ActualResult": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ActualResult", + "camelCase": { + "unsafeName": "actualResult", + "safeName": "actualResult" + }, + "snakeCase": { + "unsafeName": "actual_result", + "safeName": "actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT", + "safeName": "ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "ActualResult", + "safeName": "ActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + }, + "discriminantValue": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "properties": null + }, + "exception": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "exceptionV2": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ExceptionV2" + }, + "discriminantValue": { + "name": { + "originalName": "exceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "wireValue": "exceptionV2" + }, + "properties": null + } + } + }, + "type_submission:ExceptionV2": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ExceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "generic": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "generic", + "camelCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "snakeCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC", + "safeName": "GENERIC" + }, + "pascalCase": { + "unsafeName": "Generic", + "safeName": "Generic" + } + }, + "wireValue": "generic" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "timeout": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "timeout", + "camelCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "snakeCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "screamingSnakeCase": { + "unsafeName": "TIMEOUT", + "safeName": "TIMEOUT" + }, + "pascalCase": { + "unsafeName": "Timeout", + "safeName": "Timeout" + } + }, + "wireValue": "timeout" + }, + "properties": null + } + } + }, + "type_submission:ExceptionInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExceptionInfo", + "camelCase": { + "unsafeName": "exceptionInfo", + "safeName": "exceptionInfo" + }, + "snakeCase": { + "unsafeName": "exception_info", + "safeName": "exception_info" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_INFO", + "safeName": "EXCEPTION_INFO" + }, + "pascalCase": { + "unsafeName": "ExceptionInfo", + "safeName": "ExceptionInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:InvalidRequestResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "InvalidRequestResponse", + "camelCase": { + "unsafeName": "invalidRequestResponse", + "safeName": "invalidRequestResponse" + }, + "snakeCase": { + "unsafeName": "invalid_request_response", + "safeName": "invalid_request_response" + }, + "screamingSnakeCase": { + "unsafeName": "INVALID_REQUEST_RESPONSE", + "safeName": "INVALID_REQUEST_RESPONSE" + }, + "pascalCase": { + "unsafeName": "InvalidRequestResponse", + "safeName": "InvalidRequestResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "wireValue": "request" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionRequest" + } + }, + { + "name": { + "name": { + "originalName": "cause", + "camelCase": { + "unsafeName": "cause", + "safeName": "cause" + }, + "snakeCase": { + "unsafeName": "cause", + "safeName": "cause" + }, + "screamingSnakeCase": { + "unsafeName": "CAUSE", + "safeName": "CAUSE" + }, + "pascalCase": { + "unsafeName": "Cause", + "safeName": "Cause" + } + }, + "wireValue": "cause" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:InvalidRequestCause" + } + } + ] + }, + "type_submission:InvalidRequestCause": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "InvalidRequestCause", + "camelCase": { + "unsafeName": "invalidRequestCause", + "safeName": "invalidRequestCause" + }, + "snakeCase": { + "unsafeName": "invalid_request_cause", + "safeName": "invalid_request_cause" + }, + "screamingSnakeCase": { + "unsafeName": "INVALID_REQUEST_CAUSE", + "safeName": "INVALID_REQUEST_CAUSE" + }, + "pascalCase": { + "unsafeName": "InvalidRequestCause", + "safeName": "InvalidRequestCause" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "submissionIdNotFound": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:SubmissionIdNotFound", + "discriminantValue": { + "name": { + "originalName": "submissionIdNotFound", + "camelCase": { + "unsafeName": "submissionIDNotFound", + "safeName": "submissionIDNotFound" + }, + "snakeCase": { + "unsafeName": "submission_id_not_found", + "safeName": "submission_id_not_found" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID_NOT_FOUND", + "safeName": "SUBMISSION_ID_NOT_FOUND" + }, + "pascalCase": { + "unsafeName": "SubmissionIDNotFound", + "safeName": "SubmissionIDNotFound" + } + }, + "wireValue": "submissionIdNotFound" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "missingSubmissionId", + "camelCase": { + "unsafeName": "missingSubmissionID", + "safeName": "missingSubmissionID" + }, + "snakeCase": { + "unsafeName": "missing_submission_id", + "safeName": "missing_submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "MISSING_SUBMISSION_ID", + "safeName": "MISSING_SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "MissingSubmissionID", + "safeName": "MissingSubmissionID" + } + }, + "wireValue": "missingSubmissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "customTestCasesUnsupported": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:CustomTestCasesUnsupported", + "discriminantValue": { + "name": { + "originalName": "customTestCasesUnsupported", + "camelCase": { + "unsafeName": "customTestCasesUnsupported", + "safeName": "customTestCasesUnsupported" + }, + "snakeCase": { + "unsafeName": "custom_test_cases_unsupported", + "safeName": "custom_test_cases_unsupported" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASES_UNSUPPORTED", + "safeName": "CUSTOM_TEST_CASES_UNSUPPORTED" + }, + "pascalCase": { + "unsafeName": "CustomTestCasesUnsupported", + "safeName": "CustomTestCasesUnsupported" + } + }, + "wireValue": "customTestCasesUnsupported" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "unexpectedLanguage": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:UnexpectedLanguageError", + "discriminantValue": { + "name": { + "originalName": "unexpectedLanguage", + "camelCase": { + "unsafeName": "unexpectedLanguage", + "safeName": "unexpectedLanguage" + }, + "snakeCase": { + "unsafeName": "unexpected_language", + "safeName": "unexpected_language" + }, + "screamingSnakeCase": { + "unsafeName": "UNEXPECTED_LANGUAGE", + "safeName": "UNEXPECTED_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "UnexpectedLanguage", + "safeName": "UnexpectedLanguage" + } + }, + "wireValue": "unexpectedLanguage" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedLanguage", + "camelCase": { + "unsafeName": "expectedLanguage", + "safeName": "expectedLanguage" + }, + "snakeCase": { + "unsafeName": "expected_language", + "safeName": "expected_language" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_LANGUAGE", + "safeName": "EXPECTED_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "ExpectedLanguage", + "safeName": "ExpectedLanguage" + } + }, + "wireValue": "expectedLanguage" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "actualLanguage", + "camelCase": { + "unsafeName": "actualLanguage", + "safeName": "actualLanguage" + }, + "snakeCase": { + "unsafeName": "actual_language", + "safeName": "actual_language" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_LANGUAGE", + "safeName": "ACTUAL_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "ActualLanguage", + "safeName": "ActualLanguage" + } + }, + "wireValue": "actualLanguage" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + } + ] + } + } + }, + "type_submission:ExistingSubmissionExecuting": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExistingSubmissionExecuting", + "camelCase": { + "unsafeName": "existingSubmissionExecuting", + "safeName": "existingSubmissionExecuting" + }, + "snakeCase": { + "unsafeName": "existing_submission_executing", + "safeName": "existing_submission_executing" + }, + "screamingSnakeCase": { + "unsafeName": "EXISTING_SUBMISSION_EXECUTING", + "safeName": "EXISTING_SUBMISSION_EXECUTING" + }, + "pascalCase": { + "unsafeName": "ExistingSubmissionExecuting", + "safeName": "ExistingSubmissionExecuting" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:SubmissionIdNotFound": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubmissionIdNotFound", + "camelCase": { + "unsafeName": "submissionIDNotFound", + "safeName": "submissionIDNotFound" + }, + "snakeCase": { + "unsafeName": "submission_id_not_found", + "safeName": "submission_id_not_found" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID_NOT_FOUND", + "safeName": "SUBMISSION_ID_NOT_FOUND" + }, + "pascalCase": { + "unsafeName": "SubmissionIDNotFound", + "safeName": "SubmissionIDNotFound" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "missingSubmissionId", + "camelCase": { + "unsafeName": "missingSubmissionID", + "safeName": "missingSubmissionID" + }, + "snakeCase": { + "unsafeName": "missing_submission_id", + "safeName": "missing_submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "MISSING_SUBMISSION_ID", + "safeName": "MISSING_SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "MissingSubmissionID", + "safeName": "MissingSubmissionID" + } + }, + "wireValue": "missingSubmissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:CustomTestCasesUnsupported": { + "type": "object", + "declaration": { + "name": { + "originalName": "CustomTestCasesUnsupported", + "camelCase": { + "unsafeName": "customTestCasesUnsupported", + "safeName": "customTestCasesUnsupported" + }, + "snakeCase": { + "unsafeName": "custom_test_cases_unsupported", + "safeName": "custom_test_cases_unsupported" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASES_UNSUPPORTED", + "safeName": "CUSTOM_TEST_CASES_UNSUPPORTED" + }, + "pascalCase": { + "unsafeName": "CustomTestCasesUnsupported", + "safeName": "CustomTestCasesUnsupported" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:UnexpectedLanguageError": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnexpectedLanguageError", + "camelCase": { + "unsafeName": "unexpectedLanguageError", + "safeName": "unexpectedLanguageError" + }, + "snakeCase": { + "unsafeName": "unexpected_language_error", + "safeName": "unexpected_language_error" + }, + "screamingSnakeCase": { + "unsafeName": "UNEXPECTED_LANGUAGE_ERROR", + "safeName": "UNEXPECTED_LANGUAGE_ERROR" + }, + "pascalCase": { + "unsafeName": "UnexpectedLanguageError", + "safeName": "UnexpectedLanguageError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedLanguage", + "camelCase": { + "unsafeName": "expectedLanguage", + "safeName": "expectedLanguage" + }, + "snakeCase": { + "unsafeName": "expected_language", + "safeName": "expected_language" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_LANGUAGE", + "safeName": "EXPECTED_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "ExpectedLanguage", + "safeName": "ExpectedLanguage" + } + }, + "wireValue": "expectedLanguage" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "actualLanguage", + "camelCase": { + "unsafeName": "actualLanguage", + "safeName": "actualLanguage" + }, + "snakeCase": { + "unsafeName": "actual_language", + "safeName": "actual_language" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_LANGUAGE", + "safeName": "ACTUAL_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "ActualLanguage", + "safeName": "ActualLanguage" + } + }, + "wireValue": "actualLanguage" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + } + ] + }, + "type_submission:TerminatedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TerminatedResponse", + "camelCase": { + "unsafeName": "terminatedResponse", + "safeName": "terminatedResponse" + }, + "snakeCase": { + "unsafeName": "terminated_response", + "safeName": "terminated_response" + }, + "screamingSnakeCase": { + "unsafeName": "TERMINATED_RESPONSE", + "safeName": "TERMINATED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TerminatedResponse", + "safeName": "TerminatedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [] + }, + "type_submission:FinishedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "FinishedResponse", + "camelCase": { + "unsafeName": "finishedResponse", + "safeName": "finishedResponse" + }, + "snakeCase": { + "unsafeName": "finished_response", + "safeName": "finished_response" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED_RESPONSE", + "safeName": "FINISHED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "FinishedResponse", + "safeName": "FinishedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:StdoutResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StdoutResponse", + "camelCase": { + "unsafeName": "stdoutResponse", + "safeName": "stdoutResponse" + }, + "snakeCase": { + "unsafeName": "stdout_response", + "safeName": "stdout_response" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT_RESPONSE", + "safeName": "STDOUT_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StdoutResponse", + "safeName": "StdoutResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:StderrResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StderrResponse", + "camelCase": { + "unsafeName": "stderrResponse", + "safeName": "stderrResponse" + }, + "snakeCase": { + "unsafeName": "stderr_response", + "safeName": "stderr_response" + }, + "screamingSnakeCase": { + "unsafeName": "STDERR_RESPONSE", + "safeName": "STDERR_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StderrResponse", + "safeName": "StderrResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "stderr", + "camelCase": { + "unsafeName": "stderr", + "safeName": "stderr" + }, + "snakeCase": { + "unsafeName": "stderr", + "safeName": "stderr" + }, + "screamingSnakeCase": { + "unsafeName": "STDERR", + "safeName": "STDERR" + }, + "pascalCase": { + "unsafeName": "Stderr", + "safeName": "Stderr" + } + }, + "wireValue": "stderr" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:TraceResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponse", + "camelCase": { + "unsafeName": "traceResponse", + "safeName": "traceResponse" + }, + "snakeCase": { + "unsafeName": "trace_response", + "safeName": "trace_response" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSE", + "safeName": "TRACE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TraceResponse", + "safeName": "TraceResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "returnValue", + "camelCase": { + "unsafeName": "returnValue", + "safeName": "returnValue" + }, + "snakeCase": { + "unsafeName": "return_value", + "safeName": "return_value" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_VALUE", + "safeName": "RETURN_VALUE" + }, + "pascalCase": { + "unsafeName": "ReturnValue", + "safeName": "ReturnValue" + } + }, + "wireValue": "returnValue" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expressionLocation", + "camelCase": { + "unsafeName": "expressionLocation", + "safeName": "expressionLocation" + }, + "snakeCase": { + "unsafeName": "expression_location", + "safeName": "expression_location" + }, + "screamingSnakeCase": { + "unsafeName": "EXPRESSION_LOCATION", + "safeName": "EXPRESSION_LOCATION" + }, + "pascalCase": { + "unsafeName": "ExpressionLocation", + "safeName": "ExpressionLocation" + } + }, + "wireValue": "expressionLocation" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExpressionLocation" + } + } + }, + { + "name": { + "name": { + "originalName": "stack", + "camelCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "snakeCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "screamingSnakeCase": { + "unsafeName": "STACK", + "safeName": "STACK" + }, + "pascalCase": { + "unsafeName": "Stack", + "safeName": "Stack" + } + }, + "wireValue": "stack" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:StackInformation" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:TraceResponseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponseV2", + "camelCase": { + "unsafeName": "traceResponseV2", + "safeName": "traceResponseV2" + }, + "snakeCase": { + "unsafeName": "trace_response_v2", + "safeName": "trace_response_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSE_V2", + "safeName": "TRACE_RESPONSE_V2" + }, + "pascalCase": { + "unsafeName": "TraceResponseV2", + "safeName": "TraceResponseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TracedFile" + } + }, + { + "name": { + "name": { + "originalName": "returnValue", + "camelCase": { + "unsafeName": "returnValue", + "safeName": "returnValue" + }, + "snakeCase": { + "unsafeName": "return_value", + "safeName": "return_value" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_VALUE", + "safeName": "RETURN_VALUE" + }, + "pascalCase": { + "unsafeName": "ReturnValue", + "safeName": "ReturnValue" + } + }, + "wireValue": "returnValue" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expressionLocation", + "camelCase": { + "unsafeName": "expressionLocation", + "safeName": "expressionLocation" + }, + "snakeCase": { + "unsafeName": "expression_location", + "safeName": "expression_location" + }, + "screamingSnakeCase": { + "unsafeName": "EXPRESSION_LOCATION", + "safeName": "EXPRESSION_LOCATION" + }, + "pascalCase": { + "unsafeName": "ExpressionLocation", + "safeName": "ExpressionLocation" + } + }, + "wireValue": "expressionLocation" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExpressionLocation" + } + } + }, + { + "name": { + "name": { + "originalName": "stack", + "camelCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "snakeCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "screamingSnakeCase": { + "unsafeName": "STACK", + "safeName": "STACK" + }, + "pascalCase": { + "unsafeName": "Stack", + "safeName": "Stack" + } + }, + "wireValue": "stack" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:StackInformation" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:TracedFile": { + "type": "object", + "declaration": { + "name": { + "originalName": "TracedFile", + "camelCase": { + "unsafeName": "tracedFile", + "safeName": "tracedFile" + }, + "snakeCase": { + "unsafeName": "traced_file", + "safeName": "traced_file" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_FILE", + "safeName": "TRACED_FILE" + }, + "pascalCase": { + "unsafeName": "TracedFile", + "safeName": "TracedFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:ExpressionLocation": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExpressionLocation", + "camelCase": { + "unsafeName": "expressionLocation", + "safeName": "expressionLocation" + }, + "snakeCase": { + "unsafeName": "expression_location", + "safeName": "expression_location" + }, + "screamingSnakeCase": { + "unsafeName": "EXPRESSION_LOCATION", + "safeName": "EXPRESSION_LOCATION" + }, + "pascalCase": { + "unsafeName": "ExpressionLocation", + "safeName": "ExpressionLocation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "start", + "camelCase": { + "unsafeName": "start", + "safeName": "start" + }, + "snakeCase": { + "unsafeName": "start", + "safeName": "start" + }, + "screamingSnakeCase": { + "unsafeName": "START", + "safeName": "START" + }, + "pascalCase": { + "unsafeName": "Start", + "safeName": "Start" + } + }, + "wireValue": "start" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:StackInformation": { + "type": "object", + "declaration": { + "name": { + "originalName": "StackInformation", + "camelCase": { + "unsafeName": "stackInformation", + "safeName": "stackInformation" + }, + "snakeCase": { + "unsafeName": "stack_information", + "safeName": "stack_information" + }, + "screamingSnakeCase": { + "unsafeName": "STACK_INFORMATION", + "safeName": "STACK_INFORMATION" + }, + "pascalCase": { + "unsafeName": "StackInformation", + "safeName": "StackInformation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "numStackFrames", + "camelCase": { + "unsafeName": "numStackFrames", + "safeName": "numStackFrames" + }, + "snakeCase": { + "unsafeName": "num_stack_frames", + "safeName": "num_stack_frames" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_STACK_FRAMES", + "safeName": "NUM_STACK_FRAMES" + }, + "pascalCase": { + "unsafeName": "NumStackFrames", + "safeName": "NumStackFrames" + } + }, + "wireValue": "numStackFrames" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "topStackFrame", + "camelCase": { + "unsafeName": "topStackFrame", + "safeName": "topStackFrame" + }, + "snakeCase": { + "unsafeName": "top_stack_frame", + "safeName": "top_stack_frame" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_STACK_FRAME", + "safeName": "TOP_STACK_FRAME" + }, + "pascalCase": { + "unsafeName": "TopStackFrame", + "safeName": "TopStackFrame" + } + }, + "wireValue": "topStackFrame" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:StackFrame" + } + } + } + ] + }, + "type_submission:StackFrame": { + "type": "object", + "declaration": { + "name": { + "originalName": "StackFrame", + "camelCase": { + "unsafeName": "stackFrame", + "safeName": "stackFrame" + }, + "snakeCase": { + "unsafeName": "stack_frame", + "safeName": "stack_frame" + }, + "screamingSnakeCase": { + "unsafeName": "STACK_FRAME", + "safeName": "STACK_FRAME" + }, + "pascalCase": { + "unsafeName": "StackFrame", + "safeName": "StackFrame" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "scopes", + "camelCase": { + "unsafeName": "scopes", + "safeName": "scopes" + }, + "snakeCase": { + "unsafeName": "scopes", + "safeName": "scopes" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPES", + "safeName": "SCOPES" + }, + "pascalCase": { + "unsafeName": "Scopes", + "safeName": "Scopes" + } + }, + "wireValue": "scopes" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:Scope" + } + } + } + ] + }, + "type_submission:Scope": { + "type": "object", + "declaration": { + "name": { + "originalName": "Scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "variables", + "camelCase": { + "unsafeName": "variables", + "safeName": "variables" + }, + "snakeCase": { + "unsafeName": "variables", + "safeName": "variables" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLES", + "safeName": "VARIABLES" + }, + "pascalCase": { + "unsafeName": "Variables", + "safeName": "Variables" + } + }, + "wireValue": "variables" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + } + ] + }, + "type_submission:ExecutionSessionResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExecutionSessionResponse", + "camelCase": { + "unsafeName": "executionSessionResponse", + "safeName": "executionSessionResponse" + }, + "snakeCase": { + "unsafeName": "execution_session_response", + "safeName": "execution_session_response" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_RESPONSE", + "safeName": "EXECUTION_SESSION_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionResponse", + "safeName": "ExecutionSessionResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "executionSessionUrl", + "camelCase": { + "unsafeName": "executionSessionURL", + "safeName": "executionSessionURL" + }, + "snakeCase": { + "unsafeName": "execution_session_url", + "safeName": "execution_session_url" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_URL", + "safeName": "EXECUTION_SESSION_URL" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionURL", + "safeName": "ExecutionSessionURL" + } + }, + "wireValue": "executionSessionUrl" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExecutionSessionStatus" + } + } + ] + }, + "type_submission:ExecutionSessionStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ExecutionSessionStatus", + "camelCase": { + "unsafeName": "executionSessionStatus", + "safeName": "executionSessionStatus" + }, + "snakeCase": { + "unsafeName": "execution_session_status", + "safeName": "execution_session_status" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_STATUS", + "safeName": "EXECUTION_SESSION_STATUS" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionStatus", + "safeName": "ExecutionSessionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "CREATING_CONTAINER", + "camelCase": { + "unsafeName": "creatingContainer", + "safeName": "creatingContainer" + }, + "snakeCase": { + "unsafeName": "creating_container", + "safeName": "creating_container" + }, + "screamingSnakeCase": { + "unsafeName": "CREATING_CONTAINER", + "safeName": "CREATING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "CreatingContainer", + "safeName": "CreatingContainer" + } + }, + "wireValue": "CREATING_CONTAINER" + }, + { + "name": { + "originalName": "PROVISIONING_CONTAINER", + "camelCase": { + "unsafeName": "provisioningContainer", + "safeName": "provisioningContainer" + }, + "snakeCase": { + "unsafeName": "provisioning_container", + "safeName": "provisioning_container" + }, + "screamingSnakeCase": { + "unsafeName": "PROVISIONING_CONTAINER", + "safeName": "PROVISIONING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "ProvisioningContainer", + "safeName": "ProvisioningContainer" + } + }, + "wireValue": "PROVISIONING_CONTAINER" + }, + { + "name": { + "originalName": "PENDING_CONTAINER", + "camelCase": { + "unsafeName": "pendingContainer", + "safeName": "pendingContainer" + }, + "snakeCase": { + "unsafeName": "pending_container", + "safeName": "pending_container" + }, + "screamingSnakeCase": { + "unsafeName": "PENDING_CONTAINER", + "safeName": "PENDING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "PendingContainer", + "safeName": "PendingContainer" + } + }, + "wireValue": "PENDING_CONTAINER" + }, + { + "name": { + "originalName": "RUNNING_CONTAINER", + "camelCase": { + "unsafeName": "runningContainer", + "safeName": "runningContainer" + }, + "snakeCase": { + "unsafeName": "running_container", + "safeName": "running_container" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_CONTAINER", + "safeName": "RUNNING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "RunningContainer", + "safeName": "RunningContainer" + } + }, + "wireValue": "RUNNING_CONTAINER" + }, + { + "name": { + "originalName": "LIVE_CONTAINER", + "camelCase": { + "unsafeName": "liveContainer", + "safeName": "liveContainer" + }, + "snakeCase": { + "unsafeName": "live_container", + "safeName": "live_container" + }, + "screamingSnakeCase": { + "unsafeName": "LIVE_CONTAINER", + "safeName": "LIVE_CONTAINER" + }, + "pascalCase": { + "unsafeName": "LiveContainer", + "safeName": "LiveContainer" + } + }, + "wireValue": "LIVE_CONTAINER" + }, + { + "name": { + "originalName": "FAILED_TO_LAUNCH", + "camelCase": { + "unsafeName": "failedToLaunch", + "safeName": "failedToLaunch" + }, + "snakeCase": { + "unsafeName": "failed_to_launch", + "safeName": "failed_to_launch" + }, + "screamingSnakeCase": { + "unsafeName": "FAILED_TO_LAUNCH", + "safeName": "FAILED_TO_LAUNCH" + }, + "pascalCase": { + "unsafeName": "FailedToLaunch", + "safeName": "FailedToLaunch" + } + }, + "wireValue": "FAILED_TO_LAUNCH" + } + ] + }, + "type_submission:SubmissionStatusV2": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionStatusV2", + "camelCase": { + "unsafeName": "submissionStatusV2", + "safeName": "submissionStatusV2" + }, + "snakeCase": { + "unsafeName": "submission_status_v2", + "safeName": "submission_status_v2" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_STATUS_V2", + "safeName": "SUBMISSION_STATUS_V2" + }, + "pascalCase": { + "unsafeName": "SubmissionStatusV2", + "safeName": "SubmissionStatusV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "test": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestSubmissionStatusV2", + "discriminantValue": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "wireValue": "test" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updates", + "camelCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "snakeCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATES", + "safeName": "UPDATES" + }, + "pascalCase": { + "unsafeName": "Updates", + "safeName": "Updates" + } + }, + "wireValue": "updates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TestSubmissionUpdate" + } + } + }, + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "problemInfo", + "camelCase": { + "unsafeName": "problemInfo", + "safeName": "problemInfo" + }, + "snakeCase": { + "unsafeName": "problem_info", + "safeName": "problem_info" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO", + "safeName": "PROBLEM_INFO" + }, + "pascalCase": { + "unsafeName": "ProblemInfo", + "safeName": "ProblemInfo" + } + }, + "wireValue": "problemInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ProblemInfoV2" + } + } + ] + }, + "workspace": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceSubmissionStatusV2", + "discriminantValue": { + "name": { + "originalName": "workspace", + "camelCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "snakeCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE", + "safeName": "WORKSPACE" + }, + "pascalCase": { + "unsafeName": "Workspace", + "safeName": "Workspace" + } + }, + "wireValue": "workspace" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updates", + "camelCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "snakeCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATES", + "safeName": "UPDATES" + }, + "pascalCase": { + "unsafeName": "Updates", + "safeName": "Updates" + } + }, + "wireValue": "updates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionUpdate" + } + } + } + ] + } + } + }, + "type_submission:TestSubmissionStatusV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestSubmissionStatusV2", + "camelCase": { + "unsafeName": "testSubmissionStatusV2", + "safeName": "testSubmissionStatusV2" + }, + "snakeCase": { + "unsafeName": "test_submission_status_v2", + "safeName": "test_submission_status_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_STATUS_V2", + "safeName": "TEST_SUBMISSION_STATUS_V2" + }, + "pascalCase": { + "unsafeName": "TestSubmissionStatusV2", + "safeName": "TestSubmissionStatusV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updates", + "camelCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "snakeCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATES", + "safeName": "UPDATES" + }, + "pascalCase": { + "unsafeName": "Updates", + "safeName": "Updates" + } + }, + "wireValue": "updates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TestSubmissionUpdate" + } + } + }, + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "problemInfo", + "camelCase": { + "unsafeName": "problemInfo", + "safeName": "problemInfo" + }, + "snakeCase": { + "unsafeName": "problem_info", + "safeName": "problem_info" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO", + "safeName": "PROBLEM_INFO" + }, + "pascalCase": { + "unsafeName": "ProblemInfo", + "safeName": "ProblemInfo" + } + }, + "wireValue": "problemInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ProblemInfoV2" + } + } + ] + }, + "type_submission:WorkspaceSubmissionStatusV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionStatusV2", + "camelCase": { + "unsafeName": "workspaceSubmissionStatusV2", + "safeName": "workspaceSubmissionStatusV2" + }, + "snakeCase": { + "unsafeName": "workspace_submission_status_v2", + "safeName": "workspace_submission_status_v2" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_STATUS_V2", + "safeName": "WORKSPACE_SUBMISSION_STATUS_V2" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionStatusV2", + "safeName": "WorkspaceSubmissionStatusV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updates", + "camelCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "snakeCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATES", + "safeName": "UPDATES" + }, + "pascalCase": { + "unsafeName": "Updates", + "safeName": "Updates" + } + }, + "wireValue": "updates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionUpdate" + } + } + } + ] + }, + "type_submission:TestSubmissionUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestSubmissionUpdate", + "camelCase": { + "unsafeName": "testSubmissionUpdate", + "safeName": "testSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "test_submission_update", + "safeName": "test_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_UPDATE", + "safeName": "TEST_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "TestSubmissionUpdate", + "safeName": "TestSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updateTime", + "camelCase": { + "unsafeName": "updateTime", + "safeName": "updateTime" + }, + "snakeCase": { + "unsafeName": "update_time", + "safeName": "update_time" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_TIME", + "safeName": "UPDATE_TIME" + }, + "pascalCase": { + "unsafeName": "UpdateTime", + "safeName": "UpdateTime" + } + }, + "wireValue": "updateTime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "updateInfo", + "camelCase": { + "unsafeName": "updateInfo", + "safeName": "updateInfo" + }, + "snakeCase": { + "unsafeName": "update_info", + "safeName": "update_info" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_INFO", + "safeName": "UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "UpdateInfo", + "safeName": "UpdateInfo" + } + }, + "wireValue": "updateInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestSubmissionUpdateInfo" + } + } + ] + }, + "type_submission:TestSubmissionUpdateInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestSubmissionUpdateInfo", + "camelCase": { + "unsafeName": "testSubmissionUpdateInfo", + "safeName": "testSubmissionUpdateInfo" + }, + "snakeCase": { + "unsafeName": "test_submission_update_info", + "safeName": "test_submission_update_info" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_UPDATE_INFO", + "safeName": "TEST_SUBMISSION_UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "TestSubmissionUpdateInfo", + "safeName": "TestSubmissionUpdateInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "gradedTestCase": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:GradedTestCaseUpdate", + "discriminantValue": { + "name": { + "originalName": "gradedTestCase", + "camelCase": { + "unsafeName": "gradedTestCase", + "safeName": "gradedTestCase" + }, + "snakeCase": { + "unsafeName": "graded_test_case", + "safeName": "graded_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_TEST_CASE", + "safeName": "GRADED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "GradedTestCase", + "safeName": "GradedTestCase" + } + }, + "wireValue": "gradedTestCase" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "grade", + "camelCase": { + "unsafeName": "grade", + "safeName": "grade" + }, + "snakeCase": { + "unsafeName": "grade", + "safeName": "grade" + }, + "screamingSnakeCase": { + "unsafeName": "GRADE", + "safeName": "GRADE" + }, + "pascalCase": { + "unsafeName": "Grade", + "safeName": "Grade" + } + }, + "wireValue": "grade" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + } + } + ] + }, + "recordedTestCase": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RecordedTestCaseUpdate", + "discriminantValue": { + "name": { + "originalName": "recordedTestCase", + "camelCase": { + "unsafeName": "recordedTestCase", + "safeName": "recordedTestCase" + }, + "snakeCase": { + "unsafeName": "recorded_test_case", + "safeName": "recorded_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED_TEST_CASE", + "safeName": "RECORDED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "RecordedTestCase", + "safeName": "RecordedTestCase" + } + }, + "wireValue": "recordedTestCase" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "finished": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "finished", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "finished" + }, + "properties": null + } + } + }, + "type_submission:WorkspaceSubmissionUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionUpdate", + "camelCase": { + "unsafeName": "workspaceSubmissionUpdate", + "safeName": "workspaceSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "workspace_submission_update", + "safeName": "workspace_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_UPDATE", + "safeName": "WORKSPACE_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionUpdate", + "safeName": "WorkspaceSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updateTime", + "camelCase": { + "unsafeName": "updateTime", + "safeName": "updateTime" + }, + "snakeCase": { + "unsafeName": "update_time", + "safeName": "update_time" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_TIME", + "safeName": "UPDATE_TIME" + }, + "pascalCase": { + "unsafeName": "UpdateTime", + "safeName": "UpdateTime" + } + }, + "wireValue": "updateTime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "updateInfo", + "camelCase": { + "unsafeName": "updateInfo", + "safeName": "updateInfo" + }, + "snakeCase": { + "unsafeName": "update_info", + "safeName": "update_info" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_INFO", + "safeName": "UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "UpdateInfo", + "safeName": "UpdateInfo" + } + }, + "wireValue": "updateInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionUpdateInfo" + } + } + ] + }, + "type_submission:WorkspaceSubmissionUpdateInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionUpdateInfo", + "camelCase": { + "unsafeName": "workspaceSubmissionUpdateInfo", + "safeName": "workspaceSubmissionUpdateInfo" + }, + "snakeCase": { + "unsafeName": "workspace_submission_update_info", + "safeName": "workspace_submission_update_info" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_UPDATE_INFO", + "safeName": "WORKSPACE_SUBMISSION_UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionUpdateInfo", + "safeName": "WorkspaceSubmissionUpdateInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "ran": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRunDetails", + "discriminantValue": { + "name": { + "originalName": "ran", + "camelCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "snakeCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "screamingSnakeCase": { + "unsafeName": "RAN", + "safeName": "RAN" + }, + "pascalCase": { + "unsafeName": "Ran", + "safeName": "Ran" + } + }, + "wireValue": "ran" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "wireValue": "exceptionV2" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "traced": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "traced", + "camelCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "snakeCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED", + "safeName": "TRACED" + }, + "pascalCase": { + "unsafeName": "Traced", + "safeName": "Traced" + } + }, + "wireValue": "traced" + }, + "properties": null + }, + "tracedV2": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceTracedUpdate", + "discriminantValue": { + "name": { + "originalName": "tracedV2", + "camelCase": { + "unsafeName": "tracedV2", + "safeName": "tracedV2" + }, + "snakeCase": { + "unsafeName": "traced_v2", + "safeName": "traced_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_V2", + "safeName": "TRACED_V2" + }, + "pascalCase": { + "unsafeName": "TracedV2", + "safeName": "TracedV2" + } + }, + "wireValue": "tracedV2" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "finished": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "finished", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "finished" + }, + "properties": null + } + } + }, + "type_submission:GradedTestCaseUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "GradedTestCaseUpdate", + "camelCase": { + "unsafeName": "gradedTestCaseUpdate", + "safeName": "gradedTestCaseUpdate" + }, + "snakeCase": { + "unsafeName": "graded_test_case_update", + "safeName": "graded_test_case_update" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_TEST_CASE_UPDATE", + "safeName": "GRADED_TEST_CASE_UPDATE" + }, + "pascalCase": { + "unsafeName": "GradedTestCaseUpdate", + "safeName": "GradedTestCaseUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "grade", + "camelCase": { + "unsafeName": "grade", + "safeName": "grade" + }, + "snakeCase": { + "unsafeName": "grade", + "safeName": "grade" + }, + "screamingSnakeCase": { + "unsafeName": "GRADE", + "safeName": "GRADE" + }, + "pascalCase": { + "unsafeName": "Grade", + "safeName": "Grade" + } + }, + "wireValue": "grade" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + } + } + ] + }, + "type_submission:RecordedTestCaseUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "RecordedTestCaseUpdate", + "camelCase": { + "unsafeName": "recordedTestCaseUpdate", + "safeName": "recordedTestCaseUpdate" + }, + "snakeCase": { + "unsafeName": "recorded_test_case_update", + "safeName": "recorded_test_case_update" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED_TEST_CASE_UPDATE", + "safeName": "RECORDED_TEST_CASE_UPDATE" + }, + "pascalCase": { + "unsafeName": "RecordedTestCaseUpdate", + "safeName": "RecordedTestCaseUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:WorkspaceTracedUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceTracedUpdate", + "camelCase": { + "unsafeName": "workspaceTracedUpdate", + "safeName": "workspaceTracedUpdate" + }, + "snakeCase": { + "unsafeName": "workspace_traced_update", + "safeName": "workspace_traced_update" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_TRACED_UPDATE", + "safeName": "WORKSPACE_TRACED_UPDATE" + }, + "pascalCase": { + "unsafeName": "WorkspaceTracedUpdate", + "safeName": "WorkspaceTracedUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:SubmissionTypeState": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionTypeState", + "camelCase": { + "unsafeName": "submissionTypeState", + "safeName": "submissionTypeState" + }, + "snakeCase": { + "unsafeName": "submission_type_state", + "safeName": "submission_type_state" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_TYPE_STATE", + "safeName": "SUBMISSION_TYPE_STATE" + }, + "pascalCase": { + "unsafeName": "SubmissionTypeState", + "safeName": "SubmissionTypeState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "test": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestSubmissionState", + "discriminantValue": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "wireValue": "test" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "defaultTestCases", + "camelCase": { + "unsafeName": "defaultTestCases", + "safeName": "defaultTestCases" + }, + "snakeCase": { + "unsafeName": "default_test_cases", + "safeName": "default_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT_TEST_CASES", + "safeName": "DEFAULT_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "DefaultTestCases", + "safeName": "DefaultTestCases" + } + }, + "wireValue": "defaultTestCases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCase" + } + } + }, + { + "name": { + "name": { + "originalName": "customTestCases", + "camelCase": { + "unsafeName": "customTestCases", + "safeName": "customTestCases" + }, + "snakeCase": { + "unsafeName": "custom_test_cases", + "safeName": "custom_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASES", + "safeName": "CUSTOM_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "CustomTestCases", + "safeName": "CustomTestCases" + } + }, + "wireValue": "customTestCases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCase" + } + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestSubmissionStatus" + } + } + ] + }, + "workspace": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceSubmissionState", + "discriminantValue": { + "name": { + "originalName": "workspace", + "camelCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "snakeCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE", + "safeName": "WORKSPACE" + }, + "pascalCase": { + "unsafeName": "Workspace", + "safeName": "Workspace" + } + }, + "wireValue": "workspace" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionStatus" + } + } + ] + } + } + }, + "type_submission:WorkspaceSubmissionState": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionState", + "camelCase": { + "unsafeName": "workspaceSubmissionState", + "safeName": "workspaceSubmissionState" + }, + "snakeCase": { + "unsafeName": "workspace_submission_state", + "safeName": "workspace_submission_state" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_STATE", + "safeName": "WORKSPACE_SUBMISSION_STATE" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionState", + "safeName": "WorkspaceSubmissionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionStatus" + } + } + ] + }, + "type_submission:WorkspaceSubmissionStatus": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionStatus", + "camelCase": { + "unsafeName": "workspaceSubmissionStatus", + "safeName": "workspaceSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "workspace_submission_status", + "safeName": "workspace_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_STATUS", + "safeName": "WORKSPACE_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionStatus", + "safeName": "WorkspaceSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "ran": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRunDetails", + "discriminantValue": { + "name": { + "originalName": "ran", + "camelCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "snakeCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "screamingSnakeCase": { + "unsafeName": "RAN", + "safeName": "RAN" + }, + "pascalCase": { + "unsafeName": "Ran", + "safeName": "Ran" + } + }, + "wireValue": "ran" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "wireValue": "exceptionV2" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "traced": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRunDetails", + "discriminantValue": { + "name": { + "originalName": "traced", + "camelCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "snakeCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED", + "safeName": "TRACED" + }, + "pascalCase": { + "unsafeName": "Traced", + "safeName": "Traced" + } + }, + "wireValue": "traced" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "wireValue": "exceptionV2" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_submission:TestSubmissionState": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestSubmissionState", + "camelCase": { + "unsafeName": "testSubmissionState", + "safeName": "testSubmissionState" + }, + "snakeCase": { + "unsafeName": "test_submission_state", + "safeName": "test_submission_state" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_STATE", + "safeName": "TEST_SUBMISSION_STATE" + }, + "pascalCase": { + "unsafeName": "TestSubmissionState", + "safeName": "TestSubmissionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "defaultTestCases", + "camelCase": { + "unsafeName": "defaultTestCases", + "safeName": "defaultTestCases" + }, + "snakeCase": { + "unsafeName": "default_test_cases", + "safeName": "default_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT_TEST_CASES", + "safeName": "DEFAULT_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "DefaultTestCases", + "safeName": "DefaultTestCases" + } + }, + "wireValue": "defaultTestCases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCase" + } + } + }, + { + "name": { + "name": { + "originalName": "customTestCases", + "camelCase": { + "unsafeName": "customTestCases", + "safeName": "customTestCases" + }, + "snakeCase": { + "unsafeName": "custom_test_cases", + "safeName": "custom_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASES", + "safeName": "CUSTOM_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "CustomTestCases", + "safeName": "CustomTestCases" + } + }, + "wireValue": "customTestCases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCase" + } + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestSubmissionStatus" + } + } + ] + }, + "type_submission:TestSubmissionStatus": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestSubmissionStatus", + "camelCase": { + "unsafeName": "testSubmissionStatus", + "safeName": "testSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "test_submission_status", + "safeName": "test_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_STATUS", + "safeName": "TEST_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "TestSubmissionStatus", + "safeName": "TestSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "testCaseIdToState": { + "type": "singleProperty", + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_submission:SubmissionStatusForTestCase" + } + }, + "discriminantValue": { + "name": { + "originalName": "testCaseIdToState", + "camelCase": { + "unsafeName": "testCaseIDToState", + "safeName": "testCaseIDToState" + }, + "snakeCase": { + "unsafeName": "test_case_id_to_state", + "safeName": "test_case_id_to_state" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID_TO_STATE", + "safeName": "TEST_CASE_ID_TO_STATE" + }, + "pascalCase": { + "unsafeName": "TestCaseIDToState", + "safeName": "TestCaseIDToState" + } + }, + "wireValue": "testCaseIdToState" + }, + "properties": null + } + } + }, + "type_submission:SubmissionStatusForTestCase": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionStatusForTestCase", + "camelCase": { + "unsafeName": "submissionStatusForTestCase", + "safeName": "submissionStatusForTestCase" + }, + "snakeCase": { + "unsafeName": "submission_status_for_test_case", + "safeName": "submission_status_for_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_STATUS_FOR_TEST_CASE", + "safeName": "SUBMISSION_STATUS_FOR_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "SubmissionStatusForTestCase", + "safeName": "SubmissionStatusForTestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "graded": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestCaseResultWithStdout", + "discriminantValue": { + "name": { + "originalName": "graded", + "camelCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "snakeCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED", + "safeName": "GRADED" + }, + "pascalCase": { + "unsafeName": "Graded", + "safeName": "Graded" + } + }, + "wireValue": "graded" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResult" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "gradedV2": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + }, + "discriminantValue": { + "name": { + "originalName": "gradedV2", + "camelCase": { + "unsafeName": "gradedV2", + "safeName": "gradedV2" + }, + "snakeCase": { + "unsafeName": "graded_v2", + "safeName": "graded_v2" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_V2", + "safeName": "GRADED_V2" + }, + "pascalCase": { + "unsafeName": "GradedV2", + "safeName": "GradedV2" + } + }, + "wireValue": "gradedV2" + }, + "properties": null + }, + "traced": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TracedTestCase", + "discriminantValue": { + "name": { + "originalName": "traced", + "camelCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "snakeCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED", + "safeName": "TRACED" + }, + "pascalCase": { + "unsafeName": "Traced", + "safeName": "Traced" + } + }, + "wireValue": "traced" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + } + }, + "type_submission:TracedTestCase": { + "type": "object", + "declaration": { + "name": { + "originalName": "TracedTestCase", + "camelCase": { + "unsafeName": "tracedTestCase", + "safeName": "tracedTestCase" + }, + "snakeCase": { + "unsafeName": "traced_test_case", + "safeName": "traced_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_TEST_CASE", + "safeName": "TRACED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TracedTestCase", + "safeName": "TracedTestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:TraceResponsesPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponsesPage", + "camelCase": { + "unsafeName": "traceResponsesPage", + "safeName": "traceResponsesPage" + }, + "snakeCase": { + "unsafeName": "trace_responses_page", + "safeName": "trace_responses_page" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_PAGE", + "safeName": "TRACE_RESPONSES_PAGE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesPage", + "safeName": "TraceResponsesPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponse" + } + } + } + ] + }, + "type_submission:TraceResponsesPageV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponsesPageV2", + "camelCase": { + "unsafeName": "traceResponsesPageV2", + "safeName": "traceResponsesPageV2" + }, + "snakeCase": { + "unsafeName": "trace_responses_page_v2", + "safeName": "trace_responses_page_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_PAGE_V2", + "safeName": "TRACE_RESPONSES_PAGE_V2" + }, + "pascalCase": { + "unsafeName": "TraceResponsesPageV2", + "safeName": "TraceResponsesPageV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponseV2" + } + } + } + ] + }, + "type_submission:GetTraceResponsesPageRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetTraceResponsesPageRequest", + "camelCase": { + "unsafeName": "getTraceResponsesPageRequest", + "safeName": "getTraceResponsesPageRequest" + }, + "snakeCase": { + "unsafeName": "get_trace_responses_page_request", + "safeName": "get_trace_responses_page_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TRACE_RESPONSES_PAGE_REQUEST", + "safeName": "GET_TRACE_RESPONSES_PAGE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTraceResponsesPageRequest", + "safeName": "GetTraceResponsesPageRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "type_submission:WorkspaceStarterFilesResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceStarterFilesResponse", + "camelCase": { + "unsafeName": "workspaceStarterFilesResponse", + "safeName": "workspaceStarterFilesResponse" + }, + "snakeCase": { + "unsafeName": "workspace_starter_files_response", + "safeName": "workspace_starter_files_response" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_STARTER_FILES_RESPONSE", + "safeName": "WORKSPACE_STARTER_FILES_RESPONSE" + }, + "pascalCase": { + "unsafeName": "WorkspaceStarterFilesResponse", + "safeName": "WorkspaceStarterFilesResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_submission:WorkspaceFiles" + } + } + } + ] + }, + "type_submission:WorkspaceStarterFilesResponseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceStarterFilesResponseV2", + "camelCase": { + "unsafeName": "workspaceStarterFilesResponseV2", + "safeName": "workspaceStarterFilesResponseV2" + }, + "snakeCase": { + "unsafeName": "workspace_starter_files_response_v2", + "safeName": "workspace_starter_files_response_v2" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_STARTER_FILES_RESPONSE_V2", + "safeName": "WORKSPACE_STARTER_FILES_RESPONSE_V2" + }, + "pascalCase": { + "unsafeName": "WorkspaceStarterFilesResponseV2", + "safeName": "WorkspaceStarterFilesResponseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filesByLanguage", + "camelCase": { + "unsafeName": "filesByLanguage", + "safeName": "filesByLanguage" + }, + "snakeCase": { + "unsafeName": "files_by_language", + "safeName": "files_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "FILES_BY_LANGUAGE", + "safeName": "FILES_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "FilesByLanguage", + "safeName": "FilesByLanguage" + } + }, + "wireValue": "filesByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + } + ] + }, + "type_submission:WorkspaceFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceFiles", + "camelCase": { + "unsafeName": "workspaceFiles", + "safeName": "workspaceFiles" + }, + "snakeCase": { + "unsafeName": "workspace_files", + "safeName": "workspace_files" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_FILES", + "safeName": "WORKSPACE_FILES" + }, + "pascalCase": { + "unsafeName": "WorkspaceFiles", + "safeName": "WorkspaceFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "mainFile", + "camelCase": { + "unsafeName": "mainFile", + "safeName": "mainFile" + }, + "snakeCase": { + "unsafeName": "main_file", + "safeName": "main_file" + }, + "screamingSnakeCase": { + "unsafeName": "MAIN_FILE", + "safeName": "MAIN_FILE" + }, + "pascalCase": { + "unsafeName": "MainFile", + "safeName": "MainFile" + } + }, + "wireValue": "mainFile" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:FileInfo" + } + }, + { + "name": { + "name": { + "originalName": "readOnlyFiles", + "camelCase": { + "unsafeName": "readOnlyFiles", + "safeName": "readOnlyFiles" + }, + "snakeCase": { + "unsafeName": "read_only_files", + "safeName": "read_only_files" + }, + "screamingSnakeCase": { + "unsafeName": "READ_ONLY_FILES", + "safeName": "READ_ONLY_FILES" + }, + "pascalCase": { + "unsafeName": "ReadOnlyFiles", + "safeName": "ReadOnlyFiles" + } + }, + "wireValue": "readOnlyFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:FileInfo" + } + } + } + ] + }, + "type_submission:ExecutionSessionState": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExecutionSessionState", + "camelCase": { + "unsafeName": "executionSessionState", + "safeName": "executionSessionState" + }, + "snakeCase": { + "unsafeName": "execution_session_state", + "safeName": "execution_session_state" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_STATE", + "safeName": "EXECUTION_SESSION_STATE" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionState", + "safeName": "ExecutionSessionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "lastTimeContacted", + "camelCase": { + "unsafeName": "lastTimeContacted", + "safeName": "lastTimeContacted" + }, + "snakeCase": { + "unsafeName": "last_time_contacted", + "safeName": "last_time_contacted" + }, + "screamingSnakeCase": { + "unsafeName": "LAST_TIME_CONTACTED", + "safeName": "LAST_TIME_CONTACTED" + }, + "pascalCase": { + "unsafeName": "LastTimeContacted", + "safeName": "LastTimeContacted" + } + }, + "wireValue": "lastTimeContacted" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "isWarmInstance", + "camelCase": { + "unsafeName": "isWarmInstance", + "safeName": "isWarmInstance" + }, + "snakeCase": { + "unsafeName": "is_warm_instance", + "safeName": "is_warm_instance" + }, + "screamingSnakeCase": { + "unsafeName": "IS_WARM_INSTANCE", + "safeName": "IS_WARM_INSTANCE" + }, + "pascalCase": { + "unsafeName": "IsWarmInstance", + "safeName": "IsWarmInstance" + } + }, + "wireValue": "isWarmInstance" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "awsTaskId", + "camelCase": { + "unsafeName": "awsTaskID", + "safeName": "awsTaskID" + }, + "snakeCase": { + "unsafeName": "aws_task_id", + "safeName": "aws_task_id" + }, + "screamingSnakeCase": { + "unsafeName": "AWS_TASK_ID", + "safeName": "AWS_TASK_ID" + }, + "pascalCase": { + "unsafeName": "AwsTaskID", + "safeName": "AwsTaskID" + } + }, + "wireValue": "awsTaskId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExecutionSessionStatus" + } + } + ] + }, + "type_submission:GetExecutionSessionStateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetExecutionSessionStateResponse", + "camelCase": { + "unsafeName": "getExecutionSessionStateResponse", + "safeName": "getExecutionSessionStateResponse" + }, + "snakeCase": { + "unsafeName": "get_execution_session_state_response", + "safeName": "get_execution_session_state_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXECUTION_SESSION_STATE_RESPONSE", + "safeName": "GET_EXECUTION_SESSION_STATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetExecutionSessionStateResponse", + "safeName": "GetExecutionSessionStateResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "states", + "camelCase": { + "unsafeName": "states", + "safeName": "states" + }, + "snakeCase": { + "unsafeName": "states", + "safeName": "states" + }, + "screamingSnakeCase": { + "unsafeName": "STATES", + "safeName": "STATES" + }, + "pascalCase": { + "unsafeName": "States", + "safeName": "States" + } + }, + "wireValue": "states" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_submission:ExecutionSessionState" + } + } + }, + { + "name": { + "name": { + "originalName": "numWarmingInstances", + "camelCase": { + "unsafeName": "numWarmingInstances", + "safeName": "numWarmingInstances" + }, + "snakeCase": { + "unsafeName": "num_warming_instances", + "safeName": "num_warming_instances" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_WARMING_INSTANCES", + "safeName": "NUM_WARMING_INSTANCES" + }, + "pascalCase": { + "unsafeName": "NumWarmingInstances", + "safeName": "NumWarmingInstances" + } + }, + "wireValue": "numWarmingInstances" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "warmingSessionIds", + "camelCase": { + "unsafeName": "warmingSessionIDs", + "safeName": "warmingSessionIDs" + }, + "snakeCase": { + "unsafeName": "warming_session_ids", + "safeName": "warming_session_ids" + }, + "screamingSnakeCase": { + "unsafeName": "WARMING_SESSION_IDS", + "safeName": "WARMING_SESSION_IDS" + }, + "pascalCase": { + "unsafeName": "WarmingSessionIDs", + "safeName": "WarmingSessionIDs" + } + }, + "wireValue": "warmingSessionIds" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:GetSubmissionStateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetSubmissionStateResponse", + "camelCase": { + "unsafeName": "getSubmissionStateResponse", + "safeName": "getSubmissionStateResponse" + }, + "snakeCase": { + "unsafeName": "get_submission_state_response", + "safeName": "get_submission_state_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_SUBMISSION_STATE_RESPONSE", + "safeName": "GET_SUBMISSION_STATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetSubmissionStateResponse", + "safeName": "GetSubmissionStateResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "timeSubmitted", + "camelCase": { + "unsafeName": "timeSubmitted", + "safeName": "timeSubmitted" + }, + "snakeCase": { + "unsafeName": "time_submitted", + "safeName": "time_submitted" + }, + "screamingSnakeCase": { + "unsafeName": "TIME_SUBMITTED", + "safeName": "TIME_SUBMITTED" + }, + "pascalCase": { + "unsafeName": "TimeSubmitted", + "safeName": "TimeSubmitted" + } + }, + "wireValue": "timeSubmitted" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + { + "name": { + "name": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + }, + "wireValue": "submission" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionTypeState", + "camelCase": { + "unsafeName": "submissionTypeState", + "safeName": "submissionTypeState" + }, + "snakeCase": { + "unsafeName": "submission_type_state", + "safeName": "submission_type_state" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_TYPE_STATE", + "safeName": "SUBMISSION_TYPE_STATE" + }, + "pascalCase": { + "unsafeName": "SubmissionTypeState", + "safeName": "SubmissionTypeState" + } + }, + "wireValue": "submissionTypeState" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionTypeState" + } + } + ] + }, + "type_v2/problem:TestCaseTemplateId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseTemplateId", + "camelCase": { + "unsafeName": "testCaseTemplateID", + "safeName": "testCaseTemplateID" + }, + "snakeCase": { + "unsafeName": "test_case_template_id", + "safeName": "test_case_template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE_ID", + "safeName": "TEST_CASE_TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplateID", + "safeName": "TestCaseTemplateID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/problem:TestCaseId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/problem:ParameterId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ParameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/problem:ProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemInfoV2", + "camelCase": { + "unsafeName": "problemInfoV2", + "safeName": "problemInfoV2" + }, + "snakeCase": { + "unsafeName": "problem_info_v2", + "safeName": "problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO_V2", + "safeName": "PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "ProblemInfoV2", + "safeName": "ProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "generatedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "wireValue": "generatedFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:GeneratedFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:LightweightProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "LightweightProblemInfoV2", + "camelCase": { + "unsafeName": "lightweightProblemInfoV2", + "safeName": "lightweightProblemInfoV2" + }, + "snakeCase": { + "unsafeName": "lightweight_problem_info_v2", + "safeName": "lightweight_problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_PROBLEM_INFO_V2", + "safeName": "LIGHTWEIGHT_PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "LightweightProblemInfoV2", + "safeName": "LightweightProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "variableTypes", + "camelCase": { + "unsafeName": "variableTypes", + "safeName": "variableTypes" + }, + "snakeCase": { + "unsafeName": "variable_types", + "safeName": "variable_types" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPES", + "safeName": "VARIABLE_TYPES" + }, + "pascalCase": { + "unsafeName": "VariableTypes", + "safeName": "VariableTypes" + } + }, + "wireValue": "variableTypes" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/problem:CreateProblemRequestV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateProblemRequestV2", + "camelCase": { + "unsafeName": "createProblemRequestV2", + "safeName": "createProblemRequestV2" + }, + "snakeCase": { + "unsafeName": "create_problem_request_v2", + "safeName": "create_problem_request_v2" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_REQUEST_V2", + "safeName": "CREATE_PROBLEM_REQUEST_V2" + }, + "pascalCase": { + "unsafeName": "CreateProblemRequestV2", + "safeName": "CreateProblemRequestV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:TestCaseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseV2", + "camelCase": { + "unsafeName": "testCaseV2", + "safeName": "testCaseV2" + }, + "snakeCase": { + "unsafeName": "test_case_v2", + "safeName": "test_case_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_V2", + "safeName": "TEST_CASE_V2" + }, + "pascalCase": { + "unsafeName": "TestCaseV2", + "safeName": "TestCaseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseMetadata" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationReference" + } + }, + { + "name": { + "name": { + "originalName": "arguments", + "camelCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "snakeCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "screamingSnakeCase": { + "unsafeName": "ARGUMENTS", + "safeName": "ARGUMENTS" + }, + "pascalCase": { + "unsafeName": "Arguments", + "safeName": "Arguments" + } + }, + "wireValue": "arguments" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + }, + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expects", + "camelCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "snakeCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTS", + "safeName": "EXPECTS" + }, + "pascalCase": { + "unsafeName": "Expects", + "safeName": "Expects" + } + }, + "wireValue": "expects" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseExpects" + } + } + } + ] + }, + "type_v2/problem:TestCaseExpects": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseExpects", + "camelCase": { + "unsafeName": "testCaseExpects", + "safeName": "testCaseExpects" + }, + "snakeCase": { + "unsafeName": "test_case_expects", + "safeName": "test_case_expects" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_EXPECTS", + "safeName": "TEST_CASE_EXPECTS" + }, + "pascalCase": { + "unsafeName": "TestCaseExpects", + "safeName": "TestCaseExpects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedStdout", + "camelCase": { + "unsafeName": "expectedStdout", + "safeName": "expectedStdout" + }, + "snakeCase": { + "unsafeName": "expected_stdout", + "safeName": "expected_stdout" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_STDOUT", + "safeName": "EXPECTED_STDOUT" + }, + "pascalCase": { + "unsafeName": "ExpectedStdout", + "safeName": "ExpectedStdout" + } + }, + "wireValue": "expectedStdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/problem:TestCaseImplementationReference": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationReference", + "camelCase": { + "unsafeName": "testCaseImplementationReference", + "safeName": "testCaseImplementationReference" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_reference", + "safeName": "test_case_implementation_reference" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_REFERENCE", + "safeName": "TEST_CASE_IMPLEMENTATION_REFERENCE" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationReference", + "safeName": "TestCaseImplementationReference" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "templateId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplateId" + }, + "discriminantValue": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "properties": null + }, + "implementation": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:TestCaseImplementation", + "discriminantValue": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "function", + "camelCase": { + "unsafeName": "function", + "safeName": "function" + }, + "snakeCase": { + "unsafeName": "function", + "safeName": "function" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION", + "safeName": "FUNCTION" + }, + "pascalCase": { + "unsafeName": "Function", + "safeName": "Function" + } + }, + "wireValue": "function" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseFunction" + } + } + ] + } + } + }, + "type_v2/problem:BasicTestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + } + } + ] + }, + "type_v2/problem:TestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseTemplate", + "camelCase": { + "unsafeName": "testCaseTemplate", + "safeName": "testCaseTemplate" + }, + "snakeCase": { + "unsafeName": "test_case_template", + "safeName": "test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE", + "safeName": "TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplate", + "safeName": "TestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementation" + } + } + ] + }, + "type_v2/problem:TestCaseImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementation", + "camelCase": { + "unsafeName": "testCaseImplementation", + "safeName": "testCaseImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_implementation", + "safeName": "test_case_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION", + "safeName": "TEST_CASE_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementation", + "safeName": "TestCaseImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "function", + "camelCase": { + "unsafeName": "function", + "safeName": "function" + }, + "snakeCase": { + "unsafeName": "function", + "safeName": "function" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION", + "safeName": "FUNCTION" + }, + "pascalCase": { + "unsafeName": "Function", + "safeName": "Function" + } + }, + "wireValue": "function" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseFunction" + } + } + ] + }, + "type_v2/problem:TestCaseFunction": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseFunction", + "camelCase": { + "unsafeName": "testCaseFunction", + "safeName": "testCaseFunction" + }, + "snakeCase": { + "unsafeName": "test_case_function", + "safeName": "test_case_function" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_FUNCTION", + "safeName": "TEST_CASE_FUNCTION" + }, + "pascalCase": { + "unsafeName": "TestCaseFunction", + "safeName": "TestCaseFunction" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "withActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:TestCaseWithActualResultImplementation", + "discriminantValue": { + "name": { + "originalName": "withActualResult", + "camelCase": { + "unsafeName": "withActualResult", + "safeName": "withActualResult" + }, + "snakeCase": { + "unsafeName": "with_actual_result", + "safeName": "with_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_ACTUAL_RESULT", + "safeName": "WITH_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "WithActualResult", + "safeName": "WithActualResult" + } + }, + "wireValue": "withActualResult" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "getActualResult", + "camelCase": { + "unsafeName": "getActualResult", + "safeName": "getActualResult" + }, + "snakeCase": { + "unsafeName": "get_actual_result", + "safeName": "get_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACTUAL_RESULT", + "safeName": "GET_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "GetActualResult", + "safeName": "GetActualResult" + } + }, + "wireValue": "getActualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionDefinition" + } + }, + { + "name": { + "name": { + "originalName": "assertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "wireValue": "assertCorrectnessCheck" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:AssertCorrectnessCheck" + } + } + ] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionDefinition", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + } + } + }, + "type_v2/problem:TestCaseWithActualResultImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseWithActualResultImplementation", + "camelCase": { + "unsafeName": "testCaseWithActualResultImplementation", + "safeName": "testCaseWithActualResultImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_with_actual_result_implementation", + "safeName": "test_case_with_actual_result_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION", + "safeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseWithActualResultImplementation", + "safeName": "TestCaseWithActualResultImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "getActualResult", + "camelCase": { + "unsafeName": "getActualResult", + "safeName": "getActualResult" + }, + "snakeCase": { + "unsafeName": "get_actual_result", + "safeName": "get_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACTUAL_RESULT", + "safeName": "GET_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "GetActualResult", + "safeName": "GetActualResult" + } + }, + "wireValue": "getActualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionDefinition" + } + }, + { + "name": { + "name": { + "originalName": "assertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "wireValue": "assertCorrectnessCheck" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:AssertCorrectnessCheck" + } + } + ] + }, + "type_v2/problem:VoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinition", + "camelCase": { + "unsafeName": "voidFunctionDefinition", + "safeName": "voidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "void_function_definition", + "safeName": "void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION", + "safeName": "VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinition", + "safeName": "VoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/problem:Parameter": { + "type": "object", + "declaration": { + "name": { + "originalName": "Parameter", + "camelCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "snakeCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER", + "safeName": "PARAMETER" + }, + "pascalCase": { + "unsafeName": "Parameter", + "safeName": "Parameter" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "wireValue": "parameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "variableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "wireValue": "variableType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/problem:NonVoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionDefinition", + "camelCase": { + "unsafeName": "nonVoidFunctionDefinition", + "safeName": "nonVoidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "non_void_function_definition", + "safeName": "non_void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_DEFINITION", + "safeName": "NON_VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionDefinition", + "safeName": "NonVoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/problem:VoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignature", + "camelCase": { + "unsafeName": "voidFunctionSignature", + "safeName": "voidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "void_function_signature", + "safeName": "void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE", + "safeName": "VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignature", + "safeName": "VoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + } + ] + }, + "type_v2/problem:NonVoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionSignature", + "camelCase": { + "unsafeName": "nonVoidFunctionSignature", + "safeName": "nonVoidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "non_void_function_signature", + "safeName": "non_void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_SIGNATURE", + "safeName": "NON_VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionSignature", + "safeName": "NonVoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "returnType", + "camelCase": { + "unsafeName": "returnType", + "safeName": "returnType" + }, + "snakeCase": { + "unsafeName": "return_type", + "safeName": "return_type" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_TYPE", + "safeName": "RETURN_TYPE" + }, + "pascalCase": { + "unsafeName": "ReturnType", + "safeName": "ReturnType" + } + }, + "wireValue": "returnType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/problem:VoidFunctionSignatureThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignatureThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionSignatureThatTakesActualResult", + "safeName": "voidFunctionSignatureThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_signature_that_takes_actual_result", + "safeName": "void_function_signature_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignatureThatTakesActualResult", + "safeName": "VoidFunctionSignatureThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "actualResultType", + "camelCase": { + "unsafeName": "actualResultType", + "safeName": "actualResultType" + }, + "snakeCase": { + "unsafeName": "actual_result_type", + "safeName": "actual_result_type" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT_TYPE", + "safeName": "ACTUAL_RESULT_TYPE" + }, + "pascalCase": { + "unsafeName": "ActualResultType", + "safeName": "ActualResultType" + } + }, + "wireValue": "actualResultType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/problem:AssertCorrectnessCheck": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "AssertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "deepEquality": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:DeepEqualityCorrectnessCheck", + "discriminantValue": { + "name": { + "originalName": "deepEquality", + "camelCase": { + "unsafeName": "deepEquality", + "safeName": "deepEquality" + }, + "snakeCase": { + "unsafeName": "deep_equality", + "safeName": "deep_equality" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY", + "safeName": "DEEP_EQUALITY" + }, + "pascalCase": { + "unsafeName": "DeepEquality", + "safeName": "DeepEquality" + } + }, + "wireValue": "deepEquality" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + } + } + ] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionDefinitionThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "additionalParameters", + "camelCase": { + "unsafeName": "additionalParameters", + "safeName": "additionalParameters" + }, + "snakeCase": { + "unsafeName": "additional_parameters", + "safeName": "additional_parameters" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_PARAMETERS", + "safeName": "ADDITIONAL_PARAMETERS" + }, + "pascalCase": { + "unsafeName": "AdditionalParameters", + "safeName": "AdditionalParameters" + } + }, + "wireValue": "additionalParameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + } + } + }, + "type_v2/problem:DeepEqualityCorrectnessCheck": { + "type": "object", + "declaration": { + "name": { + "originalName": "DeepEqualityCorrectnessCheck", + "camelCase": { + "unsafeName": "deepEqualityCorrectnessCheck", + "safeName": "deepEqualityCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "deep_equality_correctness_check", + "safeName": "deep_equality_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY_CORRECTNESS_CHECK", + "safeName": "DEEP_EQUALITY_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "DeepEqualityCorrectnessCheck", + "safeName": "DeepEqualityCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + } + } + ] + }, + "type_v2/problem:VoidFunctionDefinitionThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinitionThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionDefinitionThatTakesActualResult", + "safeName": "voidFunctionDefinitionThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_definition_that_takes_actual_result", + "safeName": "void_function_definition_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinitionThatTakesActualResult", + "safeName": "VoidFunctionDefinitionThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "additionalParameters", + "camelCase": { + "unsafeName": "additionalParameters", + "safeName": "additionalParameters" + }, + "snakeCase": { + "unsafeName": "additional_parameters", + "safeName": "additional_parameters" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_PARAMETERS", + "safeName": "ADDITIONAL_PARAMETERS" + }, + "pascalCase": { + "unsafeName": "AdditionalParameters", + "safeName": "AdditionalParameters" + } + }, + "wireValue": "additionalParameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/problem:TestCaseImplementationDescription": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescription", + "camelCase": { + "unsafeName": "testCaseImplementationDescription", + "safeName": "testCaseImplementationDescription" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description", + "safeName": "test_case_implementation_description" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescription", + "safeName": "TestCaseImplementationDescription" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "boards", + "camelCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "snakeCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "screamingSnakeCase": { + "unsafeName": "BOARDS", + "safeName": "BOARDS" + }, + "pascalCase": { + "unsafeName": "Boards", + "safeName": "Boards" + } + }, + "wireValue": "boards" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationDescriptionBoard" + } + } + } + ] + }, + "type_v2/problem:TestCaseImplementationDescriptionBoard": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescriptionBoard", + "camelCase": { + "unsafeName": "testCaseImplementationDescriptionBoard", + "safeName": "testCaseImplementationDescriptionBoard" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description_board", + "safeName": "test_case_implementation_description_board" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescriptionBoard", + "safeName": "TestCaseImplementationDescriptionBoard" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": null + }, + "paramId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + }, + "discriminantValue": { + "name": { + "originalName": "paramId", + "camelCase": { + "unsafeName": "paramID", + "safeName": "paramID" + }, + "snakeCase": { + "unsafeName": "param_id", + "safeName": "param_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM_ID", + "safeName": "PARAM_ID" + }, + "pascalCase": { + "unsafeName": "ParamID", + "safeName": "ParamID" + } + }, + "wireValue": "paramId" + }, + "properties": null + } + } + }, + "type_v2/problem:TestCaseMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseMetadata", + "camelCase": { + "unsafeName": "testCaseMetadata", + "safeName": "testCaseMetadata" + }, + "snakeCase": { + "unsafeName": "test_case_metadata", + "safeName": "test_case_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_METADATA", + "safeName": "TEST_CASE_METADATA" + }, + "pascalCase": { + "unsafeName": "TestCaseMetadata", + "safeName": "TestCaseMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "hidden", + "camelCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "snakeCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "screamingSnakeCase": { + "unsafeName": "HIDDEN", + "safeName": "HIDDEN" + }, + "pascalCase": { + "unsafeName": "Hidden", + "safeName": "Hidden" + } + }, + "wireValue": "hidden" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:FunctionImplementationForMultipleLanguages": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementationForMultipleLanguages", + "camelCase": { + "unsafeName": "functionImplementationForMultipleLanguages", + "safeName": "functionImplementationForMultipleLanguages" + }, + "snakeCase": { + "unsafeName": "function_implementation_for_multiple_languages", + "safeName": "function_implementation_for_multiple_languages" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES", + "safeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "FunctionImplementationForMultipleLanguages", + "safeName": "FunctionImplementationForMultipleLanguages" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "codeByLanguage", + "camelCase": { + "unsafeName": "codeByLanguage", + "safeName": "codeByLanguage" + }, + "snakeCase": { + "unsafeName": "code_by_language", + "safeName": "code_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_BY_LANGUAGE", + "safeName": "CODE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "CodeByLanguage", + "safeName": "CodeByLanguage" + } + }, + "wireValue": "codeByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementation" + } + } + } + ] + }, + "type_v2/problem:FunctionImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementation", + "camelCase": { + "unsafeName": "functionImplementation", + "safeName": "functionImplementation" + }, + "snakeCase": { + "unsafeName": "function_implementation", + "safeName": "function_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION", + "safeName": "FUNCTION_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "FunctionImplementation", + "safeName": "FunctionImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "impl", + "camelCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "snakeCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "screamingSnakeCase": { + "unsafeName": "IMPL", + "safeName": "IMPL" + }, + "pascalCase": { + "unsafeName": "Impl", + "safeName": "Impl" + } + }, + "wireValue": "impl" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "imports", + "camelCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "snakeCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTS", + "safeName": "IMPORTS" + }, + "pascalCase": { + "unsafeName": "Imports", + "safeName": "Imports" + } + }, + "wireValue": "imports" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/problem:GeneratedFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "GeneratedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "generatedTestCaseFiles", + "camelCase": { + "unsafeName": "generatedTestCaseFiles", + "safeName": "generatedTestCaseFiles" + }, + "snakeCase": { + "unsafeName": "generated_test_case_files", + "safeName": "generated_test_case_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEST_CASE_FILES", + "safeName": "GENERATED_TEST_CASE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTestCaseFiles", + "safeName": "GeneratedTestCaseFiles" + } + }, + "wireValue": "generatedTestCaseFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "generatedTemplateFiles", + "camelCase": { + "unsafeName": "generatedTemplateFiles", + "safeName": "generatedTemplateFiles" + }, + "snakeCase": { + "unsafeName": "generated_template_files", + "safeName": "generated_template_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEMPLATE_FILES", + "safeName": "GENERATED_TEMPLATE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTemplateFiles", + "safeName": "GeneratedTemplateFiles" + } + }, + "wireValue": "generatedTemplateFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "other", + "camelCase": { + "unsafeName": "other", + "safeName": "other" + }, + "snakeCase": { + "unsafeName": "other", + "safeName": "other" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER", + "safeName": "OTHER" + }, + "pascalCase": { + "unsafeName": "Other", + "safeName": "Other" + } + }, + "wireValue": "other" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + } + ] + }, + "type_v2/problem:CustomFiles": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CustomFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "basic": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:BasicCustomFiles", + "discriminantValue": { + "name": { + "originalName": "basic", + "camelCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "snakeCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC", + "safeName": "BASIC" + }, + "pascalCase": { + "unsafeName": "Basic", + "safeName": "Basic" + } + }, + "wireValue": "basic" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "additionalFiles", + "camelCase": { + "unsafeName": "additionalFiles", + "safeName": "additionalFiles" + }, + "snakeCase": { + "unsafeName": "additional_files", + "safeName": "additional_files" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_FILES", + "safeName": "ADDITIONAL_FILES" + }, + "pascalCase": { + "unsafeName": "AdditionalFiles", + "safeName": "AdditionalFiles" + } + }, + "wireValue": "additionalFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "basicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "wireValue": "basicTestCaseTemplate" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:BasicTestCaseTemplate" + } + } + ] + }, + "custom": { + "type": "singleProperty", + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + }, + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": null + } + } + }, + "type_v2/problem:BasicCustomFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicCustomFiles", + "camelCase": { + "unsafeName": "basicCustomFiles", + "safeName": "basicCustomFiles" + }, + "snakeCase": { + "unsafeName": "basic_custom_files", + "safeName": "basic_custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_CUSTOM_FILES", + "safeName": "BASIC_CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "BasicCustomFiles", + "safeName": "BasicCustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "additionalFiles", + "camelCase": { + "unsafeName": "additionalFiles", + "safeName": "additionalFiles" + }, + "snakeCase": { + "unsafeName": "additional_files", + "safeName": "additional_files" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_FILES", + "safeName": "ADDITIONAL_FILES" + }, + "pascalCase": { + "unsafeName": "AdditionalFiles", + "safeName": "AdditionalFiles" + } + }, + "wireValue": "additionalFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "basicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "wireValue": "basicTestCaseTemplate" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:BasicTestCaseTemplate" + } + } + ] + }, + "type_v2/problem:Files": { + "type": "object", + "declaration": { + "name": { + "originalName": "Files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/problem:FileInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "FileInfoV2", + "camelCase": { + "unsafeName": "fileInfoV2", + "safeName": "fileInfoV2" + }, + "snakeCase": { + "unsafeName": "file_info_v2", + "safeName": "file_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO_V2", + "safeName": "FILE_INFO_V2" + }, + "pascalCase": { + "unsafeName": "FileInfoV2", + "safeName": "FileInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "editable", + "camelCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "snakeCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "screamingSnakeCase": { + "unsafeName": "EDITABLE", + "safeName": "EDITABLE" + }, + "pascalCase": { + "unsafeName": "Editable", + "safeName": "Editable" + } + }, + "wireValue": "editable" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:DefaultProvidedFile": { + "type": "object", + "declaration": { + "name": { + "originalName": "DefaultProvidedFile", + "camelCase": { + "unsafeName": "defaultProvidedFile", + "safeName": "defaultProvidedFile" + }, + "snakeCase": { + "unsafeName": "default_provided_file", + "safeName": "default_provided_file" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT_PROVIDED_FILE", + "safeName": "DEFAULT_PROVIDED_FILE" + }, + "pascalCase": { + "unsafeName": "DefaultProvidedFile", + "safeName": "DefaultProvidedFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FileInfoV2" + } + }, + { + "name": { + "name": { + "originalName": "relatedTypes", + "camelCase": { + "unsafeName": "relatedTypes", + "safeName": "relatedTypes" + }, + "snakeCase": { + "unsafeName": "related_types", + "safeName": "related_types" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_TYPES", + "safeName": "RELATED_TYPES" + }, + "pascalCase": { + "unsafeName": "RelatedTypes", + "safeName": "RelatedTypes" + } + }, + "wireValue": "relatedTypes" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/problem:FunctionSignature": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FunctionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "void": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "void", + "camelCase": { + "unsafeName": "void", + "safeName": "void" + }, + "snakeCase": { + "unsafeName": "void", + "safeName": "void" + }, + "screamingSnakeCase": { + "unsafeName": "VOID", + "safeName": "VOID" + }, + "pascalCase": { + "unsafeName": "Void", + "safeName": "Void" + } + }, + "wireValue": "void" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + } + ] + }, + "nonVoid": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:NonVoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "nonVoid", + "camelCase": { + "unsafeName": "nonVoid", + "safeName": "nonVoid" + }, + "snakeCase": { + "unsafeName": "non_void", + "safeName": "non_void" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID", + "safeName": "NON_VOID" + }, + "pascalCase": { + "unsafeName": "NonVoid", + "safeName": "NonVoid" + } + }, + "wireValue": "nonVoid" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "returnType", + "camelCase": { + "unsafeName": "returnType", + "safeName": "returnType" + }, + "snakeCase": { + "unsafeName": "return_type", + "safeName": "return_type" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_TYPE", + "safeName": "RETURN_TYPE" + }, + "pascalCase": { + "unsafeName": "ReturnType", + "safeName": "ReturnType" + } + }, + "wireValue": "returnType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "voidThatTakesActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionSignatureThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "voidThatTakesActualResult", + "camelCase": { + "unsafeName": "voidThatTakesActualResult", + "safeName": "voidThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_that_takes_actual_result", + "safeName": "void_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidThatTakesActualResult", + "safeName": "VoidThatTakesActualResult" + } + }, + "wireValue": "voidThatTakesActualResult" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "actualResultType", + "camelCase": { + "unsafeName": "actualResultType", + "safeName": "actualResultType" + }, + "snakeCase": { + "unsafeName": "actual_result_type", + "safeName": "actual_result_type" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT_TYPE", + "safeName": "ACTUAL_RESULT_TYPE" + }, + "pascalCase": { + "unsafeName": "ActualResultType", + "safeName": "ActualResultType" + } + }, + "wireValue": "actualResultType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + } + } + }, + "type_v2/problem:GetFunctionSignatureRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureRequest", + "camelCase": { + "unsafeName": "getFunctionSignatureRequest", + "safeName": "getFunctionSignatureRequest" + }, + "snakeCase": { + "unsafeName": "get_function_signature_request", + "safeName": "get_function_signature_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_REQUEST", + "safeName": "GET_FUNCTION_SIGNATURE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureRequest", + "safeName": "GetFunctionSignatureRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "wireValue": "functionSignature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionSignature" + } + } + ] + }, + "type_v2/problem:GetFunctionSignatureResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureResponse", + "camelCase": { + "unsafeName": "getFunctionSignatureResponse", + "safeName": "getFunctionSignatureResponse" + }, + "snakeCase": { + "unsafeName": "get_function_signature_response", + "safeName": "get_function_signature_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_RESPONSE", + "safeName": "GET_FUNCTION_SIGNATURE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureResponse", + "safeName": "GetFunctionSignatureResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionByLanguage", + "camelCase": { + "unsafeName": "functionByLanguage", + "safeName": "functionByLanguage" + }, + "snakeCase": { + "unsafeName": "function_by_language", + "safeName": "function_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_BY_LANGUAGE", + "safeName": "FUNCTION_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "FunctionByLanguage", + "safeName": "FunctionByLanguage" + } + }, + "wireValue": "functionByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/problem:GetBasicSolutionFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileRequest", + "camelCase": { + "unsafeName": "getBasicSolutionFileRequest", + "safeName": "getBasicSolutionFileRequest" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_request", + "safeName": "get_basic_solution_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_REQUEST", + "safeName": "GET_BASIC_SOLUTION_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileRequest", + "safeName": "GetBasicSolutionFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionSignature" + } + } + ] + }, + "type_v2/problem:GetBasicSolutionFileResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileResponse", + "camelCase": { + "unsafeName": "getBasicSolutionFileResponse", + "safeName": "getBasicSolutionFileResponse" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_response", + "safeName": "get_basic_solution_file_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_RESPONSE", + "safeName": "GET_BASIC_SOLUTION_FILE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileResponse", + "safeName": "GetBasicSolutionFileResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "solutionFileByLanguage", + "camelCase": { + "unsafeName": "solutionFileByLanguage", + "safeName": "solutionFileByLanguage" + }, + "snakeCase": { + "unsafeName": "solution_file_by_language", + "safeName": "solution_file_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "SOLUTION_FILE_BY_LANGUAGE", + "safeName": "SOLUTION_FILE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "SolutionFileByLanguage", + "safeName": "SolutionFileByLanguage" + } + }, + "wireValue": "solutionFileByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/problem:GetGeneratedTestCaseFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseFileRequest", + "safeName": "getGeneratedTestCaseFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_file_request", + "safeName": "get_generated_test_case_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseFileRequest", + "safeName": "GetGeneratedTestCaseFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "wireValue": "testCase" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseV2" + } + } + ] + }, + "type_v2/problem:GetGeneratedTestCaseTemplateFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseTemplateFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseTemplateFileRequest", + "safeName": "getGeneratedTestCaseTemplateFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_template_file_request", + "safeName": "get_generated_test_case_template_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseTemplateFileRequest", + "safeName": "GetGeneratedTestCaseTemplateFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + ] + }, + "type_v2/v3/problem:TestCaseTemplateId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseTemplateId", + "camelCase": { + "unsafeName": "testCaseTemplateID", + "safeName": "testCaseTemplateID" + }, + "snakeCase": { + "unsafeName": "test_case_template_id", + "safeName": "test_case_template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE_ID", + "safeName": "TEST_CASE_TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplateID", + "safeName": "TestCaseTemplateID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/v3/problem:TestCaseId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/v3/problem:ParameterId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ParameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/v3/problem:ProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemInfoV2", + "camelCase": { + "unsafeName": "problemInfoV2", + "safeName": "problemInfoV2" + }, + "snakeCase": { + "unsafeName": "problem_info_v2", + "safeName": "problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO_V2", + "safeName": "PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "ProblemInfoV2", + "safeName": "ProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "generatedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "wireValue": "generatedFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:GeneratedFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:LightweightProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "LightweightProblemInfoV2", + "camelCase": { + "unsafeName": "lightweightProblemInfoV2", + "safeName": "lightweightProblemInfoV2" + }, + "snakeCase": { + "unsafeName": "lightweight_problem_info_v2", + "safeName": "lightweight_problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_PROBLEM_INFO_V2", + "safeName": "LIGHTWEIGHT_PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "LightweightProblemInfoV2", + "safeName": "LightweightProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "variableTypes", + "camelCase": { + "unsafeName": "variableTypes", + "safeName": "variableTypes" + }, + "snakeCase": { + "unsafeName": "variable_types", + "safeName": "variable_types" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPES", + "safeName": "VARIABLE_TYPES" + }, + "pascalCase": { + "unsafeName": "VariableTypes", + "safeName": "VariableTypes" + } + }, + "wireValue": "variableTypes" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/v3/problem:CreateProblemRequestV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateProblemRequestV2", + "camelCase": { + "unsafeName": "createProblemRequestV2", + "safeName": "createProblemRequestV2" + }, + "snakeCase": { + "unsafeName": "create_problem_request_v2", + "safeName": "create_problem_request_v2" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_REQUEST_V2", + "safeName": "CREATE_PROBLEM_REQUEST_V2" + }, + "pascalCase": { + "unsafeName": "CreateProblemRequestV2", + "safeName": "CreateProblemRequestV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:TestCaseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseV2", + "camelCase": { + "unsafeName": "testCaseV2", + "safeName": "testCaseV2" + }, + "snakeCase": { + "unsafeName": "test_case_v2", + "safeName": "test_case_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_V2", + "safeName": "TEST_CASE_V2" + }, + "pascalCase": { + "unsafeName": "TestCaseV2", + "safeName": "TestCaseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseMetadata" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationReference" + } + }, + { + "name": { + "name": { + "originalName": "arguments", + "camelCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "snakeCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "screamingSnakeCase": { + "unsafeName": "ARGUMENTS", + "safeName": "ARGUMENTS" + }, + "pascalCase": { + "unsafeName": "Arguments", + "safeName": "Arguments" + } + }, + "wireValue": "arguments" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + }, + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expects", + "camelCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "snakeCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTS", + "safeName": "EXPECTS" + }, + "pascalCase": { + "unsafeName": "Expects", + "safeName": "Expects" + } + }, + "wireValue": "expects" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseExpects" + } + } + } + ] + }, + "type_v2/v3/problem:TestCaseExpects": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseExpects", + "camelCase": { + "unsafeName": "testCaseExpects", + "safeName": "testCaseExpects" + }, + "snakeCase": { + "unsafeName": "test_case_expects", + "safeName": "test_case_expects" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_EXPECTS", + "safeName": "TEST_CASE_EXPECTS" + }, + "pascalCase": { + "unsafeName": "TestCaseExpects", + "safeName": "TestCaseExpects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedStdout", + "camelCase": { + "unsafeName": "expectedStdout", + "safeName": "expectedStdout" + }, + "snakeCase": { + "unsafeName": "expected_stdout", + "safeName": "expected_stdout" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_STDOUT", + "safeName": "EXPECTED_STDOUT" + }, + "pascalCase": { + "unsafeName": "ExpectedStdout", + "safeName": "ExpectedStdout" + } + }, + "wireValue": "expectedStdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementationReference": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationReference", + "camelCase": { + "unsafeName": "testCaseImplementationReference", + "safeName": "testCaseImplementationReference" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_reference", + "safeName": "test_case_implementation_reference" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_REFERENCE", + "safeName": "TEST_CASE_IMPLEMENTATION_REFERENCE" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationReference", + "safeName": "TestCaseImplementationReference" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "templateId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplateId" + }, + "discriminantValue": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "properties": null + }, + "implementation": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:TestCaseImplementation", + "discriminantValue": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "function", + "camelCase": { + "unsafeName": "function", + "safeName": "function" + }, + "snakeCase": { + "unsafeName": "function", + "safeName": "function" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION", + "safeName": "FUNCTION" + }, + "pascalCase": { + "unsafeName": "Function", + "safeName": "Function" + } + }, + "wireValue": "function" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseFunction" + } + } + ] + } + } + }, + "type_v2/v3/problem:BasicTestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + } + } + ] + }, + "type_v2/v3/problem:TestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseTemplate", + "camelCase": { + "unsafeName": "testCaseTemplate", + "safeName": "testCaseTemplate" + }, + "snakeCase": { + "unsafeName": "test_case_template", + "safeName": "test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE", + "safeName": "TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplate", + "safeName": "TestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementation" + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementation", + "camelCase": { + "unsafeName": "testCaseImplementation", + "safeName": "testCaseImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_implementation", + "safeName": "test_case_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION", + "safeName": "TEST_CASE_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementation", + "safeName": "TestCaseImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "function", + "camelCase": { + "unsafeName": "function", + "safeName": "function" + }, + "snakeCase": { + "unsafeName": "function", + "safeName": "function" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION", + "safeName": "FUNCTION" + }, + "pascalCase": { + "unsafeName": "Function", + "safeName": "Function" + } + }, + "wireValue": "function" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseFunction" + } + } + ] + }, + "type_v2/v3/problem:TestCaseFunction": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseFunction", + "camelCase": { + "unsafeName": "testCaseFunction", + "safeName": "testCaseFunction" + }, + "snakeCase": { + "unsafeName": "test_case_function", + "safeName": "test_case_function" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_FUNCTION", + "safeName": "TEST_CASE_FUNCTION" + }, + "pascalCase": { + "unsafeName": "TestCaseFunction", + "safeName": "TestCaseFunction" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "withActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:TestCaseWithActualResultImplementation", + "discriminantValue": { + "name": { + "originalName": "withActualResult", + "camelCase": { + "unsafeName": "withActualResult", + "safeName": "withActualResult" + }, + "snakeCase": { + "unsafeName": "with_actual_result", + "safeName": "with_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_ACTUAL_RESULT", + "safeName": "WITH_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "WithActualResult", + "safeName": "WithActualResult" + } + }, + "wireValue": "withActualResult" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "getActualResult", + "camelCase": { + "unsafeName": "getActualResult", + "safeName": "getActualResult" + }, + "snakeCase": { + "unsafeName": "get_actual_result", + "safeName": "get_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACTUAL_RESULT", + "safeName": "GET_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "GetActualResult", + "safeName": "GetActualResult" + } + }, + "wireValue": "getActualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionDefinition" + } + }, + { + "name": { + "name": { + "originalName": "assertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "wireValue": "assertCorrectnessCheck" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:AssertCorrectnessCheck" + } + } + ] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionDefinition", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + } + } + }, + "type_v2/v3/problem:TestCaseWithActualResultImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseWithActualResultImplementation", + "camelCase": { + "unsafeName": "testCaseWithActualResultImplementation", + "safeName": "testCaseWithActualResultImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_with_actual_result_implementation", + "safeName": "test_case_with_actual_result_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION", + "safeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseWithActualResultImplementation", + "safeName": "TestCaseWithActualResultImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "getActualResult", + "camelCase": { + "unsafeName": "getActualResult", + "safeName": "getActualResult" + }, + "snakeCase": { + "unsafeName": "get_actual_result", + "safeName": "get_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACTUAL_RESULT", + "safeName": "GET_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "GetActualResult", + "safeName": "GetActualResult" + } + }, + "wireValue": "getActualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionDefinition" + } + }, + { + "name": { + "name": { + "originalName": "assertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "wireValue": "assertCorrectnessCheck" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:AssertCorrectnessCheck" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinition", + "camelCase": { + "unsafeName": "voidFunctionDefinition", + "safeName": "voidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "void_function_definition", + "safeName": "void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION", + "safeName": "VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinition", + "safeName": "VoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/v3/problem:Parameter": { + "type": "object", + "declaration": { + "name": { + "originalName": "Parameter", + "camelCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "snakeCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER", + "safeName": "PARAMETER" + }, + "pascalCase": { + "unsafeName": "Parameter", + "safeName": "Parameter" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "wireValue": "parameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "variableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "wireValue": "variableType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/v3/problem:NonVoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionDefinition", + "camelCase": { + "unsafeName": "nonVoidFunctionDefinition", + "safeName": "nonVoidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "non_void_function_definition", + "safeName": "non_void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_DEFINITION", + "safeName": "NON_VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionDefinition", + "safeName": "NonVoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignature", + "camelCase": { + "unsafeName": "voidFunctionSignature", + "safeName": "voidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "void_function_signature", + "safeName": "void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE", + "safeName": "VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignature", + "safeName": "VoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + } + ] + }, + "type_v2/v3/problem:NonVoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionSignature", + "camelCase": { + "unsafeName": "nonVoidFunctionSignature", + "safeName": "nonVoidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "non_void_function_signature", + "safeName": "non_void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_SIGNATURE", + "safeName": "NON_VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionSignature", + "safeName": "NonVoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "returnType", + "camelCase": { + "unsafeName": "returnType", + "safeName": "returnType" + }, + "snakeCase": { + "unsafeName": "return_type", + "safeName": "return_type" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_TYPE", + "safeName": "RETURN_TYPE" + }, + "pascalCase": { + "unsafeName": "ReturnType", + "safeName": "ReturnType" + } + }, + "wireValue": "returnType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionSignatureThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignatureThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionSignatureThatTakesActualResult", + "safeName": "voidFunctionSignatureThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_signature_that_takes_actual_result", + "safeName": "void_function_signature_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignatureThatTakesActualResult", + "safeName": "VoidFunctionSignatureThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "actualResultType", + "camelCase": { + "unsafeName": "actualResultType", + "safeName": "actualResultType" + }, + "snakeCase": { + "unsafeName": "actual_result_type", + "safeName": "actual_result_type" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT_TYPE", + "safeName": "ACTUAL_RESULT_TYPE" + }, + "pascalCase": { + "unsafeName": "ActualResultType", + "safeName": "ActualResultType" + } + }, + "wireValue": "actualResultType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/v3/problem:AssertCorrectnessCheck": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "AssertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "deepEquality": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:DeepEqualityCorrectnessCheck", + "discriminantValue": { + "name": { + "originalName": "deepEquality", + "camelCase": { + "unsafeName": "deepEquality", + "safeName": "deepEquality" + }, + "snakeCase": { + "unsafeName": "deep_equality", + "safeName": "deep_equality" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY", + "safeName": "DEEP_EQUALITY" + }, + "pascalCase": { + "unsafeName": "DeepEquality", + "safeName": "DeepEquality" + } + }, + "wireValue": "deepEquality" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + } + } + ] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionDefinitionThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "additionalParameters", + "camelCase": { + "unsafeName": "additionalParameters", + "safeName": "additionalParameters" + }, + "snakeCase": { + "unsafeName": "additional_parameters", + "safeName": "additional_parameters" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_PARAMETERS", + "safeName": "ADDITIONAL_PARAMETERS" + }, + "pascalCase": { + "unsafeName": "AdditionalParameters", + "safeName": "AdditionalParameters" + } + }, + "wireValue": "additionalParameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + } + } + }, + "type_v2/v3/problem:DeepEqualityCorrectnessCheck": { + "type": "object", + "declaration": { + "name": { + "originalName": "DeepEqualityCorrectnessCheck", + "camelCase": { + "unsafeName": "deepEqualityCorrectnessCheck", + "safeName": "deepEqualityCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "deep_equality_correctness_check", + "safeName": "deep_equality_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY_CORRECTNESS_CHECK", + "safeName": "DEEP_EQUALITY_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "DeepEqualityCorrectnessCheck", + "safeName": "DeepEqualityCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionDefinitionThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinitionThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionDefinitionThatTakesActualResult", + "safeName": "voidFunctionDefinitionThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_definition_that_takes_actual_result", + "safeName": "void_function_definition_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinitionThatTakesActualResult", + "safeName": "VoidFunctionDefinitionThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "additionalParameters", + "camelCase": { + "unsafeName": "additionalParameters", + "safeName": "additionalParameters" + }, + "snakeCase": { + "unsafeName": "additional_parameters", + "safeName": "additional_parameters" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_PARAMETERS", + "safeName": "ADDITIONAL_PARAMETERS" + }, + "pascalCase": { + "unsafeName": "AdditionalParameters", + "safeName": "AdditionalParameters" + } + }, + "wireValue": "additionalParameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementationDescription": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescription", + "camelCase": { + "unsafeName": "testCaseImplementationDescription", + "safeName": "testCaseImplementationDescription" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description", + "safeName": "test_case_implementation_description" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescription", + "safeName": "TestCaseImplementationDescription" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "boards", + "camelCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "snakeCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "screamingSnakeCase": { + "unsafeName": "BOARDS", + "safeName": "BOARDS" + }, + "pascalCase": { + "unsafeName": "Boards", + "safeName": "Boards" + } + }, + "wireValue": "boards" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationDescriptionBoard" + } + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementationDescriptionBoard": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescriptionBoard", + "camelCase": { + "unsafeName": "testCaseImplementationDescriptionBoard", + "safeName": "testCaseImplementationDescriptionBoard" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description_board", + "safeName": "test_case_implementation_description_board" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescriptionBoard", + "safeName": "TestCaseImplementationDescriptionBoard" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": null + }, + "paramId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + }, + "discriminantValue": { + "name": { + "originalName": "paramId", + "camelCase": { + "unsafeName": "paramID", + "safeName": "paramID" + }, + "snakeCase": { + "unsafeName": "param_id", + "safeName": "param_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM_ID", + "safeName": "PARAM_ID" + }, + "pascalCase": { + "unsafeName": "ParamID", + "safeName": "ParamID" + } + }, + "wireValue": "paramId" + }, + "properties": null + } + } + }, + "type_v2/v3/problem:TestCaseMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseMetadata", + "camelCase": { + "unsafeName": "testCaseMetadata", + "safeName": "testCaseMetadata" + }, + "snakeCase": { + "unsafeName": "test_case_metadata", + "safeName": "test_case_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_METADATA", + "safeName": "TEST_CASE_METADATA" + }, + "pascalCase": { + "unsafeName": "TestCaseMetadata", + "safeName": "TestCaseMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "hidden", + "camelCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "snakeCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "screamingSnakeCase": { + "unsafeName": "HIDDEN", + "safeName": "HIDDEN" + }, + "pascalCase": { + "unsafeName": "Hidden", + "safeName": "Hidden" + } + }, + "wireValue": "hidden" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:FunctionImplementationForMultipleLanguages": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementationForMultipleLanguages", + "camelCase": { + "unsafeName": "functionImplementationForMultipleLanguages", + "safeName": "functionImplementationForMultipleLanguages" + }, + "snakeCase": { + "unsafeName": "function_implementation_for_multiple_languages", + "safeName": "function_implementation_for_multiple_languages" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES", + "safeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "FunctionImplementationForMultipleLanguages", + "safeName": "FunctionImplementationForMultipleLanguages" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "codeByLanguage", + "camelCase": { + "unsafeName": "codeByLanguage", + "safeName": "codeByLanguage" + }, + "snakeCase": { + "unsafeName": "code_by_language", + "safeName": "code_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_BY_LANGUAGE", + "safeName": "CODE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "CodeByLanguage", + "safeName": "CodeByLanguage" + } + }, + "wireValue": "codeByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementation" + } + } + } + ] + }, + "type_v2/v3/problem:FunctionImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementation", + "camelCase": { + "unsafeName": "functionImplementation", + "safeName": "functionImplementation" + }, + "snakeCase": { + "unsafeName": "function_implementation", + "safeName": "function_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION", + "safeName": "FUNCTION_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "FunctionImplementation", + "safeName": "FunctionImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "impl", + "camelCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "snakeCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "screamingSnakeCase": { + "unsafeName": "IMPL", + "safeName": "IMPL" + }, + "pascalCase": { + "unsafeName": "Impl", + "safeName": "Impl" + } + }, + "wireValue": "impl" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "imports", + "camelCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "snakeCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTS", + "safeName": "IMPORTS" + }, + "pascalCase": { + "unsafeName": "Imports", + "safeName": "Imports" + } + }, + "wireValue": "imports" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/v3/problem:GeneratedFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "GeneratedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "generatedTestCaseFiles", + "camelCase": { + "unsafeName": "generatedTestCaseFiles", + "safeName": "generatedTestCaseFiles" + }, + "snakeCase": { + "unsafeName": "generated_test_case_files", + "safeName": "generated_test_case_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEST_CASE_FILES", + "safeName": "GENERATED_TEST_CASE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTestCaseFiles", + "safeName": "GeneratedTestCaseFiles" + } + }, + "wireValue": "generatedTestCaseFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "generatedTemplateFiles", + "camelCase": { + "unsafeName": "generatedTemplateFiles", + "safeName": "generatedTemplateFiles" + }, + "snakeCase": { + "unsafeName": "generated_template_files", + "safeName": "generated_template_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEMPLATE_FILES", + "safeName": "GENERATED_TEMPLATE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTemplateFiles", + "safeName": "GeneratedTemplateFiles" + } + }, + "wireValue": "generatedTemplateFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "other", + "camelCase": { + "unsafeName": "other", + "safeName": "other" + }, + "snakeCase": { + "unsafeName": "other", + "safeName": "other" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER", + "safeName": "OTHER" + }, + "pascalCase": { + "unsafeName": "Other", + "safeName": "Other" + } + }, + "wireValue": "other" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + } + ] + }, + "type_v2/v3/problem:CustomFiles": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CustomFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "basic": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:BasicCustomFiles", + "discriminantValue": { + "name": { + "originalName": "basic", + "camelCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "snakeCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC", + "safeName": "BASIC" + }, + "pascalCase": { + "unsafeName": "Basic", + "safeName": "Basic" + } + }, + "wireValue": "basic" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "additionalFiles", + "camelCase": { + "unsafeName": "additionalFiles", + "safeName": "additionalFiles" + }, + "snakeCase": { + "unsafeName": "additional_files", + "safeName": "additional_files" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_FILES", + "safeName": "ADDITIONAL_FILES" + }, + "pascalCase": { + "unsafeName": "AdditionalFiles", + "safeName": "AdditionalFiles" + } + }, + "wireValue": "additionalFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "basicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "wireValue": "basicTestCaseTemplate" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:BasicTestCaseTemplate" + } + } + ] + }, + "custom": { + "type": "singleProperty", + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + }, + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": null + } + } + }, + "type_v2/v3/problem:BasicCustomFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicCustomFiles", + "camelCase": { + "unsafeName": "basicCustomFiles", + "safeName": "basicCustomFiles" + }, + "snakeCase": { + "unsafeName": "basic_custom_files", + "safeName": "basic_custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_CUSTOM_FILES", + "safeName": "BASIC_CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "BasicCustomFiles", + "safeName": "BasicCustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "additionalFiles", + "camelCase": { + "unsafeName": "additionalFiles", + "safeName": "additionalFiles" + }, + "snakeCase": { + "unsafeName": "additional_files", + "safeName": "additional_files" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_FILES", + "safeName": "ADDITIONAL_FILES" + }, + "pascalCase": { + "unsafeName": "AdditionalFiles", + "safeName": "AdditionalFiles" + } + }, + "wireValue": "additionalFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "basicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "wireValue": "basicTestCaseTemplate" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:BasicTestCaseTemplate" + } + } + ] + }, + "type_v2/v3/problem:Files": { + "type": "object", + "declaration": { + "name": { + "originalName": "Files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/v3/problem:FileInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "FileInfoV2", + "camelCase": { + "unsafeName": "fileInfoV2", + "safeName": "fileInfoV2" + }, + "snakeCase": { + "unsafeName": "file_info_v2", + "safeName": "file_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO_V2", + "safeName": "FILE_INFO_V2" + }, + "pascalCase": { + "unsafeName": "FileInfoV2", + "safeName": "FileInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "editable", + "camelCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "snakeCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "screamingSnakeCase": { + "unsafeName": "EDITABLE", + "safeName": "EDITABLE" + }, + "pascalCase": { + "unsafeName": "Editable", + "safeName": "Editable" + } + }, + "wireValue": "editable" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:DefaultProvidedFile": { + "type": "object", + "declaration": { + "name": { + "originalName": "DefaultProvidedFile", + "camelCase": { + "unsafeName": "defaultProvidedFile", + "safeName": "defaultProvidedFile" + }, + "snakeCase": { + "unsafeName": "default_provided_file", + "safeName": "default_provided_file" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT_PROVIDED_FILE", + "safeName": "DEFAULT_PROVIDED_FILE" + }, + "pascalCase": { + "unsafeName": "DefaultProvidedFile", + "safeName": "DefaultProvidedFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FileInfoV2" + } + }, + { + "name": { + "name": { + "originalName": "relatedTypes", + "camelCase": { + "unsafeName": "relatedTypes", + "safeName": "relatedTypes" + }, + "snakeCase": { + "unsafeName": "related_types", + "safeName": "related_types" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_TYPES", + "safeName": "RELATED_TYPES" + }, + "pascalCase": { + "unsafeName": "RelatedTypes", + "safeName": "RelatedTypes" + } + }, + "wireValue": "relatedTypes" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/v3/problem:FunctionSignature": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FunctionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "void": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "void", + "camelCase": { + "unsafeName": "void", + "safeName": "void" + }, + "snakeCase": { + "unsafeName": "void", + "safeName": "void" + }, + "screamingSnakeCase": { + "unsafeName": "VOID", + "safeName": "VOID" + }, + "pascalCase": { + "unsafeName": "Void", + "safeName": "Void" + } + }, + "wireValue": "void" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + } + ] + }, + "nonVoid": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:NonVoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "nonVoid", + "camelCase": { + "unsafeName": "nonVoid", + "safeName": "nonVoid" + }, + "snakeCase": { + "unsafeName": "non_void", + "safeName": "non_void" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID", + "safeName": "NON_VOID" + }, + "pascalCase": { + "unsafeName": "NonVoid", + "safeName": "NonVoid" + } + }, + "wireValue": "nonVoid" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "returnType", + "camelCase": { + "unsafeName": "returnType", + "safeName": "returnType" + }, + "snakeCase": { + "unsafeName": "return_type", + "safeName": "return_type" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_TYPE", + "safeName": "RETURN_TYPE" + }, + "pascalCase": { + "unsafeName": "ReturnType", + "safeName": "ReturnType" + } + }, + "wireValue": "returnType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "voidThatTakesActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionSignatureThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "voidThatTakesActualResult", + "camelCase": { + "unsafeName": "voidThatTakesActualResult", + "safeName": "voidThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_that_takes_actual_result", + "safeName": "void_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidThatTakesActualResult", + "safeName": "VoidThatTakesActualResult" + } + }, + "wireValue": "voidThatTakesActualResult" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "actualResultType", + "camelCase": { + "unsafeName": "actualResultType", + "safeName": "actualResultType" + }, + "snakeCase": { + "unsafeName": "actual_result_type", + "safeName": "actual_result_type" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT_TYPE", + "safeName": "ACTUAL_RESULT_TYPE" + }, + "pascalCase": { + "unsafeName": "ActualResultType", + "safeName": "ActualResultType" + } + }, + "wireValue": "actualResultType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + } + } + }, + "type_v2/v3/problem:GetFunctionSignatureRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureRequest", + "camelCase": { + "unsafeName": "getFunctionSignatureRequest", + "safeName": "getFunctionSignatureRequest" + }, + "snakeCase": { + "unsafeName": "get_function_signature_request", + "safeName": "get_function_signature_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_REQUEST", + "safeName": "GET_FUNCTION_SIGNATURE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureRequest", + "safeName": "GetFunctionSignatureRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "wireValue": "functionSignature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionSignature" + } + } + ] + }, + "type_v2/v3/problem:GetFunctionSignatureResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureResponse", + "camelCase": { + "unsafeName": "getFunctionSignatureResponse", + "safeName": "getFunctionSignatureResponse" + }, + "snakeCase": { + "unsafeName": "get_function_signature_response", + "safeName": "get_function_signature_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_RESPONSE", + "safeName": "GET_FUNCTION_SIGNATURE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureResponse", + "safeName": "GetFunctionSignatureResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionByLanguage", + "camelCase": { + "unsafeName": "functionByLanguage", + "safeName": "functionByLanguage" + }, + "snakeCase": { + "unsafeName": "function_by_language", + "safeName": "function_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_BY_LANGUAGE", + "safeName": "FUNCTION_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "FunctionByLanguage", + "safeName": "FunctionByLanguage" + } + }, + "wireValue": "functionByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/v3/problem:GetBasicSolutionFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileRequest", + "camelCase": { + "unsafeName": "getBasicSolutionFileRequest", + "safeName": "getBasicSolutionFileRequest" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_request", + "safeName": "get_basic_solution_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_REQUEST", + "safeName": "GET_BASIC_SOLUTION_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileRequest", + "safeName": "GetBasicSolutionFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionSignature" + } + } + ] + }, + "type_v2/v3/problem:GetBasicSolutionFileResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileResponse", + "camelCase": { + "unsafeName": "getBasicSolutionFileResponse", + "safeName": "getBasicSolutionFileResponse" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_response", + "safeName": "get_basic_solution_file_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_RESPONSE", + "safeName": "GET_BASIC_SOLUTION_FILE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileResponse", + "safeName": "GetBasicSolutionFileResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "solutionFileByLanguage", + "camelCase": { + "unsafeName": "solutionFileByLanguage", + "safeName": "solutionFileByLanguage" + }, + "snakeCase": { + "unsafeName": "solution_file_by_language", + "safeName": "solution_file_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "SOLUTION_FILE_BY_LANGUAGE", + "safeName": "SOLUTION_FILE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "SolutionFileByLanguage", + "safeName": "SolutionFileByLanguage" + } + }, + "wireValue": "solutionFileByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/v3/problem:GetGeneratedTestCaseFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseFileRequest", + "safeName": "getGeneratedTestCaseFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_file_request", + "safeName": "get_generated_test_case_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseFileRequest", + "safeName": "GetGeneratedTestCaseFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "wireValue": "testCase" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseV2" + } + } + ] + }, + "type_v2/v3/problem:GetGeneratedTestCaseTemplateFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseTemplateFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseTemplateFileRequest", + "safeName": "getGeneratedTestCaseTemplateFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_template_file_request", + "safeName": "get_generated_test_case_template_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseTemplateFileRequest", + "safeName": "GetGeneratedTestCaseTemplateFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + ] + } + }, + "headers": [ + { + "name": { + "name": { + "originalName": "X-Random-Header", + "camelCase": { + "unsafeName": "xRandomHeader", + "safeName": "xRandomHeader" + }, + "snakeCase": { + "unsafeName": "x_random_header", + "safeName": "x_random_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_RANDOM_HEADER", + "safeName": "X_RANDOM_HEADER" + }, + "pascalCase": { + "unsafeName": "XRandomHeader", + "safeName": "XRandomHeader" + } + }, + "wireValue": "X-Random-Header" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "endpoints": { + "endpoint_v2.test": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.updateTestSubmissionStatus": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updateTestSubmissionStatus", + "camelCase": { + "unsafeName": "updateTestSubmissionStatus", + "safeName": "updateTestSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "update_test_submission_status", + "safeName": "update_test_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_TEST_SUBMISSION_STATUS", + "safeName": "UPDATE_TEST_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "UpdateTestSubmissionStatus", + "safeName": "UpdateTestSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-submission-status/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:TestSubmissionStatus" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.sendTestSubmissionUpdate": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "sendTestSubmissionUpdate", + "camelCase": { + "unsafeName": "sendTestSubmissionUpdate", + "safeName": "sendTestSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "send_test_submission_update", + "safeName": "send_test_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_TEST_SUBMISSION_UPDATE", + "safeName": "SEND_TEST_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "SendTestSubmissionUpdate", + "safeName": "SendTestSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-submission-status-v2/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:TestSubmissionUpdate" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.updateWorkspaceSubmissionStatus": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updateWorkspaceSubmissionStatus", + "camelCase": { + "unsafeName": "updateWorkspaceSubmissionStatus", + "safeName": "updateWorkspaceSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "update_workspace_submission_status", + "safeName": "update_workspace_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_WORKSPACE_SUBMISSION_STATUS", + "safeName": "UPDATE_WORKSPACE_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "UpdateWorkspaceSubmissionStatus", + "safeName": "UpdateWorkspaceSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-submission-status/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionStatus" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.sendWorkspaceSubmissionUpdate": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "sendWorkspaceSubmissionUpdate", + "camelCase": { + "unsafeName": "sendWorkspaceSubmissionUpdate", + "safeName": "sendWorkspaceSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "send_workspace_submission_update", + "safeName": "send_workspace_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_WORKSPACE_SUBMISSION_UPDATE", + "safeName": "SEND_WORKSPACE_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "SendWorkspaceSubmissionUpdate", + "safeName": "SendWorkspaceSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-submission-status-v2/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionUpdate" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedTestCase": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedTestCase", + "camelCase": { + "unsafeName": "storeTracedTestCase", + "safeName": "storeTracedTestCase" + }, + "snakeCase": { + "unsafeName": "store_traced_test_case", + "safeName": "store_traced_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_TEST_CASE", + "safeName": "STORE_TRACED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "StoreTracedTestCase", + "safeName": "StoreTracedTestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-trace/submission/{submissionId}/testCase/{testCaseId}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StoreTracedTestCaseRequest", + "camelCase": { + "unsafeName": "storeTracedTestCaseRequest", + "safeName": "storeTracedTestCaseRequest" + }, + "snakeCase": { + "unsafeName": "store_traced_test_case_request", + "safeName": "store_traced_test_case_request" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_TEST_CASE_REQUEST", + "safeName": "STORE_TRACED_TEST_CASE_REQUEST" + }, + "pascalCase": { + "unsafeName": "StoreTracedTestCaseRequest", + "safeName": "StoreTracedTestCaseRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponse" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedTestCaseV2": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedTestCaseV2", + "camelCase": { + "unsafeName": "storeTracedTestCaseV2", + "safeName": "storeTracedTestCaseV2" + }, + "snakeCase": { + "unsafeName": "store_traced_test_case_v2", + "safeName": "store_traced_test_case_v2" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_TEST_CASE_V2", + "safeName": "STORE_TRACED_TEST_CASE_V2" + }, + "pascalCase": { + "unsafeName": "StoreTracedTestCaseV2", + "safeName": "StoreTracedTestCaseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-trace-v2/submission/{submissionId}/testCase/{testCaseId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponseV2" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedWorkspace": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedWorkspace", + "camelCase": { + "unsafeName": "storeTracedWorkspace", + "safeName": "storeTracedWorkspace" + }, + "snakeCase": { + "unsafeName": "store_traced_workspace", + "safeName": "store_traced_workspace" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_WORKSPACE", + "safeName": "STORE_TRACED_WORKSPACE" + }, + "pascalCase": { + "unsafeName": "StoreTracedWorkspace", + "safeName": "StoreTracedWorkspace" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-trace/submission/{submissionId}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StoreTracedWorkspaceRequest", + "camelCase": { + "unsafeName": "storeTracedWorkspaceRequest", + "safeName": "storeTracedWorkspaceRequest" + }, + "snakeCase": { + "unsafeName": "store_traced_workspace_request", + "safeName": "store_traced_workspace_request" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_WORKSPACE_REQUEST", + "safeName": "STORE_TRACED_WORKSPACE_REQUEST" + }, + "pascalCase": { + "unsafeName": "StoreTracedWorkspaceRequest", + "safeName": "StoreTracedWorkspaceRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "workspaceRunDetails", + "camelCase": { + "unsafeName": "workspaceRunDetails", + "safeName": "workspaceRunDetails" + }, + "snakeCase": { + "unsafeName": "workspace_run_details", + "safeName": "workspace_run_details" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RUN_DETAILS", + "safeName": "WORKSPACE_RUN_DETAILS" + }, + "pascalCase": { + "unsafeName": "WorkspaceRunDetails", + "safeName": "WorkspaceRunDetails" + } + }, + "wireValue": "workspaceRunDetails" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceRunDetails" + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponse" + } + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedWorkspaceV2": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedWorkspaceV2", + "camelCase": { + "unsafeName": "storeTracedWorkspaceV2", + "safeName": "storeTracedWorkspaceV2" + }, + "snakeCase": { + "unsafeName": "store_traced_workspace_v2", + "safeName": "store_traced_workspace_v2" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_WORKSPACE_V2", + "safeName": "STORE_TRACED_WORKSPACE_V2" + }, + "pascalCase": { + "unsafeName": "StoreTracedWorkspaceV2", + "safeName": "StoreTracedWorkspaceV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-trace-v2/submission/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponseV2" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_homepage.getHomepageProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getHomepageProblems", + "camelCase": { + "unsafeName": "getHomepageProblems", + "safeName": "getHomepageProblems" + }, + "snakeCase": { + "unsafeName": "get_homepage_problems", + "safeName": "get_homepage_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_HOMEPAGE_PROBLEMS", + "safeName": "GET_HOMEPAGE_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetHomepageProblems", + "safeName": "GetHomepageProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + ], + "packagePath": [], + "file": { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + } + }, + "location": { + "method": "GET", + "path": "/homepage-problems" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_homepage.setHomepageProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "setHomepageProblems", + "camelCase": { + "unsafeName": "setHomepageProblems", + "safeName": "setHomepageProblems" + }, + "snakeCase": { + "unsafeName": "set_homepage_problems", + "safeName": "set_homepage_problems" + }, + "screamingSnakeCase": { + "unsafeName": "SET_HOMEPAGE_PROBLEMS", + "safeName": "SET_HOMEPAGE_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "SetHomepageProblems", + "safeName": "SetHomepageProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + ], + "packagePath": [], + "file": { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + } + }, + "location": { + "method": "POST", + "path": "/homepage-problems" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_migration.getAttemptedMigrations": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAttemptedMigrations", + "camelCase": { + "unsafeName": "getAttemptedMigrations", + "safeName": "getAttemptedMigrations" + }, + "snakeCase": { + "unsafeName": "get_attempted_migrations", + "safeName": "get_attempted_migrations" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ATTEMPTED_MIGRATIONS", + "safeName": "GET_ATTEMPTED_MIGRATIONS" + }, + "pascalCase": { + "unsafeName": "GetAttemptedMigrations", + "safeName": "GetAttemptedMigrations" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "location": { + "method": "GET", + "path": "/migration-info/all" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetAttemptedMigrationsRequest", + "camelCase": { + "unsafeName": "getAttemptedMigrationsRequest", + "safeName": "getAttemptedMigrationsRequest" + }, + "snakeCase": { + "unsafeName": "get_attempted_migrations_request", + "safeName": "get_attempted_migrations_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ATTEMPTED_MIGRATIONS_REQUEST", + "safeName": "GET_ATTEMPTED_MIGRATIONS_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetAttemptedMigrationsRequest", + "safeName": "GetAttemptedMigrationsRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "admin-key-header", + "camelCase": { + "unsafeName": "adminKeyHeader", + "safeName": "adminKeyHeader" + }, + "snakeCase": { + "unsafeName": "admin_key_header", + "safeName": "admin_key_header" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN_KEY_HEADER", + "safeName": "ADMIN_KEY_HEADER" + }, + "pascalCase": { + "unsafeName": "AdminKeyHeader", + "safeName": "AdminKeyHeader" + } + }, + "wireValue": "admin-key-header" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.createPlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createPlaylist", + "camelCase": { + "unsafeName": "createPlaylist", + "safeName": "createPlaylist" + }, + "snakeCase": { + "unsafeName": "create_playlist", + "safeName": "create_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PLAYLIST", + "safeName": "CREATE_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "CreatePlaylist", + "safeName": "CreatePlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "POST", + "path": "/v2/playlist/{serviceParam}/create" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreatePlaylistRequest", + "camelCase": { + "unsafeName": "createPlaylistRequest", + "safeName": "createPlaylistRequest" + }, + "snakeCase": { + "unsafeName": "create_playlist_request", + "safeName": "create_playlist_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PLAYLIST_REQUEST", + "safeName": "CREATE_PLAYLIST_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreatePlaylistRequest", + "safeName": "CreatePlaylistRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "optionalDatetime", + "camelCase": { + "unsafeName": "optionalDatetime", + "safeName": "optionalDatetime" + }, + "snakeCase": { + "unsafeName": "optional_datetime", + "safeName": "optional_datetime" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_DATETIME", + "safeName": "OPTIONAL_DATETIME" + }, + "pascalCase": { + "unsafeName": "OptionalDatetime", + "safeName": "OptionalDatetime" + } + }, + "wireValue": "optionalDatetime" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + } + ], + "headers": [], + "body": { + "type": "referenced", + "bodyKey": { + "originalName": "body", + "camelCase": { + "unsafeName": "body", + "safeName": "body" + }, + "snakeCase": { + "unsafeName": "body", + "safeName": "body" + }, + "screamingSnakeCase": { + "unsafeName": "BODY", + "safeName": "BODY" + }, + "pascalCase": { + "unsafeName": "Body", + "safeName": "Body" + } + }, + "bodyType": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_playlist:PlaylistCreateRequest" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.getPlaylists": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPlaylists", + "camelCase": { + "unsafeName": "getPlaylists", + "safeName": "getPlaylists" + }, + "snakeCase": { + "unsafeName": "get_playlists", + "safeName": "get_playlists" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PLAYLISTS", + "safeName": "GET_PLAYLISTS" + }, + "pascalCase": { + "unsafeName": "GetPlaylists", + "safeName": "GetPlaylists" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "GET", + "path": "/v2/playlist/{serviceParam}/all" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetPlaylistsRequest", + "camelCase": { + "unsafeName": "getPlaylistsRequest", + "safeName": "getPlaylistsRequest" + }, + "snakeCase": { + "unsafeName": "get_playlists_request", + "safeName": "get_playlists_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PLAYLISTS_REQUEST", + "safeName": "GET_PLAYLISTS_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetPlaylistsRequest", + "safeName": "GetPlaylistsRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "otherField", + "camelCase": { + "unsafeName": "otherField", + "safeName": "otherField" + }, + "snakeCase": { + "unsafeName": "other_field", + "safeName": "other_field" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER_FIELD", + "safeName": "OTHER_FIELD" + }, + "pascalCase": { + "unsafeName": "OtherField", + "safeName": "OtherField" + } + }, + "wireValue": "otherField" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "multiLineDocs", + "camelCase": { + "unsafeName": "multiLineDocs", + "safeName": "multiLineDocs" + }, + "snakeCase": { + "unsafeName": "multi_line_docs", + "safeName": "multi_line_docs" + }, + "screamingSnakeCase": { + "unsafeName": "MULTI_LINE_DOCS", + "safeName": "MULTI_LINE_DOCS" + }, + "pascalCase": { + "unsafeName": "MultiLineDocs", + "safeName": "MultiLineDocs" + } + }, + "wireValue": "multiLineDocs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "optionalMultipleField", + "camelCase": { + "unsafeName": "optionalMultipleField", + "safeName": "optionalMultipleField" + }, + "snakeCase": { + "unsafeName": "optional_multiple_field", + "safeName": "optional_multiple_field" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_MULTIPLE_FIELD", + "safeName": "OPTIONAL_MULTIPLE_FIELD" + }, + "pascalCase": { + "unsafeName": "OptionalMultipleField", + "safeName": "OptionalMultipleField" + } + }, + "wireValue": "optionalMultipleField" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "multipleField", + "camelCase": { + "unsafeName": "multipleField", + "safeName": "multipleField" + }, + "snakeCase": { + "unsafeName": "multiple_field", + "safeName": "multiple_field" + }, + "screamingSnakeCase": { + "unsafeName": "MULTIPLE_FIELD", + "safeName": "MULTIPLE_FIELD" + }, + "pascalCase": { + "unsafeName": "MultipleField", + "safeName": "MultipleField" + } + }, + "wireValue": "multipleField" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.getPlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPlaylist", + "camelCase": { + "unsafeName": "getPlaylist", + "safeName": "getPlaylist" + }, + "snakeCase": { + "unsafeName": "get_playlist", + "safeName": "get_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PLAYLIST", + "safeName": "GET_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "GetPlaylist", + "safeName": "GetPlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "GET", + "path": "/v2/playlist/{serviceParam}/{playlistId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "playlistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlistId" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.updatePlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updatePlaylist", + "camelCase": { + "unsafeName": "updatePlaylist", + "safeName": "updatePlaylist" + }, + "snakeCase": { + "unsafeName": "update_playlist", + "safeName": "update_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PLAYLIST", + "safeName": "UPDATE_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "UpdatePlaylist", + "safeName": "UpdatePlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/v2/playlist/{serviceParam}/{playlistId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "playlistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlistId" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_playlist:UpdatePlaylistRequest" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.deletePlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "deletePlaylist", + "camelCase": { + "unsafeName": "deletePlaylist", + "safeName": "deletePlaylist" + }, + "snakeCase": { + "unsafeName": "delete_playlist", + "safeName": "delete_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_PLAYLIST", + "safeName": "DELETE_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "DeletePlaylist", + "safeName": "DeletePlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/v2/playlist/{serviceParam}/{playlist_id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "playlist_id", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlist_id" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.createProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createProblem", + "camelCase": { + "unsafeName": "createProblem", + "safeName": "createProblem" + }, + "snakeCase": { + "unsafeName": "create_problem", + "safeName": "create_problem" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM", + "safeName": "CREATE_PROBLEM" + }, + "pascalCase": { + "unsafeName": "CreateProblem", + "safeName": "CreateProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "POST", + "path": "/problem-crud/create" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_problem:CreateProblemRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.updateProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updateProblem", + "camelCase": { + "unsafeName": "updateProblem", + "safeName": "updateProblem" + }, + "snakeCase": { + "unsafeName": "update_problem", + "safeName": "update_problem" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PROBLEM", + "safeName": "UPDATE_PROBLEM" + }, + "pascalCase": { + "unsafeName": "UpdateProblem", + "safeName": "UpdateProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "POST", + "path": "/problem-crud/update/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_problem:CreateProblemRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.deleteProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "deleteProblem", + "camelCase": { + "unsafeName": "deleteProblem", + "safeName": "deleteProblem" + }, + "snakeCase": { + "unsafeName": "delete_problem", + "safeName": "delete_problem" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_PROBLEM", + "safeName": "DELETE_PROBLEM" + }, + "pascalCase": { + "unsafeName": "DeleteProblem", + "safeName": "DeleteProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/problem-crud/delete/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.getDefaultStarterFiles": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDefaultStarterFiles", + "camelCase": { + "unsafeName": "getDefaultStarterFiles", + "safeName": "getDefaultStarterFiles" + }, + "snakeCase": { + "unsafeName": "get_default_starter_files", + "safeName": "get_default_starter_files" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DEFAULT_STARTER_FILES", + "safeName": "GET_DEFAULT_STARTER_FILES" + }, + "pascalCase": { + "unsafeName": "GetDefaultStarterFiles", + "safeName": "GetDefaultStarterFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "POST", + "path": "/problem-crud/default-starter-files" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetDefaultStarterFilesRequest", + "camelCase": { + "unsafeName": "getDefaultStarterFilesRequest", + "safeName": "getDefaultStarterFilesRequest" + }, + "snakeCase": { + "unsafeName": "get_default_starter_files_request", + "safeName": "get_default_starter_files_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DEFAULT_STARTER_FILES_REQUEST", + "safeName": "GET_DEFAULT_STARTER_FILES_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetDefaultStarterFilesRequest", + "safeName": "GetDefaultStarterFilesRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "inputParams", + "camelCase": { + "unsafeName": "inputParams", + "safeName": "inputParams" + }, + "snakeCase": { + "unsafeName": "input_params", + "safeName": "input_params" + }, + "screamingSnakeCase": { + "unsafeName": "INPUT_PARAMS", + "safeName": "INPUT_PARAMS" + }, + "pascalCase": { + "unsafeName": "InputParams", + "safeName": "InputParams" + } + }, + "wireValue": "inputParams" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:VariableTypeAndName" + } + } + }, + { + "name": { + "name": { + "originalName": "outputType", + "camelCase": { + "unsafeName": "outputType", + "safeName": "outputType" + }, + "snakeCase": { + "unsafeName": "output_type", + "safeName": "output_type" + }, + "screamingSnakeCase": { + "unsafeName": "OUTPUT_TYPE", + "safeName": "OUTPUT_TYPE" + }, + "pascalCase": { + "unsafeName": "OutputType", + "safeName": "OutputType" + } + }, + "wireValue": "outputType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.createExecutionSession": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createExecutionSession", + "camelCase": { + "unsafeName": "createExecutionSession", + "safeName": "createExecutionSession" + }, + "snakeCase": { + "unsafeName": "create_execution_session", + "safeName": "create_execution_session" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_EXECUTION_SESSION", + "safeName": "CREATE_EXECUTION_SESSION" + }, + "pascalCase": { + "unsafeName": "CreateExecutionSession", + "safeName": "CreateExecutionSession" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "POST", + "path": "/sessions/create-session/{language}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.getExecutionSession": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getExecutionSession", + "camelCase": { + "unsafeName": "getExecutionSession", + "safeName": "getExecutionSession" + }, + "snakeCase": { + "unsafeName": "get_execution_session", + "safeName": "get_execution_session" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXECUTION_SESSION", + "safeName": "GET_EXECUTION_SESSION" + }, + "pascalCase": { + "unsafeName": "GetExecutionSession", + "safeName": "GetExecutionSession" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "GET", + "path": "/sessions/{sessionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.stopExecutionSession": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "stopExecutionSession", + "camelCase": { + "unsafeName": "stopExecutionSession", + "safeName": "stopExecutionSession" + }, + "snakeCase": { + "unsafeName": "stop_execution_session", + "safeName": "stop_execution_session" + }, + "screamingSnakeCase": { + "unsafeName": "STOP_EXECUTION_SESSION", + "safeName": "STOP_EXECUTION_SESSION" + }, + "pascalCase": { + "unsafeName": "StopExecutionSession", + "safeName": "StopExecutionSession" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/sessions/stop/{sessionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.getExecutionSessionsState": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getExecutionSessionsState", + "camelCase": { + "unsafeName": "getExecutionSessionsState", + "safeName": "getExecutionSessionsState" + }, + "snakeCase": { + "unsafeName": "get_execution_sessions_state", + "safeName": "get_execution_sessions_state" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXECUTION_SESSIONS_STATE", + "safeName": "GET_EXECUTION_SESSIONS_STATE" + }, + "pascalCase": { + "unsafeName": "GetExecutionSessionsState", + "safeName": "GetExecutionSessionsState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "GET", + "path": "/sessions/execution-sessions-state" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_sysprop.setNumWarmInstances": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "setNumWarmInstances", + "camelCase": { + "unsafeName": "setNumWarmInstances", + "safeName": "setNumWarmInstances" + }, + "snakeCase": { + "unsafeName": "set_num_warm_instances", + "safeName": "set_num_warm_instances" + }, + "screamingSnakeCase": { + "unsafeName": "SET_NUM_WARM_INSTANCES", + "safeName": "SET_NUM_WARM_INSTANCES" + }, + "pascalCase": { + "unsafeName": "SetNumWarmInstances", + "safeName": "SetNumWarmInstances" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + ], + "packagePath": [], + "file": { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/sysprop/num-warm-instances/{language}/{numWarmInstances}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "numWarmInstances", + "camelCase": { + "unsafeName": "numWarmInstances", + "safeName": "numWarmInstances" + }, + "snakeCase": { + "unsafeName": "num_warm_instances", + "safeName": "num_warm_instances" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_WARM_INSTANCES", + "safeName": "NUM_WARM_INSTANCES" + }, + "pascalCase": { + "unsafeName": "NumWarmInstances", + "safeName": "NumWarmInstances" + } + }, + "wireValue": "numWarmInstances" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_sysprop.getNumWarmInstances": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getNumWarmInstances", + "camelCase": { + "unsafeName": "getNumWarmInstances", + "safeName": "getNumWarmInstances" + }, + "snakeCase": { + "unsafeName": "get_num_warm_instances", + "safeName": "get_num_warm_instances" + }, + "screamingSnakeCase": { + "unsafeName": "GET_NUM_WARM_INSTANCES", + "safeName": "GET_NUM_WARM_INSTANCES" + }, + "pascalCase": { + "unsafeName": "GetNumWarmInstances", + "safeName": "GetNumWarmInstances" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + ], + "packagePath": [], + "file": { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + } + }, + "location": { + "method": "GET", + "path": "/sysprop/num-warm-instances" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getLightweightProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLightweightProblems", + "camelCase": { + "unsafeName": "getLightweightProblems", + "safeName": "getLightweightProblems" + }, + "snakeCase": { + "unsafeName": "get_lightweight_problems", + "safeName": "get_lightweight_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LIGHTWEIGHT_PROBLEMS", + "safeName": "GET_LIGHTWEIGHT_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetLightweightProblems", + "safeName": "GetLightweightProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/lightweight-problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblems", + "camelCase": { + "unsafeName": "getProblems", + "safeName": "getProblems" + }, + "snakeCase": { + "unsafeName": "get_problems", + "safeName": "get_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEMS", + "safeName": "GET_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetProblems", + "safeName": "GetProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getLatestProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLatestProblem", + "camelCase": { + "unsafeName": "getLatestProblem", + "safeName": "getLatestProblem" + }, + "snakeCase": { + "unsafeName": "get_latest_problem", + "safeName": "get_latest_problem" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LATEST_PROBLEM", + "safeName": "GET_LATEST_PROBLEM" + }, + "pascalCase": { + "unsafeName": "GetLatestProblem", + "safeName": "GetLatestProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getProblemVersion": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblemVersion", + "camelCase": { + "unsafeName": "getProblemVersion", + "safeName": "getProblemVersion" + }, + "snakeCase": { + "unsafeName": "get_problem_version", + "safeName": "get_problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEM_VERSION", + "safeName": "GET_PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "GetProblemVersion", + "safeName": "GetProblemVersion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}/version/{problemVersion}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getLightweightProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLightweightProblems", + "camelCase": { + "unsafeName": "getLightweightProblems", + "safeName": "getLightweightProblems" + }, + "snakeCase": { + "unsafeName": "get_lightweight_problems", + "safeName": "get_lightweight_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LIGHTWEIGHT_PROBLEMS", + "safeName": "GET_LIGHTWEIGHT_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetLightweightProblems", + "safeName": "GetLightweightProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/lightweight-problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblems", + "camelCase": { + "unsafeName": "getProblems", + "safeName": "getProblems" + }, + "snakeCase": { + "unsafeName": "get_problems", + "safeName": "get_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEMS", + "safeName": "GET_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetProblems", + "safeName": "GetProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getLatestProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLatestProblem", + "camelCase": { + "unsafeName": "getLatestProblem", + "safeName": "getLatestProblem" + }, + "snakeCase": { + "unsafeName": "get_latest_problem", + "safeName": "get_latest_problem" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LATEST_PROBLEM", + "safeName": "GET_LATEST_PROBLEM" + }, + "pascalCase": { + "unsafeName": "GetLatestProblem", + "safeName": "GetLatestProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getProblemVersion": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblemVersion", + "camelCase": { + "unsafeName": "getProblemVersion", + "safeName": "getProblemVersion" + }, + "snakeCase": { + "unsafeName": "get_problem_version", + "safeName": "get_problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEM_VERSION", + "safeName": "GET_PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "GetProblemVersion", + "safeName": "GetProblemVersion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}/version/{problemVersion}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/ts-express-casing.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/ts-express-casing.json new file mode 100644 index 00000000000..4391977c046 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/ts-express-casing.json @@ -0,0 +1,615 @@ +{ + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.create_movie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "create_movie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "movie_title", + "camelCase": { + "unsafeName": "movieTitle", + "safeName": "movieTitle" + }, + "snakeCase": { + "unsafeName": "movie_title", + "safeName": "movie_title" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_TITLE", + "safeName": "MOVIE_TITLE" + }, + "pascalCase": { + "unsafeName": "MovieTitle", + "safeName": "MovieTitle" + } + }, + "wireValue": "movie_title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "movie_rating", + "camelCase": { + "unsafeName": "movieRating", + "safeName": "movieRating" + }, + "snakeCase": { + "unsafeName": "movie_rating", + "safeName": "movie_rating" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_RATING", + "safeName": "MOVIE_RATING" + }, + "pascalCase": { + "unsafeName": "MovieRating", + "safeName": "MovieRating" + } + }, + "wireValue": "movie_rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_imdb.get_movie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "get_movie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movies/{movie_id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "movie_id", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "wireValue": "movie_id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/undiscriminated-unions.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/undiscriminated-unions.json new file mode 100644 index 00000000000..310eacbdecd --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/undiscriminated-unions.json @@ -0,0 +1,651 @@ +{ + "version": "1.0.0", + "types": { + "type_union:TypeWithOptionalUnion": { + "type": "object", + "declaration": { + "name": { + "originalName": "TypeWithOptionalUnion", + "camelCase": { + "unsafeName": "typeWithOptionalUnion", + "safeName": "typeWithOptionalUnion" + }, + "snakeCase": { + "unsafeName": "type_with_optional_union", + "safeName": "type_with_optional_union" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE_WITH_OPTIONAL_UNION", + "safeName": "TYPE_WITH_OPTIONAL_UNION" + }, + "pascalCase": { + "unsafeName": "TypeWithOptionalUnion", + "safeName": "TypeWithOptionalUnion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "myUnion", + "camelCase": { + "unsafeName": "myUnion", + "safeName": "myUnion" + }, + "snakeCase": { + "unsafeName": "my_union", + "safeName": "my_union" + }, + "screamingSnakeCase": { + "unsafeName": "MY_UNION", + "safeName": "MY_UNION" + }, + "pascalCase": { + "unsafeName": "MyUnion", + "safeName": "MyUnion" + } + }, + "wireValue": "myUnion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_union:MyUnion" + } + } + } + ] + }, + "type_union:MyUnion": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "MyUnion", + "camelCase": { + "unsafeName": "myUnion", + "safeName": "myUnion" + }, + "snakeCase": { + "unsafeName": "my_union", + "safeName": "my_union" + }, + "screamingSnakeCase": { + "unsafeName": "MY_UNION", + "safeName": "MY_UNION" + }, + "pascalCase": { + "unsafeName": "MyUnion", + "safeName": "MyUnion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "types": [ + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "_type": "primitive", + "value": "INTEGER" + }, + { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "_type": "list", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_union:Metadata": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_union:Key" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "type_union:Key": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Key", + "camelCase": { + "unsafeName": "key", + "safeName": "key" + }, + "snakeCase": { + "unsafeName": "key", + "safeName": "key" + }, + "screamingSnakeCase": { + "unsafeName": "KEY", + "safeName": "KEY" + }, + "pascalCase": { + "unsafeName": "Key", + "safeName": "Key" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "types": [ + { + "_type": "named", + "value": "type_union:KeyType" + }, + { + "_type": "literal", + "value": { + "type": "string", + "value": "default" + } + } + ] + }, + "type_union:KeyType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "KeyType", + "camelCase": { + "unsafeName": "keyType", + "safeName": "keyType" + }, + "snakeCase": { + "unsafeName": "key_type", + "safeName": "key_type" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_TYPE", + "safeName": "KEY_TYPE" + }, + "pascalCase": { + "unsafeName": "KeyType", + "safeName": "KeyType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_union.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_union:MyUnion" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_union.getMetadata": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMetadata", + "camelCase": { + "unsafeName": "getMetadata", + "safeName": "getMetadata" + }, + "snakeCase": { + "unsafeName": "get_metadata", + "safeName": "get_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA", + "safeName": "GET_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMetadata", + "safeName": "GetMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "GET", + "path": "/metadata" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/unions.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/unions.json new file mode 100644 index 00000000000..73a3891e32c --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/unions.json @@ -0,0 +1,2708 @@ +{ + "version": "1.0.0", + "types": { + "type_types:Union": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Foo" + }, + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": null + }, + "bar": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Bar" + }, + "discriminantValue": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "properties": null + } + } + }, + "type_types:UnionWithDiscriminant": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithDiscriminant", + "camelCase": { + "unsafeName": "unionWithDiscriminant", + "safeName": "unionWithDiscriminant" + }, + "snakeCase": { + "unsafeName": "union_with_discriminant", + "safeName": "union_with_discriminant" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_DISCRIMINANT", + "safeName": "UNION_WITH_DISCRIMINANT" + }, + "pascalCase": { + "unsafeName": "UnionWithDiscriminant", + "safeName": "UnionWithDiscriminant" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "_type" + }, + "types": { + "foo": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Foo" + }, + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": null + }, + "bar": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Bar" + }, + "discriminantValue": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "properties": null + } + } + }, + "type_types:UnionWithPrimitive": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithPrimitive", + "camelCase": { + "unsafeName": "unionWithPrimitive", + "safeName": "unionWithPrimitive" + }, + "snakeCase": { + "unsafeName": "union_with_primitive", + "safeName": "union_with_primitive" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_PRIMITIVE", + "safeName": "UNION_WITH_PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "UnionWithPrimitive", + "safeName": "UnionWithPrimitive" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integer": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "properties": null + }, + "string": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "properties": null + } + } + }, + "type_types:UnionWithoutKey": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithoutKey", + "camelCase": { + "unsafeName": "unionWithoutKey", + "safeName": "unionWithoutKey" + }, + "snakeCase": { + "unsafeName": "union_without_key", + "safeName": "union_without_key" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITHOUT_KEY", + "safeName": "UNION_WITHOUT_KEY" + }, + "pascalCase": { + "unsafeName": "UnionWithoutKey", + "safeName": "UnionWithoutKey" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "bar": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Bar", + "discriminantValue": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_types:UnionWithUnknown": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithUnknown", + "camelCase": { + "unsafeName": "unionWithUnknown", + "safeName": "unionWithUnknown" + }, + "snakeCase": { + "unsafeName": "union_with_unknown", + "safeName": "union_with_unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_UNKNOWN", + "safeName": "UNION_WITH_UNKNOWN" + }, + "pascalCase": { + "unsafeName": "UnionWithUnknown", + "safeName": "UnionWithUnknown" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "unknown": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + }, + "wireValue": "unknown" + }, + "properties": null + } + } + }, + "type_types:UnionWithLiteral": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithLiteral", + "camelCase": { + "unsafeName": "unionWithLiteral", + "safeName": "unionWithLiteral" + }, + "snakeCase": { + "unsafeName": "union_with_literal", + "safeName": "union_with_literal" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_LITERAL", + "safeName": "UNION_WITH_LITERAL" + }, + "pascalCase": { + "unsafeName": "UnionWithLiteral", + "safeName": "UnionWithLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "fern": { + "type": "singleProperty", + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "fern" + } + }, + "discriminantValue": { + "name": { + "originalName": "fern", + "camelCase": { + "unsafeName": "fern", + "safeName": "fern" + }, + "snakeCase": { + "unsafeName": "fern", + "safeName": "fern" + }, + "screamingSnakeCase": { + "unsafeName": "FERN", + "safeName": "FERN" + }, + "pascalCase": { + "unsafeName": "Fern", + "safeName": "Fern" + } + }, + "wireValue": "fern" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "base", + "camelCase": { + "unsafeName": "base", + "safeName": "base" + }, + "snakeCase": { + "unsafeName": "base", + "safeName": "base" + }, + "screamingSnakeCase": { + "unsafeName": "BASE", + "safeName": "BASE" + }, + "pascalCase": { + "unsafeName": "Base", + "safeName": "Base" + } + }, + "wireValue": "base" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "base" + } + } + } + ] + } + } + }, + "type_types:UnionWithBaseProperties": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithBaseProperties", + "camelCase": { + "unsafeName": "unionWithBaseProperties", + "safeName": "unionWithBaseProperties" + }, + "snakeCase": { + "unsafeName": "union_with_base_properties", + "safeName": "union_with_base_properties" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_BASE_PROPERTIES", + "safeName": "UNION_WITH_BASE_PROPERTIES" + }, + "pascalCase": { + "unsafeName": "UnionWithBaseProperties", + "safeName": "UnionWithBaseProperties" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integer": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "string": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_types:UnionWithTime": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithTime", + "camelCase": { + "unsafeName": "unionWithTime", + "safeName": "unionWithTime" + }, + "snakeCase": { + "unsafeName": "union_with_time", + "safeName": "union_with_time" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_TIME", + "safeName": "UNION_WITH_TIME" + }, + "pascalCase": { + "unsafeName": "UnionWithTime", + "safeName": "UnionWithTime" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "value": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "properties": null + }, + "date": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DATE" + }, + "discriminantValue": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "properties": null + }, + "datetime": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + }, + "discriminantValue": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "properties": null + } + } + }, + "type_types:UnionWithOptionalTime": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithOptionalTime", + "camelCase": { + "unsafeName": "unionWithOptionalTime", + "safeName": "unionWithOptionalTime" + }, + "snakeCase": { + "unsafeName": "union_with_optional_time", + "safeName": "union_with_optional_time" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_OPTIONAL_TIME", + "safeName": "UNION_WITH_OPTIONAL_TIME" + }, + "pascalCase": { + "unsafeName": "UnionWithOptionalTime", + "safeName": "UnionWithOptionalTime" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "date": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE" + } + }, + "discriminantValue": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "properties": null + }, + "dateimte": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + "discriminantValue": { + "name": { + "originalName": "dateimte", + "camelCase": { + "unsafeName": "dateimte", + "safeName": "dateimte" + }, + "snakeCase": { + "unsafeName": "dateimte", + "safeName": "dateimte" + }, + "screamingSnakeCase": { + "unsafeName": "DATEIMTE", + "safeName": "DATEIMTE" + }, + "pascalCase": { + "unsafeName": "Dateimte", + "safeName": "Dateimte" + } + }, + "wireValue": "dateimte" + }, + "properties": null + } + } + }, + "type_types:UnionWithSingleElement": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithSingleElement", + "camelCase": { + "unsafeName": "unionWithSingleElement", + "safeName": "unionWithSingleElement" + }, + "snakeCase": { + "unsafeName": "union_with_single_element", + "safeName": "union_with_single_element" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_SINGLE_ELEMENT", + "safeName": "UNION_WITH_SINGLE_ELEMENT" + }, + "pascalCase": { + "unsafeName": "UnionWithSingleElement", + "safeName": "UnionWithSingleElement" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_types:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:Bar": { + "type": "object", + "declaration": { + "name": { + "originalName": "Bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_union:GetShapeRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetShapeRequest", + "camelCase": { + "unsafeName": "getShapeRequest", + "safeName": "getShapeRequest" + }, + "snakeCase": { + "unsafeName": "get_shape_request", + "safeName": "get_shape_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_SHAPE_REQUEST", + "safeName": "GET_SHAPE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetShapeRequest", + "safeName": "GetShapeRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_union:Shape": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "circle": { + "type": "samePropertiesAsObject", + "typeId": "type_union:Circle", + "discriminantValue": { + "name": { + "originalName": "circle", + "camelCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "snakeCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "screamingSnakeCase": { + "unsafeName": "CIRCLE", + "safeName": "CIRCLE" + }, + "pascalCase": { + "unsafeName": "Circle", + "safeName": "Circle" + } + }, + "wireValue": "circle" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "radius", + "camelCase": { + "unsafeName": "radius", + "safeName": "radius" + }, + "snakeCase": { + "unsafeName": "radius", + "safeName": "radius" + }, + "screamingSnakeCase": { + "unsafeName": "RADIUS", + "safeName": "RADIUS" + }, + "pascalCase": { + "unsafeName": "Radius", + "safeName": "Radius" + } + }, + "wireValue": "radius" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "square": { + "type": "samePropertiesAsObject", + "typeId": "type_union:Square", + "discriminantValue": { + "name": { + "originalName": "square", + "camelCase": { + "unsafeName": "square", + "safeName": "square" + }, + "snakeCase": { + "unsafeName": "square", + "safeName": "square" + }, + "screamingSnakeCase": { + "unsafeName": "SQUARE", + "safeName": "SQUARE" + }, + "pascalCase": { + "unsafeName": "Square", + "safeName": "Square" + } + }, + "wireValue": "square" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "length", + "camelCase": { + "unsafeName": "length", + "safeName": "length" + }, + "snakeCase": { + "unsafeName": "length", + "safeName": "length" + }, + "screamingSnakeCase": { + "unsafeName": "LENGTH", + "safeName": "LENGTH" + }, + "pascalCase": { + "unsafeName": "Length", + "safeName": "Length" + } + }, + "wireValue": "length" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + } + }, + "type_union:Circle": { + "type": "object", + "declaration": { + "name": { + "originalName": "Circle", + "camelCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "snakeCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "screamingSnakeCase": { + "unsafeName": "CIRCLE", + "safeName": "CIRCLE" + }, + "pascalCase": { + "unsafeName": "Circle", + "safeName": "Circle" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "radius", + "camelCase": { + "unsafeName": "radius", + "safeName": "radius" + }, + "snakeCase": { + "unsafeName": "radius", + "safeName": "radius" + }, + "screamingSnakeCase": { + "unsafeName": "RADIUS", + "safeName": "RADIUS" + }, + "pascalCase": { + "unsafeName": "Radius", + "safeName": "Radius" + } + }, + "wireValue": "radius" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_union:Square": { + "type": "object", + "declaration": { + "name": { + "originalName": "Square", + "camelCase": { + "unsafeName": "square", + "safeName": "square" + }, + "snakeCase": { + "unsafeName": "square", + "safeName": "square" + }, + "screamingSnakeCase": { + "unsafeName": "SQUARE", + "safeName": "SQUARE" + }, + "pascalCase": { + "unsafeName": "Square", + "safeName": "Square" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "length", + "camelCase": { + "unsafeName": "length", + "safeName": "length" + }, + "snakeCase": { + "unsafeName": "length", + "safeName": "length" + }, + "screamingSnakeCase": { + "unsafeName": "LENGTH", + "safeName": "LENGTH" + }, + "pascalCase": { + "unsafeName": "Length", + "safeName": "Length" + } + }, + "wireValue": "length" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_union.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "GET", + "path": "/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_union.update": { + "auth": null, + "declaration": { + "name": { + "originalName": "update", + "camelCase": { + "unsafeName": "update", + "safeName": "update" + }, + "snakeCase": { + "unsafeName": "update", + "safeName": "update" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE", + "safeName": "UPDATE" + }, + "pascalCase": { + "unsafeName": "Update", + "safeName": "Update" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "PATCH", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_union:Shape" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/unknown.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/unknown.json new file mode 100644 index 00000000000..f25a918835e --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/unknown.json @@ -0,0 +1,343 @@ +{ + "version": "1.0.0", + "types": { + "type_unknown:MyAlias": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MyAlias", + "camelCase": { + "unsafeName": "myAlias", + "safeName": "myAlias" + }, + "snakeCase": { + "unsafeName": "my_alias", + "safeName": "my_alias" + }, + "screamingSnakeCase": { + "unsafeName": "MY_ALIAS", + "safeName": "MY_ALIAS" + }, + "pascalCase": { + "unsafeName": "MyAlias", + "safeName": "MyAlias" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "typeReference": { + "_type": "unknown" + } + }, + "type_unknown:MyObject": { + "type": "object", + "declaration": { + "name": { + "originalName": "MyObject", + "camelCase": { + "unsafeName": "myObject", + "safeName": "myObject" + }, + "snakeCase": { + "unsafeName": "my_object", + "safeName": "my_object" + }, + "screamingSnakeCase": { + "unsafeName": "MY_OBJECT", + "safeName": "MY_OBJECT" + }, + "pascalCase": { + "unsafeName": "MyObject", + "safeName": "MyObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + }, + "wireValue": "unknown" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_unknown.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_unknown.postObject": { + "auth": null, + "declaration": { + "name": { + "originalName": "postObject", + "camelCase": { + "unsafeName": "postObject", + "safeName": "postObject" + }, + "snakeCase": { + "unsafeName": "post_object", + "safeName": "post_object" + }, + "screamingSnakeCase": { + "unsafeName": "POST_OBJECT", + "safeName": "POST_OBJECT" + }, + "pascalCase": { + "unsafeName": "PostObject", + "safeName": "PostObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "location": { + "method": "POST", + "path": "/with-object" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_unknown:MyObject" + } + } + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/validation.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/validation.json new file mode 100644 index 00000000000..c0b2a8aa89f --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/validation.json @@ -0,0 +1,752 @@ +{ + "version": "1.0.0", + "types": { + "type_:SmallInteger": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SmallInteger", + "camelCase": { + "unsafeName": "smallInteger", + "safeName": "smallInteger" + }, + "snakeCase": { + "unsafeName": "small_integer", + "safeName": "small_integer" + }, + "screamingSnakeCase": { + "unsafeName": "SMALL_INTEGER", + "safeName": "SMALL_INTEGER" + }, + "pascalCase": { + "unsafeName": "SmallInteger", + "safeName": "SmallInteger" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + "type_:LargeInteger": { + "type": "alias", + "declaration": { + "name": { + "originalName": "LargeInteger", + "camelCase": { + "unsafeName": "largeInteger", + "safeName": "largeInteger" + }, + "snakeCase": { + "unsafeName": "large_integer", + "safeName": "large_integer" + }, + "screamingSnakeCase": { + "unsafeName": "LARGE_INTEGER", + "safeName": "LARGE_INTEGER" + }, + "pascalCase": { + "unsafeName": "LargeInteger", + "safeName": "LargeInteger" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + "type_:Double": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Double", + "camelCase": { + "unsafeName": "double", + "safeName": "double" + }, + "snakeCase": { + "unsafeName": "double", + "safeName": "double" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE", + "safeName": "DOUBLE" + }, + "pascalCase": { + "unsafeName": "Double", + "safeName": "Double" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + "type_:Word": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Word", + "camelCase": { + "unsafeName": "word", + "safeName": "word" + }, + "snakeCase": { + "unsafeName": "word", + "safeName": "word" + }, + "screamingSnakeCase": { + "unsafeName": "WORD", + "safeName": "WORD" + }, + "pascalCase": { + "unsafeName": "Word", + "safeName": "Word" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_:Sentence": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Sentence", + "camelCase": { + "unsafeName": "sentence", + "safeName": "sentence" + }, + "snakeCase": { + "unsafeName": "sentence", + "safeName": "sentence" + }, + "screamingSnakeCase": { + "unsafeName": "SENTENCE", + "safeName": "SENTENCE" + }, + "pascalCase": { + "unsafeName": "Sentence", + "safeName": "Sentence" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_:Shape": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "SQUARE", + "camelCase": { + "unsafeName": "square", + "safeName": "square" + }, + "snakeCase": { + "unsafeName": "square", + "safeName": "square" + }, + "screamingSnakeCase": { + "unsafeName": "SQUARE", + "safeName": "SQUARE" + }, + "pascalCase": { + "unsafeName": "Square", + "safeName": "Square" + } + }, + "wireValue": "SQUARE" + }, + { + "name": { + "originalName": "CIRCLE", + "camelCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "snakeCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "screamingSnakeCase": { + "unsafeName": "CIRCLE", + "safeName": "CIRCLE" + }, + "pascalCase": { + "unsafeName": "Circle", + "safeName": "Circle" + } + }, + "wireValue": "CIRCLE" + }, + { + "name": { + "originalName": "TRIANGLE", + "camelCase": { + "unsafeName": "triangle", + "safeName": "triangle" + }, + "snakeCase": { + "unsafeName": "triangle", + "safeName": "triangle" + }, + "screamingSnakeCase": { + "unsafeName": "TRIANGLE", + "safeName": "TRIANGLE" + }, + "pascalCase": { + "unsafeName": "Triangle", + "safeName": "Triangle" + } + }, + "wireValue": "TRIANGLE" + } + ] + }, + "type_:Type": { + "type": "object", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "decimal", + "camelCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "snakeCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "screamingSnakeCase": { + "unsafeName": "DECIMAL", + "safeName": "DECIMAL" + }, + "pascalCase": { + "unsafeName": "Decimal", + "safeName": "Decimal" + } + }, + "wireValue": "decimal" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "even", + "camelCase": { + "unsafeName": "even", + "safeName": "even" + }, + "snakeCase": { + "unsafeName": "even", + "safeName": "even" + }, + "screamingSnakeCase": { + "unsafeName": "EVEN", + "safeName": "EVEN" + }, + "pascalCase": { + "unsafeName": "Even", + "safeName": "Even" + } + }, + "wireValue": "even" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "wireValue": "shape" + }, + "typeReference": { + "_type": "named", + "value": "type_:Shape" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.create": { + "auth": null, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/create" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateRequest", + "camelCase": { + "unsafeName": "createRequest", + "safeName": "createRequest" + }, + "snakeCase": { + "unsafeName": "create_request", + "safeName": "create_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_REQUEST", + "safeName": "CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateRequest", + "safeName": "CreateRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "decimal", + "camelCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "snakeCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "screamingSnakeCase": { + "unsafeName": "DECIMAL", + "safeName": "DECIMAL" + }, + "pascalCase": { + "unsafeName": "Decimal", + "safeName": "Decimal" + } + }, + "wireValue": "decimal" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "even", + "camelCase": { + "unsafeName": "even", + "safeName": "even" + }, + "snakeCase": { + "unsafeName": "even", + "safeName": "even" + }, + "screamingSnakeCase": { + "unsafeName": "EVEN", + "safeName": "EVEN" + }, + "pascalCase": { + "unsafeName": "Even", + "safeName": "Even" + } + }, + "wireValue": "even" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "wireValue": "shape" + }, + "typeReference": { + "_type": "named", + "value": "type_:Shape" + } + } + ] + } + }, + "response": { + "type": "json" + } + }, + "endpoint_.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetRequest", + "camelCase": { + "unsafeName": "getRequest", + "safeName": "getRequest" + }, + "snakeCase": { + "unsafeName": "get_request", + "safeName": "get_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_REQUEST", + "safeName": "GET_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetRequest", + "safeName": "GetRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "decimal", + "camelCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "snakeCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "screamingSnakeCase": { + "unsafeName": "DECIMAL", + "safeName": "DECIMAL" + }, + "pascalCase": { + "unsafeName": "Decimal", + "safeName": "Decimal" + } + }, + "wireValue": "decimal" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "even", + "camelCase": { + "unsafeName": "even", + "safeName": "even" + }, + "snakeCase": { + "unsafeName": "even", + "safeName": "even" + }, + "screamingSnakeCase": { + "unsafeName": "EVEN", + "safeName": "EVEN" + }, + "pascalCase": { + "unsafeName": "Even", + "safeName": "Even" + } + }, + "wireValue": "even" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/variables.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/variables.json new file mode 100644 index 00000000000..c53a47d972d --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/variables.json @@ -0,0 +1,115 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/{endpointParam}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "endpointParam", + "camelCase": { + "unsafeName": "endpointParam", + "safeName": "endpointParam" + }, + "snakeCase": { + "unsafeName": "endpoint_param", + "safeName": "endpoint_param" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT_PARAM", + "safeName": "ENDPOINT_PARAM" + }, + "pascalCase": { + "unsafeName": "EndpointParam", + "safeName": "EndpointParam" + } + }, + "wireValue": "endpointParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/version-no-default.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/version-no-default.json new file mode 100644 index 00000000000..e188531a13b --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/version-no-default.json @@ -0,0 +1,312 @@ +{ + "version": "1.0.0", + "types": { + "type_user:UserId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "UserId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUser", + "camelCase": { + "unsafeName": "getUser", + "safeName": "getUser" + }, + "snakeCase": { + "unsafeName": "get_user", + "safeName": "get_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USER", + "safeName": "GET_USER" + }, + "pascalCase": { + "unsafeName": "GetUser", + "safeName": "GetUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/{userId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/version.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/version.json new file mode 100644 index 00000000000..e188531a13b --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/version.json @@ -0,0 +1,312 @@ +{ + "version": "1.0.0", + "types": { + "type_user:UserId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "UserId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUser", + "camelCase": { + "unsafeName": "getUser", + "safeName": "getUser" + }, + "snakeCase": { + "unsafeName": "get_user", + "safeName": "get_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USER", + "safeName": "GET_USER" + }, + "pascalCase": { + "unsafeName": "GetUser", + "safeName": "GetUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/{userId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/websocket.json b/packages/cli/dynamic-snippets/src/__test__/test-definitions/websocket.json new file mode 100644 index 00000000000..9b5b435bd08 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/__test__/test-definitions/websocket.json @@ -0,0 +1,6 @@ +{ + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": {} +} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/convertIrToDynamicSnippetsIr.ts b/packages/cli/dynamic-snippets/src/convertIrToDynamicSnippetsIr.ts new file mode 100644 index 00000000000..1cd95953c83 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/convertIrToDynamicSnippetsIr.ts @@ -0,0 +1,9 @@ +import { dynamic as DynamicSnippets, IntermediateRepresentation } from "@fern-api/ir-sdk"; +import { DynamicSnippetsConverter } from "./DynamicSnippetsConverter"; + +export async function convertIrToDynamicSnippetsIr( + ir: IntermediateRepresentation +): Promise { + const converter = new DynamicSnippetsConverter(ir); + return converter.convert(); +} diff --git a/packages/cli/dynamic-snippets/src/index.ts b/packages/cli/dynamic-snippets/src/index.ts new file mode 100644 index 00000000000..7287c37ba8f --- /dev/null +++ b/packages/cli/dynamic-snippets/src/index.ts @@ -0,0 +1 @@ +export { convertIrToDynamicSnippetsIr } from "./convertIrToDynamicSnippetsIr"; diff --git a/packages/cli/dynamic-snippets/src/version.ts b/packages/cli/dynamic-snippets/src/version.ts new file mode 100644 index 00000000000..35f7eebbea6 --- /dev/null +++ b/packages/cli/dynamic-snippets/src/version.ts @@ -0,0 +1 @@ +export const Version = "1.0.0"; diff --git a/packages/cli/dynamic-snippets/tsconfig.json b/packages/cli/dynamic-snippets/tsconfig.json new file mode 100644 index 00000000000..dbf874b338d --- /dev/null +++ b/packages/cli/dynamic-snippets/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../../shared/tsconfig.shared.json", + "compilerOptions": { "composite": true, "outDir": "lib", "rootDir": "src" }, + "include": ["./src/**/*"], + "references": [ + { "path": "../../commons/core-utils" }, + { "path": "../../commons/fs-utils" }, + { "path": "../../ir-sdk" }, + { "path": "../logger" }, + { "path": "../task-context" } + ] +} diff --git a/packages/cli/dynamic-snippets/vitest.config.ts b/packages/cli/dynamic-snippets/vitest.config.ts new file mode 100644 index 00000000000..fecc099c58a --- /dev/null +++ b/packages/cli/dynamic-snippets/vitest.config.ts @@ -0,0 +1 @@ +export { default } from "../../../shared/vitest.config"; diff --git a/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/dyanmic.test.ts.snap b/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/dyanmic.test.ts.snap new file mode 100644 index 00000000000..481879bfbba --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/dyanmic.test.ts.snap @@ -0,0 +1,3 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`fdr > {"name":"simple"} 1`] = `"{"version":"1.0.0","types":{"type_commons:UndiscriminatedUnion":{"declaration":{"name":{"originalName":"UndiscriminatedUnion","camelCase":{"unsafeName":"undiscriminatedUnion","safeName":"undiscriminatedUnion"},"snakeCase":{"unsafeName":"undiscriminated_union","safeName":"undiscriminated_union"},"screamingSnakeCase":{"unsafeName":"UNDISCRIMINATED_UNION","safeName":"UNDISCRIMINATED_UNION"},"pascalCase":{"unsafeName":"UndiscriminatedUnion","safeName":"UndiscriminatedUnion"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"types":[{"value":"STRING","type":"primitive"},{"value":{"value":"STRING","type":"primitive"},"type":"list"},{"value":"INTEGER","type":"primitive"},{"value":{"value":{"value":"INTEGER","type":"primitive"},"type":"list"},"type":"list"}],"type":"undiscriminatedUnion"},"type_director:Director":{"declaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"typeReference":{"value":"type_director:Age","type":"named"}}],"type":"object"},"type_director:Age":{"declaration":{"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"typeReference":{"value":"INTEGER","type":"primitive"},"type":"alias"},"type_director:LiteralString":{"declaration":{"name":{"originalName":"LiteralString","camelCase":{"unsafeName":"literalString","safeName":"literalString"},"snakeCase":{"unsafeName":"literal_string","safeName":"literal_string"},"screamingSnakeCase":{"unsafeName":"LITERAL_STRING","safeName":"LITERAL_STRING"},"pascalCase":{"unsafeName":"LiteralString","safeName":"LiteralString"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"typeReference":{"value":{"value":"hello","type":"string"},"type":"literal"},"type":"alias"},"type_imdb:CurrencyAmount":{"declaration":{"name":{"originalName":"CurrencyAmount","camelCase":{"unsafeName":"currencyAmount","safeName":"currencyAmount"},"snakeCase":{"unsafeName":"currency_amount","safeName":"currency_amount"},"screamingSnakeCase":{"unsafeName":"CURRENCY_AMOUNT","safeName":"CURRENCY_AMOUNT"},"pascalCase":{"unsafeName":"CurrencyAmount","safeName":"CurrencyAmount"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"value":"STRING","type":"primitive"},"type":"alias"},"type_imdb:MovieId":{"declaration":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"value":"STRING","type":"primitive"},"type":"alias"},"type_imdb:ActorId":{"declaration":{"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"value":"STRING","type":"primitive"},"type":"alias"},"type_imdb:Movie":{"declaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"typeReference":{"value":"DOUBLE","type":"primitive"}}],"type":"object"},"type_imdb:CreateMovieRequest":{"declaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"typeReference":{"value":{"value":"DOUBLE","type":"primitive"},"type":"list"}}],"type":"object"},"type_imdb:DirectorWrapper":{"declaration":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"typeReference":{"value":"type_director:Director","type":"named"}}],"type":"object"},"type_imdb:EmptyObject":{"declaration":{"name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[],"type":"object"},"type_imdb:Person":{"declaration":{"name":{"originalName":"Person","camelCase":{"unsafeName":"person","safeName":"person"},"snakeCase":{"unsafeName":"person","safeName":"person"},"screamingSnakeCase":{"unsafeName":"PERSON","safeName":"PERSON"},"pascalCase":{"unsafeName":"Person","safeName":"Person"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"types":{"actor":{"typeReference":{"value":"type_imdb:ActorId","type":"named"},"discriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"type":"singleProperty"},"director":{"typeId":"type_director:Director","discriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"typeReference":{"value":"type_director:Age","type":"named"}}],"type":"samePropertiesAsObject"},"producer":{"typeId":"type_imdb:EmptyObject","discriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"properties":[],"type":"samePropertiesAsObject"},"cinematographer":{"typeId":"type_imdb:EmptyObject","discriminantValue":{"name":{"originalName":"cinematographer","camelCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"snakeCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"screamingSnakeCase":{"unsafeName":"CINEMATOGRAPHER","safeName":"CINEMATOGRAPHER"},"pascalCase":{"unsafeName":"Cinematographer","safeName":"Cinematographer"}},"wireValue":"cinematographer"},"properties":[],"type":"samePropertiesAsObject"}},"type":"discriminatedUnion"},"type_imdb:RecursiveType":{"declaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"typeReference":{"value":{"value":"DOUBLE","type":"primitive"},"type":"list"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"typeReference":{"value":{"value":"type_imdb:RecursiveType","type":"named"},"type":"list"}}],"type":"object"}},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"typeReference":{"value":{"value":"STRING","type":"primitive"},"type":"optional"}}],"endpoints":{"endpoint_imdb.createMovie":{"declaration":{"name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies"},"request":{"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}}],"body":{"value":{"value":"type_imdb:CreateMovieRequest","type":"named"},"type":"typeReference"},"type":"body"},"response":{"type":"json"}},"endpoint_imdb.getMovie":{"declaration":{"name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"GET","path":"/test/{rootPathParam}/movies/{movieId}"},"request":{"declaration":{"name":{"originalName":"GetMovieRequest","camelCase":{"unsafeName":"getMovieRequest","safeName":"getMovieRequest"},"snakeCase":{"unsafeName":"get_movie_request","safeName":"get_movie_request"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_REQUEST","safeName":"GET_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"GetMovieRequest","safeName":"GetMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"typeReference":{"value":"STRING","type":"primitive"}}],"headers":[],"type":"inlined"},"response":{"type":"json"}},"endpoint_imdb.delete":{"declaration":{"name":{"originalName":"delete","camelCase":{"unsafeName":"delete","safeName":"delete"},"snakeCase":{"unsafeName":"delete","safeName":"delete"},"screamingSnakeCase":{"unsafeName":"DELETE","safeName":"DELETE"},"pascalCase":{"unsafeName":"Delete","safeName":"Delete"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"DELETE","path":"/test/{rootPathParam}/movies/{movieId}"},"request":{"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}}],"type":"body"},"response":{"type":"json"}},"endpoint_imdb.upload":{"declaration":{"name":{"originalName":"upload","camelCase":{"unsafeName":"upload","safeName":"upload"},"snakeCase":{"unsafeName":"upload","safeName":"upload"},"screamingSnakeCase":{"unsafeName":"UPLOAD","safeName":"UPLOAD"},"pascalCase":{"unsafeName":"Upload","safeName":"Upload"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies/upload/{movieId}"},"request":{"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}}],"body":{"type":"bytes"},"type":"body"},"response":{"type":"json"}}}}"`; diff --git a/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/fdr.test.ts.snap b/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/fdr.test.ts.snap new file mode 100644 index 00000000000..23722ee3168 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/fdr.test.ts.snap @@ -0,0 +1,1695 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`fdr > {"name":"changelog"} 1`] = ` +"{ + "types": { + "type_commons:UndiscriminatedUnion": { + "name": "UndiscriminatedUnion", + "shape": { + "type": "undiscriminatedUnion", + "variants": [ + { + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "type": { + "type": "list", + "itemType": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + { + "type": { + "type": "primitive", + "value": { + "type": "integer" + } + } + }, + { + "type": { + "type": "list", + "itemType": { + "type": "list", + "itemType": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } + } + } + ] + } + }, + "type_director:Director": { + "name": "Director", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "name", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "age", + "valueType": { + "type": "id", + "value": "type_director:Age" + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_director:Age": { + "name": "Age", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } + }, + "type_director:LiteralString": { + "name": "LiteralString", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "hello" + } + } + } + }, + "type_imdb:CurrencyAmount": { + "name": "CurrencyAmount", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + "type_imdb:MovieId": { + "name": "MovieId", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + "type_imdb:ActorId": { + "name": "ActorId", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + "type_imdb:Movie": { + "name": "Movie", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "id", + "valueType": { + "type": "id", + "value": "type_imdb:MovieId" + } + }, + { + "key": "title", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "rating", + "valueType": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:CreateMovieRequest": { + "name": "CreateMovieRequest", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "title", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "ratings", + "valueType": { + "type": "list", + "itemType": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:DirectorWrapper": { + "name": "DirectorWrapper", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "director", + "valueType": { + "type": "id", + "value": "type_director:Director" + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:EmptyObject": { + "name": "EmptyObject", + "shape": { + "type": "object", + "extends": [], + "properties": [], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:Person": { + "name": "Person", + "shape": { + "type": "discriminatedUnion", + "discriminant": "type", + "variants": [ + { + "discriminantValue": "actor", + "additionalProperties": { + "extends": [], + "properties": [ + { + "key": "value", + "valueType": { + "type": "id", + "value": "type_imdb:ActorId" + } + } + ] + } + }, + { + "discriminantValue": "director", + "additionalProperties": { + "extends": [ + "type_director:Director" + ], + "properties": [] + } + }, + { + "discriminantValue": "producer", + "additionalProperties": { + "extends": [ + "type_imdb:EmptyObject" + ], + "properties": [] + } + }, + { + "description": "i am docs", + "discriminantValue": "cinematographer", + "additionalProperties": { + "extends": [ + "type_imdb:EmptyObject" + ], + "properties": [] + } + } + ] + } + }, + "type_imdb:RecursiveType": { + "name": "RecursiveType", + "shape": { + "type": "object", + "extends": [ + "type_imdb:CreateMovieRequest" + ], + "properties": [ + { + "key": "selfReferencing", + "valueType": { + "type": "list", + "itemType": { + "type": "id", + "value": "type_imdb:RecursiveType" + } + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + } + }, + "subpackages": { + "subpackage_commons": { + "subpackageId": "subpackage_commons", + "name": "commons", + "endpoints": [], + "webhooks": [], + "websockets": [], + "types": [ + "type_commons:UndiscriminatedUnion" + ], + "subpackages": [] + }, + "subpackage_director": { + "subpackageId": "subpackage_director", + "name": "director", + "endpoints": [], + "webhooks": [], + "websockets": [], + "types": [ + "type_director:Director", + "type_director:Age", + "type_director:LiteralString" + ], + "subpackages": [] + }, + "subpackage_imdb": { + "subpackageId": "subpackage_imdb", + "name": "imdb", + "endpoints": [ + { + "auth": false, + "method": "POST", + "id": "createMovie", + "originalEndpointId": "endpoint_imdb.createMovie", + "name": "Create Movie", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [], + "headers": [], + "request": { + "type": { + "type": "json", + "contentType": "application/json", + "shape": { + "type": "reference", + "value": { + "type": "id", + "value": "type_imdb:CreateMovieRequest" + } + } + } + }, + "response": { + "type": { + "type": "reference", + "value": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + }, + "errorsV2": [ + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [ + { + "path": "/test/root/movies", + "pathParameters": { + "rootPathParam": "root" + }, + "queryParameters": {}, + "headers": {}, + "requestBody": { + "title": "Shrek", + "ratings": [ + 10, + 10, + 10, + 10 + ] + }, + "requestBodyV3": { + "type": "json", + "value": { + "title": "Shrek", + "ratings": [ + 10, + 10, + 10, + 10 + ] + } + }, + "responseStatusCode": 200, + "responseBody": "shrek-123", + "responseBodyV3": { + "type": "json", + "value": "shrek-123" + } + }, + { + "path": "/test/root/movies", + "pathParameters": { + "rootPathParam": "root" + }, + "queryParameters": {}, + "headers": {}, + "requestBody": { + "title": "Winnie the Pooh", + "ratings": [ + 1, + 2, + 3 + ] + }, + "requestBodyV3": { + "type": "json", + "value": { + "title": "Winnie the Pooh", + "ratings": [ + 1, + 2, + 3 + ] + } + }, + "responseStatusCode": 200, + "responseBody": "shrek-123", + "responseBodyV3": { + "type": "json", + "value": "shrek-123" + } + } + ] + }, + { + "auth": false, + "method": "GET", + "id": "getMovie", + "originalEndpointId": "endpoint_imdb.getMovie", + "name": "Get Movie by Id", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "movieId", + "type": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "/" + }, + { + "type": "pathParameter", + "value": "movieId" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [ + { + "key": "movieName", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + ], + "headers": [], + "response": { + "type": { + "type": "reference", + "value": { + "type": "id", + "value": "type_imdb:Movie" + } + } + }, + "errorsV2": [ + { + "type": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "error", + "valueType": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "NotFoundError" + } + } + }, + { + "key": "content", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + ] + }, + "statusCode": 404, + "name": "NotFoundError", + "examples": [] + }, + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [ + { + "path": "/test/root/movies/id-123", + "pathParameters": { + "rootPathParam": "root", + "movieId": "id-123" + }, + "queryParameters": { + "movieName": "hello" + }, + "headers": {}, + "responseStatusCode": 200, + "responseBody": { + "id": "id-123", + "title": "Shrek", + "rating": 10 + }, + "responseBodyV3": { + "type": "json", + "value": { + "id": "id-123", + "title": "Shrek", + "rating": 10 + } + } + }, + { + "path": "/test/root/movies/id-123", + "pathParameters": { + "rootPathParam": "root", + "movieId": "id-123" + }, + "queryParameters": { + "movieName": "hello" + }, + "headers": {}, + "responseStatusCode": 404, + "responseBody": "id-123", + "responseBodyV3": { + "type": "json", + "value": "id-123" + } + } + ] + }, + { + "auth": false, + "method": "DELETE", + "id": "delete", + "originalEndpointId": "endpoint_imdb.delete", + "name": "Delete", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "movieId", + "type": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "/" + }, + { + "type": "pathParameter", + "value": "movieId" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [], + "headers": [], + "errorsV2": [ + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [ + { + "path": "/test/rootPathParam/movies/movieId", + "pathParameters": { + "rootPathParam": "rootPathParam", + "movieId": "movieId" + }, + "queryParameters": {}, + "headers": {}, + "responseStatusCode": 204, + "codeSamples": [] + } + ] + }, + { + "auth": false, + "method": "POST", + "id": "upload", + "originalEndpointId": "endpoint_imdb.upload", + "name": "Upload", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "movieId", + "type": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "/upload/" + }, + { + "type": "pathParameter", + "value": "movieId" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [], + "headers": [], + "request": { + "type": { + "type": "bytes", + "isOptional": false + } + }, + "errorsV2": [ + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [] + } + ], + "webhooks": [], + "websockets": [], + "types": [ + "type_imdb:CurrencyAmount", + "type_imdb:MovieId", + "type_imdb:ActorId", + "type_imdb:Movie", + "type_imdb:CreateMovieRequest", + "type_imdb:DirectorWrapper", + "type_imdb:EmptyObject", + "type_imdb:Person", + "type_imdb:RecursiveType" + ], + "subpackages": [] + } + }, + "rootPackage": { + "endpoints": [], + "webhooks": [], + "websockets": [], + "types": [], + "subpackages": [ + "subpackage_commons", + "subpackage_director", + "subpackage_imdb" + ] + }, + "snippetsConfiguration": {}, + "globalHeaders": [ + { + "key": "X-API-VERSION", + "type": { + "type": "optional", + "itemType": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + ] +}" +`; + +exports[`fdr > {"name":"simple"} 1`] = ` +"{ + "types": { + "type_commons:UndiscriminatedUnion": { + "name": "UndiscriminatedUnion", + "shape": { + "type": "undiscriminatedUnion", + "variants": [ + { + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "type": { + "type": "list", + "itemType": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + { + "type": { + "type": "primitive", + "value": { + "type": "integer" + } + } + }, + { + "type": { + "type": "list", + "itemType": { + "type": "list", + "itemType": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } + } + } + ] + } + }, + "type_director:Director": { + "name": "Director", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "name", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "age", + "valueType": { + "type": "id", + "value": "type_director:Age" + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_director:Age": { + "name": "Age", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "integer" + } + } + } + }, + "type_director:LiteralString": { + "name": "LiteralString", + "shape": { + "type": "alias", + "value": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "hello" + } + } + } + }, + "type_imdb:CurrencyAmount": { + "name": "CurrencyAmount", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + "type_imdb:MovieId": { + "name": "MovieId", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + "type_imdb:ActorId": { + "name": "ActorId", + "shape": { + "type": "alias", + "value": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + }, + "type_imdb:Movie": { + "name": "Movie", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "id", + "valueType": { + "type": "id", + "value": "type_imdb:MovieId" + } + }, + { + "key": "title", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "rating", + "valueType": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:CreateMovieRequest": { + "name": "CreateMovieRequest", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "title", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "ratings", + "valueType": { + "type": "list", + "itemType": { + "type": "primitive", + "value": { + "type": "double" + } + } + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:DirectorWrapper": { + "name": "DirectorWrapper", + "shape": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "director", + "valueType": { + "type": "id", + "value": "type_director:Director" + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:EmptyObject": { + "name": "EmptyObject", + "shape": { + "type": "object", + "extends": [], + "properties": [], + "extraProperties": { + "type": "unknown" + } + } + }, + "type_imdb:Person": { + "name": "Person", + "shape": { + "type": "discriminatedUnion", + "discriminant": "type", + "variants": [ + { + "discriminantValue": "actor", + "additionalProperties": { + "extends": [], + "properties": [ + { + "key": "value", + "valueType": { + "type": "id", + "value": "type_imdb:ActorId" + } + } + ] + } + }, + { + "discriminantValue": "director", + "additionalProperties": { + "extends": [ + "type_director:Director" + ], + "properties": [] + } + }, + { + "discriminantValue": "producer", + "additionalProperties": { + "extends": [ + "type_imdb:EmptyObject" + ], + "properties": [] + } + }, + { + "description": "i am docs", + "discriminantValue": "cinematographer", + "additionalProperties": { + "extends": [ + "type_imdb:EmptyObject" + ], + "properties": [] + } + } + ] + } + }, + "type_imdb:RecursiveType": { + "name": "RecursiveType", + "shape": { + "type": "object", + "extends": [ + "type_imdb:CreateMovieRequest" + ], + "properties": [ + { + "key": "selfReferencing", + "valueType": { + "type": "list", + "itemType": { + "type": "id", + "value": "type_imdb:RecursiveType" + } + } + } + ], + "extraProperties": { + "type": "unknown" + } + } + } + }, + "subpackages": { + "subpackage_commons": { + "subpackageId": "subpackage_commons", + "name": "commons", + "endpoints": [], + "webhooks": [], + "websockets": [], + "types": [ + "type_commons:UndiscriminatedUnion" + ], + "subpackages": [] + }, + "subpackage_director": { + "subpackageId": "subpackage_director", + "name": "director", + "endpoints": [], + "webhooks": [], + "websockets": [], + "types": [ + "type_director:Director", + "type_director:Age", + "type_director:LiteralString" + ], + "subpackages": [] + }, + "subpackage_imdb": { + "subpackageId": "subpackage_imdb", + "name": "imdb", + "endpoints": [ + { + "auth": false, + "method": "POST", + "id": "createMovie", + "originalEndpointId": "endpoint_imdb.createMovie", + "name": "Create Movie", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [], + "headers": [], + "request": { + "type": { + "type": "json", + "contentType": "application/json", + "shape": { + "type": "reference", + "value": { + "type": "id", + "value": "type_imdb:CreateMovieRequest" + } + } + } + }, + "response": { + "type": { + "type": "reference", + "value": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + }, + "errorsV2": [ + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [ + { + "path": "/test/root/movies", + "pathParameters": { + "rootPathParam": "root" + }, + "queryParameters": {}, + "headers": {}, + "requestBody": { + "title": "Shrek", + "ratings": [ + 10, + 10, + 10, + 10 + ] + }, + "requestBodyV3": { + "type": "json", + "value": { + "title": "Shrek", + "ratings": [ + 10, + 10, + 10, + 10 + ] + } + }, + "responseStatusCode": 200, + "responseBody": "shrek-123", + "responseBodyV3": { + "type": "json", + "value": "shrek-123" + } + }, + { + "path": "/test/root/movies", + "pathParameters": { + "rootPathParam": "root" + }, + "queryParameters": {}, + "headers": {}, + "requestBody": { + "title": "Winnie the Pooh", + "ratings": [ + 1, + 2, + 3 + ] + }, + "requestBodyV3": { + "type": "json", + "value": { + "title": "Winnie the Pooh", + "ratings": [ + 1, + 2, + 3 + ] + } + }, + "responseStatusCode": 200, + "responseBody": "shrek-123", + "responseBodyV3": { + "type": "json", + "value": "shrek-123" + } + } + ] + }, + { + "auth": false, + "method": "GET", + "id": "getMovie", + "originalEndpointId": "endpoint_imdb.getMovie", + "name": "Get Movie by Id", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "movieId", + "type": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "/" + }, + { + "type": "pathParameter", + "value": "movieId" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [ + { + "key": "movieName", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + ], + "headers": [], + "response": { + "type": { + "type": "reference", + "value": { + "type": "id", + "value": "type_imdb:Movie" + } + } + }, + "errorsV2": [ + { + "type": { + "type": "object", + "extends": [], + "properties": [ + { + "key": "error", + "valueType": { + "type": "literal", + "value": { + "type": "stringLiteral", + "value": "NotFoundError" + } + } + }, + { + "key": "content", + "valueType": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + ] + }, + "statusCode": 404, + "name": "NotFoundError", + "examples": [] + }, + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [ + { + "path": "/test/root/movies/id-123", + "pathParameters": { + "rootPathParam": "root", + "movieId": "id-123" + }, + "queryParameters": { + "movieName": "hello" + }, + "headers": {}, + "responseStatusCode": 200, + "responseBody": { + "id": "id-123", + "title": "Shrek", + "rating": 10 + }, + "responseBodyV3": { + "type": "json", + "value": { + "id": "id-123", + "title": "Shrek", + "rating": 10 + } + } + }, + { + "path": "/test/root/movies/id-123", + "pathParameters": { + "rootPathParam": "root", + "movieId": "id-123" + }, + "queryParameters": { + "movieName": "hello" + }, + "headers": {}, + "responseStatusCode": 404, + "responseBody": "id-123", + "responseBodyV3": { + "type": "json", + "value": "id-123" + } + } + ] + }, + { + "auth": false, + "method": "DELETE", + "id": "delete", + "originalEndpointId": "endpoint_imdb.delete", + "name": "Delete", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "movieId", + "type": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "/" + }, + { + "type": "pathParameter", + "value": "movieId" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [], + "headers": [], + "errorsV2": [ + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [ + { + "path": "/test/rootPathParam/movies/movieId", + "pathParameters": { + "rootPathParam": "rootPathParam", + "movieId": "movieId" + }, + "queryParameters": {}, + "headers": {}, + "responseStatusCode": 204, + "codeSamples": [] + } + ] + }, + { + "auth": false, + "method": "POST", + "id": "upload", + "originalEndpointId": "endpoint_imdb.upload", + "name": "Upload", + "path": { + "pathParameters": [ + { + "key": "rootPathParam", + "type": { + "type": "primitive", + "value": { + "type": "string" + } + } + }, + { + "key": "movieId", + "type": { + "type": "id", + "value": "type_imdb:MovieId" + } + } + ], + "parts": [ + { + "type": "literal", + "value": "/test/" + }, + { + "type": "pathParameter", + "value": "rootPathParam" + }, + { + "type": "literal", + "value": "" + }, + { + "type": "literal", + "value": "/movies" + }, + { + "type": "literal", + "value": "/upload/" + }, + { + "type": "pathParameter", + "value": "movieId" + }, + { + "type": "literal", + "value": "" + } + ] + }, + "queryParameters": [], + "headers": [], + "request": { + "type": { + "type": "bytes", + "isOptional": false + } + }, + "errorsV2": [ + { + "statusCode": 400, + "name": "BadRequestError", + "examples": [] + } + ], + "examples": [] + } + ], + "webhooks": [], + "websockets": [], + "types": [ + "type_imdb:CurrencyAmount", + "type_imdb:MovieId", + "type_imdb:ActorId", + "type_imdb:Movie", + "type_imdb:CreateMovieRequest", + "type_imdb:DirectorWrapper", + "type_imdb:EmptyObject", + "type_imdb:Person", + "type_imdb:RecursiveType" + ], + "subpackages": [] + } + }, + "rootPackage": { + "endpoints": [], + "webhooks": [], + "websockets": [], + "types": [], + "subpackages": [ + "subpackage_commons", + "subpackage_director", + "subpackage_imdb" + ] + }, + "snippetsConfiguration": {}, + "globalHeaders": [ + { + "key": "X-API-VERSION", + "type": { + "type": "optional", + "itemType": { + "type": "primitive", + "value": { + "type": "string" + } + } + } + } + ] +}" +`; diff --git a/packages/cli/ete-tests/src/tests/dynamic/dyanmic.test.ts b/packages/cli/ete-tests/src/tests/dynamic/dyanmic.test.ts new file mode 100644 index 00000000000..a243f5e3a5c --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/dyanmic.test.ts @@ -0,0 +1,40 @@ +import { AbsoluteFilePath, join, RelativeFilePath } from "@fern-api/fs-utils"; +import { generatorsYml } from "@fern-api/configuration"; +import { generateDynamicIrAsString } from "./generateDynamicIrAsString"; + +const FIXTURES_DIR = join(AbsoluteFilePath.of(__dirname), RelativeFilePath.of("fixtures")); + +const FIXTURES: Fixture[] = [ + { + name: "simple" + } +]; + +interface Fixture { + name: string; + audiences?: string[]; + language?: generatorsYml.GenerationLanguage; + version?: string; + only?: boolean; +} + +describe("fdr", () => { + for (const fixture of FIXTURES) { + const { only = false } = fixture; + (only ? it.only : it)( + `${JSON.stringify(fixture)}`, + async () => { + const fixturePath = join(FIXTURES_DIR, RelativeFilePath.of(fixture.name)); + const dynamicContents = await generateDynamicIrAsString({ + fixturePath, + language: fixture.language, + audiences: fixture.audiences, + version: fixture.version + }); + // eslint-disable-next-line jest/no-standalone-expect + expect(dynamicContents).toMatchSnapshot(); + }, + 90_000 + ); + } +}); diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/.gitignore b/packages/cli/ete-tests/src/tests/dynamic/fixtures/.gitignore new file mode 100644 index 00000000000..b0ad5dd8969 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/.gitignore @@ -0,0 +1 @@ +fdr.json \ No newline at end of file diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/dynamic.json b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/dynamic.json new file mode 100644 index 00000000000..2fe64a7f4f7 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/dynamic.json @@ -0,0 +1 @@ +{"version":"1.0.0","types":{"type_commons:UndiscriminatedUnion":{"declaration":{"name":{"originalName":"UndiscriminatedUnion","camelCase":{"unsafeName":"undiscriminatedUnion","safeName":"undiscriminatedUnion"},"snakeCase":{"unsafeName":"undiscriminated_union","safeName":"undiscriminated_union"},"screamingSnakeCase":{"unsafeName":"UNDISCRIMINATED_UNION","safeName":"UNDISCRIMINATED_UNION"},"pascalCase":{"unsafeName":"UndiscriminatedUnion","safeName":"UndiscriminatedUnion"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"types":[{"value":"STRING","type":"primitive"},{"value":{"value":"STRING","type":"primitive"},"type":"list"},{"value":"INTEGER","type":"primitive"},{"value":{"value":{"value":"INTEGER","type":"primitive"},"type":"list"},"type":"list"}],"type":"undiscriminatedUnion"},"type_director:Director":{"declaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"typeReference":{"value":"type_director:Age","type":"named"}}],"type":"object"},"type_director:Age":{"declaration":{"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"typeReference":{"value":"INTEGER","type":"primitive"},"type":"alias"},"type_director:LiteralString":{"declaration":{"name":{"originalName":"LiteralString","camelCase":{"unsafeName":"literalString","safeName":"literalString"},"snakeCase":{"unsafeName":"literal_string","safeName":"literal_string"},"screamingSnakeCase":{"unsafeName":"LITERAL_STRING","safeName":"LITERAL_STRING"},"pascalCase":{"unsafeName":"LiteralString","safeName":"LiteralString"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"typeReference":{"value":{"value":"hello","type":"string"},"type":"literal"},"type":"alias"},"type_imdb:CurrencyAmount":{"declaration":{"name":{"originalName":"CurrencyAmount","camelCase":{"unsafeName":"currencyAmount","safeName":"currencyAmount"},"snakeCase":{"unsafeName":"currency_amount","safeName":"currency_amount"},"screamingSnakeCase":{"unsafeName":"CURRENCY_AMOUNT","safeName":"CURRENCY_AMOUNT"},"pascalCase":{"unsafeName":"CurrencyAmount","safeName":"CurrencyAmount"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"value":"STRING","type":"primitive"},"type":"alias"},"type_imdb:MovieId":{"declaration":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"value":"STRING","type":"primitive"},"type":"alias"},"type_imdb:ActorId":{"declaration":{"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"value":"STRING","type":"primitive"},"type":"alias"},"type_imdb:Movie":{"declaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"typeReference":{"value":"DOUBLE","type":"primitive"}}],"type":"object"},"type_imdb:CreateMovieRequest":{"declaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"typeReference":{"value":{"value":"DOUBLE","type":"primitive"},"type":"list"}}],"type":"object"},"type_imdb:DirectorWrapper":{"declaration":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"typeReference":{"value":"type_director:Director","type":"named"}}],"type":"object"},"type_imdb:EmptyObject":{"declaration":{"name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[],"type":"object"},"type_imdb:Person":{"declaration":{"name":{"originalName":"Person","camelCase":{"unsafeName":"person","safeName":"person"},"snakeCase":{"unsafeName":"person","safeName":"person"},"screamingSnakeCase":{"unsafeName":"PERSON","safeName":"PERSON"},"pascalCase":{"unsafeName":"Person","safeName":"Person"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"types":{"actor":{"typeReference":{"value":"type_imdb:ActorId","type":"named"},"discriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"type":"singleProperty"},"director":{"typeId":"type_director:Director","discriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"typeReference":{"value":"type_director:Age","type":"named"}}],"type":"samePropertiesAsObject"},"producer":{"typeId":"type_imdb:EmptyObject","discriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"properties":[],"type":"samePropertiesAsObject"},"cinematographer":{"typeId":"type_imdb:EmptyObject","discriminantValue":{"name":{"originalName":"cinematographer","camelCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"snakeCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"screamingSnakeCase":{"unsafeName":"CINEMATOGRAPHER","safeName":"CINEMATOGRAPHER"},"pascalCase":{"unsafeName":"Cinematographer","safeName":"Cinematographer"}},"wireValue":"cinematographer"},"properties":[],"type":"samePropertiesAsObject"}},"type":"discriminatedUnion"},"type_imdb:RecursiveType":{"declaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"typeReference":{"value":{"value":"DOUBLE","type":"primitive"},"type":"list"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"typeReference":{"value":{"value":"type_imdb:RecursiveType","type":"named"},"type":"list"}}],"type":"object"}},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"typeReference":{"value":{"value":"STRING","type":"primitive"},"type":"optional"}}],"endpoints":{"endpoint_imdb.createMovie":{"declaration":{"name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies"},"request":{"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}}],"body":{"value":{"value":"type_imdb:CreateMovieRequest","type":"named"},"type":"typeReference"},"type":"body"},"response":{"type":"json"}},"endpoint_imdb.getMovie":{"declaration":{"name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"GET","path":"/test/{rootPathParam}/movies/{movieId}"},"request":{"declaration":{"name":{"originalName":"GetMovieRequest","camelCase":{"unsafeName":"getMovieRequest","safeName":"getMovieRequest"},"snakeCase":{"unsafeName":"get_movie_request","safeName":"get_movie_request"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_REQUEST","safeName":"GET_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"GetMovieRequest","safeName":"GetMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"typeReference":{"value":"STRING","type":"primitive"}}],"headers":[],"type":"inlined"},"response":{"type":"json"}},"endpoint_imdb.delete":{"declaration":{"name":{"originalName":"delete","camelCase":{"unsafeName":"delete","safeName":"delete"},"snakeCase":{"unsafeName":"delete","safeName":"delete"},"screamingSnakeCase":{"unsafeName":"DELETE","safeName":"DELETE"},"pascalCase":{"unsafeName":"Delete","safeName":"Delete"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"DELETE","path":"/test/{rootPathParam}/movies/{movieId}"},"request":{"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}}],"type":"body"},"response":{"type":"json"}},"endpoint_imdb.upload":{"declaration":{"name":{"originalName":"upload","camelCase":{"unsafeName":"upload","safeName":"upload"},"snakeCase":{"unsafeName":"upload","safeName":"upload"},"screamingSnakeCase":{"unsafeName":"UPLOAD","safeName":"UPLOAD"},"pascalCase":{"unsafeName":"Upload","safeName":"Upload"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies/upload/{movieId}"},"request":{"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"value":"STRING","type":"primitive"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"value":"type_imdb:MovieId","type":"named"}}],"body":{"type":"bytes"},"type":"body"},"response":{"type":"json"}}}} \ No newline at end of file diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/api.yml b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/api.yml new file mode 100644 index 00000000000..85b1be39773 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/api.yml @@ -0,0 +1,19 @@ +imports: + commons: commons.yml +name: my-api +docs: foo bar baz +headers: + X-API-VERSION: + name: apiVersion + type: optional +error-discrimination: + strategy: property + property-name: error +audiences: + - test +errors: + - commons.BadRequestError + +base-path: /test/{rootPathParam} +path-parameters: + rootPathParam: string diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/commons.yml b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/commons.yml new file mode 100644 index 00000000000..9eaa66c3ad5 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/commons.yml @@ -0,0 +1,12 @@ +types: + UndiscriminatedUnion: + discriminated: false + union: + - string + - list + - integer + - list> + +errors: + BadRequestError: + status-code: 400 diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/director.yml b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/director.yml new file mode 100644 index 00000000000..9e3e27ad6a2 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/director.yml @@ -0,0 +1,16 @@ +types: + Director: + properties: + name: string + age: Age + examples: + - name: GeorgeExample + value: + name: George the Director + age: $Age.Example1 + Age: + type: integer + examples: + - name: Example1 + value: 20 + LiteralString: literal<"hello"> diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/imdb.yml b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/imdb.yml new file mode 100644 index 00000000000..59050e86b68 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/definition/imdb.yml @@ -0,0 +1,152 @@ +imports: + director: director.yml +types: + CurrencyAmount: + type: string + examples: + - value: \$4.50 + MovieId: + type: string + examples: + - value: id1 + - value: id2 + ActorId: string + Movie: + properties: + id: MovieId + title: string + rating: double + examples: + - value: + id: my-movie-id + title: Goodwill Hunting + rating: 14.5 + CreateMovieRequest: + properties: + title: string + ratings: list + examples: + - name: Example1 + value: + title: Winnie the Pooh + ratings: [1, 2, 3] + DirectorWrapper: + properties: + director: director.Director + examples: + - value: + director: $director.Director.GeorgeExample + EmptyObject: + properties: {} + Person: + union: + actor: ActorId + director: director.Director + producer: EmptyObject + cinematographer: + docs: i am docs + type: EmptyObject + examples: + - name: PersonExample1 + docs: this is a person example + value: + type: actor + value: Matt Damon + - value: + type: director + name: George the Directory + age: 100 + - value: + type: producer + RecursiveType: + extends: CreateMovieRequest + properties: + selfReferencing: list + examples: + - value: + title: The Godfather + ratings: [10, 5, 9] + selfReferencing: + - title: The Godfather II + ratings: [10, 11] + selfReferencing: [] + - title: The Godfather III + ratings: [] + selfReferencing: [] + - value: + title: Goodfellas + ratings: [1, 2, 3] + selfReferencing: [] +errors: + NotFoundError: + status-code: 404 + type: string +service: + auth: false + base-path: /movies + endpoints: + createMovie: + method: POST + path: "" + request: CreateMovieRequest + response: MovieId + audiences: + - test + examples: + - path-parameters: + rootPathParam: root + request: + title: Shrek + ratings: [10, 10, 10, 10] + response: + body: shrek-123 + - path-parameters: + rootPathParam: root + request: $CreateMovieRequest.Example1 + response: + body: shrek-123 + getMovie: + method: GET + display-name: "Get Movie by Id" + path: /{movieId} + path-parameters: + movieId: MovieId + request: + name: GetMovieRequest + query-parameters: + movieName: + type: string + allow-multiple: true + response: Movie + errors: + - NotFoundError + examples: + - path-parameters: + rootPathParam: root + movieId: id-123 + query-parameters: + movieName: hello + response: + body: + id: id-123 + title: Shrek + rating: 10 + - path-parameters: + rootPathParam: root + movieId: id-123 + query-parameters: + movieName: hello + response: + error: NotFoundError + body: id-123 + delete: + method: DELETE + path: /{movieId} + path-parameters: + movieId: MovieId + upload: + method: POST + path: /upload/{movieId} + path-parameters: + movieId: MovieId + request: bytes diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/fern.config.json b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/fern.config.json new file mode 100644 index 00000000000..9538944f200 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/fern.config.json @@ -0,0 +1,4 @@ +{ + "version": "*", + "organization": "fern" +} diff --git a/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/generators.yml b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/generators.yml new file mode 100644 index 00000000000..0967ef424bc --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/fixtures/simple/fern/generators.yml @@ -0,0 +1 @@ +{} diff --git a/packages/cli/ete-tests/src/tests/dynamic/generateDynamicIrAsString.ts b/packages/cli/ete-tests/src/tests/dynamic/generateDynamicIrAsString.ts new file mode 100644 index 00000000000..f5a098cf194 --- /dev/null +++ b/packages/cli/ete-tests/src/tests/dynamic/generateDynamicIrAsString.ts @@ -0,0 +1,45 @@ +import { generatorsYml } from "@fern-api/configuration"; +import { AbsoluteFilePath, join, RelativeFilePath } from "@fern-api/fs-utils"; +import { readFile, rm } from "fs/promises"; +import { runFernCli } from "../../utils/runFernCli"; + +export async function generateDynamicIrAsString({ + fixturePath, + language, + audiences, + apiName, + version +}: { + fixturePath: AbsoluteFilePath; + language?: generatorsYml.GenerationLanguage; + audiences?: string[]; + apiName?: string; + version?: string; +}): Promise { + const dynamicOutputPath = join(fixturePath, RelativeFilePath.of("dynamic.json")); + await rm(dynamicOutputPath, { force: true, recursive: true }); + + const command = ["dynamic-ir", dynamicOutputPath]; + if (language != null) { + command.push("--language", language); + } + if (audiences != null) { + command.push("--audience"); + for (const audience of audiences) { + command.push(audience); + } + } + if (apiName != null) { + command.push("--api", apiName); + } + if (version != null) { + command.push("--version", version); + } + + await runFernCli(command, { + cwd: fixturePath + }); + + const dynamicContents = await readFile(dynamicOutputPath); + return dynamicContents.toString(); +} diff --git a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap index 051ae2bc734..632e243369a 100644 --- a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap @@ -12,7 +12,7 @@ exports[`ir > {"name":"multiple-environment-urls"} 1`] = `"{"fdrApiDefinitionId" exports[`ir > {"name":"navigation-points-to"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_subpackage":{"name":{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}},"fernFilepath":{"allParts":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"packagePath":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"file":null},"service":null,"types":[],"errors":[],"subpackages":["subpackage_subpackage/x"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_subpackage/x":{"name":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}},"fernFilepath":{"allParts":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_subpackage"],"webhooks":null,"navigationConfig":{"pointsTo":"subpackage_subpackage"},"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"nested-example-reference"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"basic","username":{"originalName":"clientId","camelCase":{"unsafeName":"clientId","safeName":"clientId"},"snakeCase":{"unsafeName":"client_id","safeName":"client_id"},"screamingSnakeCase":{"unsafeName":"CLIENT_ID","safeName":"CLIENT_ID"},"pascalCase":{"unsafeName":"ClientId","safeName":"ClientId"}},"usernameEnvVar":null,"password":{"originalName":"clientSecret","camelCase":{"unsafeName":"clientSecret","safeName":"clientSecret"},"snakeCase":{"unsafeName":"client_secret","safeName":"client_secret"},"screamingSnakeCase":{"unsafeName":"CLIENT_SECRET","safeName":"CLIENT_SECRET"},"pascalCase":{"unsafeName":"ClientSecret","safeName":"ClientSecret"}},"passwordEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_nested:Response":{"inline":false,"name":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_nested:Product"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:Product":{"inline":false,"name":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"unknown"}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"}},"jsonExample":"hello","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_nested":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"displayName":null,"basePath":{"head":"/nested","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_nested.calculate","name":{"originalName":"calculate","camelCase":{"unsafeName":"calculate","safeName":"calculate"},"snakeCase":{"unsafeName":"calculate","safeName":"calculate"},"screamingSnakeCase":{"unsafeName":"CALCULATE","safeName":"CALCULATE"},"pascalCase":{"unsafeName":"Calculate","safeName":"Calculate"}},"displayName":null,"auth":true,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/nested","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[{"example":{"id":"5a6f08f1a5b7c467c617c891b9b6e1f85c3cdaa17c9bc1a56012234eeb809937","name":null,"url":"/nested","rootPathParameters":[],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"b"}}},"jsonExample":"b"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"d":{"e":"$11","f":"hello"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"valueType":{"_type":"unknown"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"originalTypeDeclaration":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}}}]}},"jsonExample":{"c":{"d":{"e":"$11","f":"hello"}}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"originalTypeDeclaration":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}}}]}},"jsonExample":{"a":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}}}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"551653f550d18c803cccca4e174c46294d99f392","url":"/nested","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"a"}}},"jsonExample":"a"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"originalTypeDeclaration":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}},"valueType":{"_type":"unknown"}}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"}},"jsonExample":{"c":{"key":"value"}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"a":{"c":{"key":"value"}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"a":{"c":{"key":"value"}}}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"}},"jsonExample":{"a":{"a":{"c":{"key":"value"}}}}}}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_nested":["type_nested:Response"]},"sharedTypes":["type_nested:Product","type_nested:StringAlias"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_nested":{"name":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"service":"service_nested","types":["type_nested:Response","type_nested:Product","type_nested:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_nested"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"nested-example-reference"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"basic","username":{"originalName":"clientId","camelCase":{"unsafeName":"clientId","safeName":"clientId"},"snakeCase":{"unsafeName":"client_id","safeName":"client_id"},"screamingSnakeCase":{"unsafeName":"CLIENT_ID","safeName":"CLIENT_ID"},"pascalCase":{"unsafeName":"ClientId","safeName":"ClientId"}},"usernameEnvVar":null,"password":{"originalName":"clientSecret","camelCase":{"unsafeName":"clientSecret","safeName":"clientSecret"},"snakeCase":{"unsafeName":"client_secret","safeName":"client_secret"},"screamingSnakeCase":{"unsafeName":"CLIENT_SECRET","safeName":"CLIENT_SECRET"},"pascalCase":{"unsafeName":"ClientSecret","safeName":"ClientSecret"}},"passwordEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_nested:Response":{"inline":false,"name":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_nested:Product"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:Product":{"inline":false,"name":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"unknown"}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"}},"jsonExample":"hello","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_nested":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"displayName":null,"basePath":{"head":"/nested","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_nested.calculate","name":{"originalName":"calculate","camelCase":{"unsafeName":"calculate","safeName":"calculate"},"snakeCase":{"unsafeName":"calculate","safeName":"calculate"},"screamingSnakeCase":{"unsafeName":"CALCULATE","safeName":"CALCULATE"},"pascalCase":{"unsafeName":"Calculate","safeName":"Calculate"}},"displayName":null,"auth":true,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/nested","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[{"example":{"id":"5a6f08f1a5b7c467c617c891b9b6e1f85c3cdaa17c9bc1a56012234eeb809937","name":null,"url":"/nested","rootPathParameters":[],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"b"}}},"jsonExample":"b"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"d":{"e":"$11","f":"hello"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"valueType":{"_type":"unknown"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"originalTypeDeclaration":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}}}]}},"jsonExample":{"c":{"d":{"e":"$11","f":"hello"}}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"originalTypeDeclaration":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}}}]}},"jsonExample":{"a":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}}}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"e91f0ffaa82ef1376271047c051f6c2a66368ac4","url":"/nested","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"a"}}},"jsonExample":"a"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"originalTypeDeclaration":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}},"valueType":{"_type":"unknown"}}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"}},"jsonExample":{"c":{"key":"value"}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"a":{"c":{"key":"value"}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"a":{"c":{"key":"value"}}}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"}},"jsonExample":{"a":{"a":{"c":{"key":"value"}}}}}}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_nested":["type_nested:Response"]},"sharedTypes":["type_nested:Product","type_nested:StringAlias"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_nested":{"name":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"service":"service_nested","types":["type_nested:Response","type_nested:Product","type_nested:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_nested"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; exports[`ir > {"name":"packages"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"packages","camelCase":{"unsafeName":"packages","safeName":"packages"},"snakeCase":{"unsafeName":"packages","safeName":"packages"},"screamingSnakeCase":{"unsafeName":"PACKAGES","safeName":"PACKAGES"},"pascalCase":{"unsafeName":"Packages","safeName":"Packages"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_:RootString":{"inline":false,"name":{"name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"typeId":"type_:RootString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_package:PackageString":{"inline":false,"name":{"name":{"originalName":"PackageString","camelCase":{"unsafeName":"packageString","safeName":"packageString"},"snakeCase":{"unsafeName":"package_string","safeName":"package_string"},"screamingSnakeCase":{"unsafeName":"PACKAGE_STRING","safeName":"PACKAGE_STRING"},"pascalCase":{"unsafeName":"PackageString","safeName":"PackageString"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"typeId":"type_package:PackageString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_importer:Foo":{"inline":false,"name":{"name":{"originalName":"Foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"fernFilepath":{"allParts":[{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}],"packagePath":[],"file":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}},"typeId":"type_importer:Foo"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"wireValue":"root"},"valueType":{"_type":"named","name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"typeId":"type_:RootString","default":null,"inline":null},"availability":null,"docs":null},{"name":{"name":{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},"wireValue":"package"},"valueType":{"_type":"named","name":{"originalName":"PackageString","camelCase":{"unsafeName":"packageString","safeName":"packageString"},"snakeCase":{"unsafeName":"package_string","safeName":"package_string"},"screamingSnakeCase":{"unsafeName":"PACKAGE_STRING","safeName":"PACKAGE_STRING"},"pascalCase":{"unsafeName":"PackageString","safeName":"PackageString"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"typeId":"type_package:PackageString","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_:RootString","type_package:PackageString"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_package/a:A":{"inline":false,"name":{"name":{"originalName":"A","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}},"typeId":"type_package/a:A"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_":{"availability":null,"name":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_.rootEndpoint","name":{"originalName":"rootEndpoint","camelCase":{"unsafeName":"rootEndpoint","safeName":"rootEndpoint"},"snakeCase":{"unsafeName":"root_endpoint","safeName":"root_endpoint"},"screamingSnakeCase":{"unsafeName":"ROOT_ENDPOINT","safeName":"ROOT_ENDPOINT"},"pascalCase":{"unsafeName":"RootEndpoint","safeName":"RootEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]},"service_package":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":["type_:RootString","type_package:PackageString","type_importer:Foo","type_package/a:A"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_package":{"name":{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"service":"service_package","types":["type_package:PackageString"],"errors":[],"subpackages":["subpackage_package/b","subpackage_package/a"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null},"subpackage_importer":{"name":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}},"fernFilepath":{"allParts":[{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}],"packagePath":[],"file":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}},"service":null,"types":["type_importer:Foo"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":"I'm an importer!"},"subpackage_package/a":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}},"service":null,"types":["type_package/a:A"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_package/b":{"name":{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":"service_","types":["type_:RootString"],"errors":[],"subpackages":["subpackage_package","subpackage_importer"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; @@ -20,9 +20,9 @@ exports[`ir > {"name":"response-property"} 1`] = `"{"fdrApiDefinitionId":null,"a exports[`ir > {"name":"simple","audiences":["internal"]} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Internal":{"inline":false,"name":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Internal"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:UnknownRequest":{"inline":false,"name":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"valueType":{"_type":"unknown"},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.internalEndpoint","name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"6ddea0588fd84ef0a9732ab58c4e1d50078da707","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"originalTypeDeclaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"value":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"}},"jsonExample":{"unknown":{"key":"value"}}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"sharedTypes":["type_commons:Internal"],"typesReferencedOnlyByService":{"service_imdb":["type_imdb:UnknownRequest"]}},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Internal"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:UnknownRequest"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"simple","audiences":["test"]} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"80bd0d716c78d0c18d1359391a94d89085886e9d","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"sharedTypes":["type_commons:Type"],"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:CreateMovieRequest"]}},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Type"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:MovieId","type_imdb:CreateMovieRequest"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"simple","audiences":["test"]} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3435f6402495ee7805cf225e15f28f07a6f16235","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"sharedTypes":["type_commons:Type"],"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:CreateMovieRequest"]}},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Type"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:MovieId","type_imdb:CreateMovieRequest"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"simple"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Internal":{"inline":false,"name":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Internal"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:UndiscriminatedUnion":{"inline":false,"name":{"name":{"originalName":"UndiscriminatedUnion","camelCase":{"unsafeName":"undiscriminatedUnion","safeName":"undiscriminatedUnion"},"snakeCase":{"unsafeName":"undiscriminated_union","safeName":"undiscriminated_union"},"screamingSnakeCase":{"unsafeName":"UNDISCRIMINATED_UNION","safeName":"UNDISCRIMINATED_UNION"},"pascalCase":{"unsafeName":"UndiscriminatedUnion","safeName":"UndiscriminatedUnion"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:UndiscriminatedUnion"},"shape":{"_type":"undiscriminatedUnion","members":[{"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"docs":null},{"type":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}}}}},"docs":null}]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Director":{"inline":false,"name":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"valueType":{"_type":"named","name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"GeorgeExample","camelCase":{"unsafeName":"georgeExample","safeName":"georgeExample"},"snakeCase":{"unsafeName":"george_example","safeName":"george_example"},"screamingSnakeCase":{"unsafeName":"GEORGE_EXAMPLE","safeName":"GEORGE_EXAMPLE"},"pascalCase":{"unsafeName":"GeorgeExample","safeName":"GeorgeExample"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}}]},"jsonExample":{"name":"George the Director","age":20},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Age":{"inline":false,"name":{"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}},"jsonExample":20,"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralBoolean":{"inline":false,"name":{"name":{"originalName":"LiteralBoolean","camelCase":{"unsafeName":"literalBoolean","safeName":"literalBoolean"},"snakeCase":{"unsafeName":"literal_boolean","safeName":"literal_boolean"},"screamingSnakeCase":{"unsafeName":"LITERAL_BOOLEAN","safeName":"LITERAL_BOOLEAN"},"pascalCase":{"unsafeName":"LiteralBoolean","safeName":"LiteralBoolean"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralBoolean"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralString":{"inline":false,"name":{"name":{"originalName":"LiteralString","camelCase":{"unsafeName":"literalString","safeName":"literalString"},"snakeCase":{"unsafeName":"literal_string","safeName":"literal_string"},"screamingSnakeCase":{"unsafeName":"LITERAL_STRING","safeName":"LITERAL_STRING"},"pascalCase":{"unsafeName":"LiteralString","safeName":"LiteralString"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralString"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CurrencyAmount":{"inline":false,"name":{"name":{"originalName":"CurrencyAmount","camelCase":{"unsafeName":"currencyAmount","safeName":"currencyAmount"},"snakeCase":{"unsafeName":"currency_amount","safeName":"currency_amount"},"screamingSnakeCase":{"unsafeName":"CURRENCY_AMOUNT","safeName":"CURRENCY_AMOUNT"},"pascalCase":{"unsafeName":"CurrencyAmount","safeName":"CurrencyAmount"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CurrencyAmount"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"$4.50"}}},"jsonExample":"$4.50"}},"jsonExample":"$4.50","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:ActorId":{"inline":false,"name":{"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Movie":{"inline":false,"name":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"availability":null,"docs":null},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"valueType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_imdb:MovieId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"my-movie-id"}}},"jsonExample":"my-movie-id"}}},"jsonExample":"my-movie-id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodwill Hunting"}}},"jsonExample":"Goodwill Hunting"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":14.5}},"jsonExample":14.5},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}}]},"jsonExample":{"id":"my-movie-id","title":"Goodwill Hunting","rating":14.5},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:DirectorWrapper":{"inline":false,"name":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"valueType":{"_type":"named","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Director","type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}},"jsonExample":{"name":"George the Director","age":20}},"originalTypeDeclaration":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"}}]},"jsonExample":{"director":{"name":"George the Director","age":20}},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:EmptyObject":{"inline":false,"name":{"name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"shape":{"_type":"object","extends":[],"properties":[],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Person":{"inline":false,"name":{"name":{"originalName":"Person","camelCase":{"unsafeName":"person","safeName":"person"},"snakeCase":{"unsafeName":"person","safeName":"person"},"screamingSnakeCase":{"unsafeName":"PERSON","safeName":"PERSON"},"pascalCase":{"unsafeName":"Person","safeName":"Person"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Person"},"shape":{"_type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"extends":[],"baseProperties":[],"types":[{"discriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"_type":"singleProperty","name":{"name":{"originalName":"value","camelCase":{"unsafeName":"value","safeName":"value"},"snakeCase":{"unsafeName":"value","safeName":"value"},"screamingSnakeCase":{"unsafeName":"VALUE","safeName":"VALUE"},"pascalCase":{"unsafeName":"Value","safeName":"Value"}},"wireValue":"value"},"type":{"_type":"named","name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId","default":null,"inline":null}},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"cinematographer","camelCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"snakeCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"screamingSnakeCase":{"unsafeName":"CINEMATOGRAPHER","safeName":"CINEMATOGRAPHER"},"pascalCase":{"unsafeName":"Cinematographer","safeName":"Cinematographer"}},"wireValue":"cinematographer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":"i am docs"}]},"referencedTypes":["type_imdb:ActorId","type_director:Director","type_director:Age","type_imdb:EmptyObject"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"PersonExample1","camelCase":{"unsafeName":"personExample1","safeName":"personExample1"},"snakeCase":{"unsafeName":"person_example_1","safeName":"person_example_1"},"screamingSnakeCase":{"unsafeName":"PERSON_EXAMPLE_1","safeName":"PERSON_EXAMPLE_1"},"pascalCase":{"unsafeName":"PersonExample1","safeName":"PersonExample1"}},"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"type":"singleProperty","shape":{"type":"named","typeName":{"typeId":"type_imdb:ActorId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":{"type":"actor","value":"Matt Damon"},"docs":"this is a person example"},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"type":"samePropertiesAsObject","typeId":"type_director:Director","object":{"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Directory"}}},"jsonExample":"George the Directory"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":100}},"jsonExample":100}}},"jsonExample":100},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}}}},"jsonExample":{"type":"director","name":"George the Directory","age":100},"docs":null},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"type":"samePropertiesAsObject","typeId":"type_imdb:EmptyObject","object":{"properties":[]}}}},"jsonExample":{"type":"producer"},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:UnknownRequest":{"inline":false,"name":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"valueType":{"_type":"unknown"},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:RecursiveType":{"inline":false,"name":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"},"shape":{"_type":"object","extends":[{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}],"properties":[{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}]},"referencedTypes":["type_imdb:CreateMovieRequest","type_imdb:RecursiveType"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather"}}},"jsonExample":"The Godfather"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":5}},"jsonExample":5},{"shape":{"type":"primitive","primitive":{"type":"double","double":9}},"jsonExample":9}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,5,9]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather II"}}},"jsonExample":"The Godfather II"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":11}},"jsonExample":11}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,11]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]}},{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather III"}}},"jsonExample":"The Godfather III"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather III","ratings":[],"selfReferencing":[]}}],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"The Godfather","ratings":[10,5,9],"selfReferencing":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"docs":null},{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodfellas"}}},"jsonExample":"Goodfellas"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"Goodfellas","ratings":[1,2,3],"selfReferencing":[]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null},"error_imdb:NotFoundError":{"name":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"discriminantValue":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"wireValue":"NotFoundError"},"statusCode":404,"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.internalEndpoint","name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"6ddea0588fd84ef0a9732ab58c4e1d50078da707","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"originalTypeDeclaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"value":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"}},"jsonExample":{"unknown":{"key":"value"}}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"availability":null,"docs":null},{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"80bd0d716c78d0c18d1359391a94d89085886e9d","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"availability":null,"docs":null},{"id":"endpoint_imdb.getMovie","name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"displayName":"Get Movie by Id","auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"allowMultiple":true,"availability":null,"docs":null}],"headers":[],"requestBody":null,"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"GetMovieRequest","camelCase":{"unsafeName":"getMovieRequest","safeName":"getMovieRequest"},"snakeCase":{"unsafeName":"get_movie_request","safeName":"get_movie_request"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_REQUEST","safeName":"GET_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"GetMovieRequest","safeName":"GetMovieRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"docs":null},{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"b631e6a0d36395e53918c8b8aa048cf1bfe8180757f41402426ec3c109737ddd","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}}]}},"jsonExample":{"id":"id-123","title":"Shrek","rating":10}}}},"docs":null},"codeSamples":null},{"example":{"id":"e0f04d26bcd1b030581f6d67cbd9d4be232fc0bc43bad08ffb1adb038ecbce8f","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"error","error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"body":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3285e2d8c07bd6f2c3100d3de09fb7039f7d4df8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"shape":{"type":"exploded"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieName"}}},"jsonExample":"movieName"}}],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"id"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},"jsonExample":{"id":"id","title":"title","rating":1.1}}}},"docs":null}}],"pagination":null,"availability":null,"docs":null},{"id":"endpoint_imdb.delete","name":{"originalName":"delete","camelCase":{"unsafeName":"delete","safeName":"delete"},"snakeCase":{"unsafeName":"delete","safeName":"delete"},"screamingSnakeCase":{"unsafeName":"DELETE","safeName":"DELETE"},"pascalCase":{"unsafeName":"Delete","safeName":"Delete"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"DELETE","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"b45fd34c7d591a65682197d8d7b5b726c7e5a1f8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:UnknownRequest"]},"sharedTypes":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion","type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString","type_imdb:CurrencyAmount","type_imdb:ActorId","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:RecursiveType"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_director":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"service":null,"types":["type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:CurrencyAmount","type_imdb:MovieId","type_imdb:ActorId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:UnknownRequest","type_imdb:RecursiveType"],"errors":["error_imdb:NotFoundError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_director","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"simple"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Internal":{"inline":false,"name":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Internal"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:UndiscriminatedUnion":{"inline":false,"name":{"name":{"originalName":"UndiscriminatedUnion","camelCase":{"unsafeName":"undiscriminatedUnion","safeName":"undiscriminatedUnion"},"snakeCase":{"unsafeName":"undiscriminated_union","safeName":"undiscriminated_union"},"screamingSnakeCase":{"unsafeName":"UNDISCRIMINATED_UNION","safeName":"UNDISCRIMINATED_UNION"},"pascalCase":{"unsafeName":"UndiscriminatedUnion","safeName":"UndiscriminatedUnion"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:UndiscriminatedUnion"},"shape":{"_type":"undiscriminatedUnion","members":[{"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"docs":null},{"type":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}}}}},"docs":null}]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Director":{"inline":false,"name":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"valueType":{"_type":"named","name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"GeorgeExample","camelCase":{"unsafeName":"georgeExample","safeName":"georgeExample"},"snakeCase":{"unsafeName":"george_example","safeName":"george_example"},"screamingSnakeCase":{"unsafeName":"GEORGE_EXAMPLE","safeName":"GEORGE_EXAMPLE"},"pascalCase":{"unsafeName":"GeorgeExample","safeName":"GeorgeExample"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}}]},"jsonExample":{"name":"George the Director","age":20},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Age":{"inline":false,"name":{"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}},"jsonExample":20,"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralBoolean":{"inline":false,"name":{"name":{"originalName":"LiteralBoolean","camelCase":{"unsafeName":"literalBoolean","safeName":"literalBoolean"},"snakeCase":{"unsafeName":"literal_boolean","safeName":"literal_boolean"},"screamingSnakeCase":{"unsafeName":"LITERAL_BOOLEAN","safeName":"LITERAL_BOOLEAN"},"pascalCase":{"unsafeName":"LiteralBoolean","safeName":"LiteralBoolean"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralBoolean"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralString":{"inline":false,"name":{"name":{"originalName":"LiteralString","camelCase":{"unsafeName":"literalString","safeName":"literalString"},"snakeCase":{"unsafeName":"literal_string","safeName":"literal_string"},"screamingSnakeCase":{"unsafeName":"LITERAL_STRING","safeName":"LITERAL_STRING"},"pascalCase":{"unsafeName":"LiteralString","safeName":"LiteralString"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralString"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CurrencyAmount":{"inline":false,"name":{"name":{"originalName":"CurrencyAmount","camelCase":{"unsafeName":"currencyAmount","safeName":"currencyAmount"},"snakeCase":{"unsafeName":"currency_amount","safeName":"currency_amount"},"screamingSnakeCase":{"unsafeName":"CURRENCY_AMOUNT","safeName":"CURRENCY_AMOUNT"},"pascalCase":{"unsafeName":"CurrencyAmount","safeName":"CurrencyAmount"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CurrencyAmount"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"$4.50"}}},"jsonExample":"$4.50"}},"jsonExample":"$4.50","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:ActorId":{"inline":false,"name":{"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Movie":{"inline":false,"name":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"availability":null,"docs":null},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"valueType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_imdb:MovieId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"my-movie-id"}}},"jsonExample":"my-movie-id"}}},"jsonExample":"my-movie-id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodwill Hunting"}}},"jsonExample":"Goodwill Hunting"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":14.5}},"jsonExample":14.5},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}}]},"jsonExample":{"id":"my-movie-id","title":"Goodwill Hunting","rating":14.5},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:DirectorWrapper":{"inline":false,"name":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"valueType":{"_type":"named","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Director","type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}},"jsonExample":{"name":"George the Director","age":20}},"originalTypeDeclaration":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"}}]},"jsonExample":{"director":{"name":"George the Director","age":20}},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:EmptyObject":{"inline":false,"name":{"name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"shape":{"_type":"object","extends":[],"properties":[],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Person":{"inline":false,"name":{"name":{"originalName":"Person","camelCase":{"unsafeName":"person","safeName":"person"},"snakeCase":{"unsafeName":"person","safeName":"person"},"screamingSnakeCase":{"unsafeName":"PERSON","safeName":"PERSON"},"pascalCase":{"unsafeName":"Person","safeName":"Person"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Person"},"shape":{"_type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"extends":[],"baseProperties":[],"types":[{"discriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"_type":"singleProperty","name":{"name":{"originalName":"value","camelCase":{"unsafeName":"value","safeName":"value"},"snakeCase":{"unsafeName":"value","safeName":"value"},"screamingSnakeCase":{"unsafeName":"VALUE","safeName":"VALUE"},"pascalCase":{"unsafeName":"Value","safeName":"Value"}},"wireValue":"value"},"type":{"_type":"named","name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId","default":null,"inline":null}},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"cinematographer","camelCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"snakeCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"screamingSnakeCase":{"unsafeName":"CINEMATOGRAPHER","safeName":"CINEMATOGRAPHER"},"pascalCase":{"unsafeName":"Cinematographer","safeName":"Cinematographer"}},"wireValue":"cinematographer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":"i am docs"}]},"referencedTypes":["type_imdb:ActorId","type_director:Director","type_director:Age","type_imdb:EmptyObject"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"PersonExample1","camelCase":{"unsafeName":"personExample1","safeName":"personExample1"},"snakeCase":{"unsafeName":"person_example_1","safeName":"person_example_1"},"screamingSnakeCase":{"unsafeName":"PERSON_EXAMPLE_1","safeName":"PERSON_EXAMPLE_1"},"pascalCase":{"unsafeName":"PersonExample1","safeName":"PersonExample1"}},"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"type":"singleProperty","shape":{"type":"named","typeName":{"typeId":"type_imdb:ActorId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":{"type":"actor","value":"Matt Damon"},"docs":"this is a person example"},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"type":"samePropertiesAsObject","typeId":"type_director:Director","object":{"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Directory"}}},"jsonExample":"George the Directory"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":100}},"jsonExample":100}}},"jsonExample":100},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}}}},"jsonExample":{"type":"director","name":"George the Directory","age":100},"docs":null},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"type":"samePropertiesAsObject","typeId":"type_imdb:EmptyObject","object":{"properties":[]}}}},"jsonExample":{"type":"producer"},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:UnknownRequest":{"inline":false,"name":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"valueType":{"_type":"unknown"},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:RecursiveType":{"inline":false,"name":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"},"shape":{"_type":"object","extends":[{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}],"properties":[{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}]},"referencedTypes":["type_imdb:CreateMovieRequest","type_imdb:RecursiveType"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather"}}},"jsonExample":"The Godfather"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":5}},"jsonExample":5},{"shape":{"type":"primitive","primitive":{"type":"double","double":9}},"jsonExample":9}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,5,9]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather II"}}},"jsonExample":"The Godfather II"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":11}},"jsonExample":11}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,11]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]}},{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather III"}}},"jsonExample":"The Godfather III"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather III","ratings":[],"selfReferencing":[]}}],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"The Godfather","ratings":[10,5,9],"selfReferencing":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"docs":null},{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodfellas"}}},"jsonExample":"Goodfellas"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"Goodfellas","ratings":[1,2,3],"selfReferencing":[]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null},"error_imdb:NotFoundError":{"name":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"discriminantValue":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"wireValue":"NotFoundError"},"statusCode":404,"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.internalEndpoint","name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"6ddea0588fd84ef0a9732ab58c4e1d50078da707","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"originalTypeDeclaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"value":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"}},"jsonExample":{"unknown":{"key":"value"}}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"availability":null,"docs":null},{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3435f6402495ee7805cf225e15f28f07a6f16235","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"availability":null,"docs":null},{"id":"endpoint_imdb.getMovie","name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"displayName":"Get Movie by Id","auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"allowMultiple":true,"availability":null,"docs":null}],"headers":[],"requestBody":null,"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"GetMovieRequest","camelCase":{"unsafeName":"getMovieRequest","safeName":"getMovieRequest"},"snakeCase":{"unsafeName":"get_movie_request","safeName":"get_movie_request"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_REQUEST","safeName":"GET_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"GetMovieRequest","safeName":"GetMovieRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"docs":null},{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"b631e6a0d36395e53918c8b8aa048cf1bfe8180757f41402426ec3c109737ddd","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}}]}},"jsonExample":{"id":"id-123","title":"Shrek","rating":10}}}},"docs":null},"codeSamples":null},{"example":{"id":"e0f04d26bcd1b030581f6d67cbd9d4be232fc0bc43bad08ffb1adb038ecbce8f","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"error","error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"body":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3285e2d8c07bd6f2c3100d3de09fb7039f7d4df8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"shape":{"type":"exploded"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieName"}}},"jsonExample":"movieName"}}],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"id"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},"jsonExample":{"id":"id","title":"title","rating":1.1}}}},"docs":null}}],"pagination":null,"availability":null,"docs":null},{"id":"endpoint_imdb.delete","name":{"originalName":"delete","camelCase":{"unsafeName":"delete","safeName":"delete"},"snakeCase":{"unsafeName":"delete","safeName":"delete"},"screamingSnakeCase":{"unsafeName":"DELETE","safeName":"DELETE"},"pascalCase":{"unsafeName":"Delete","safeName":"Delete"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"DELETE","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"b45fd34c7d591a65682197d8d7b5b726c7e5a1f8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:UnknownRequest"]},"sharedTypes":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion","type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString","type_imdb:CurrencyAmount","type_imdb:ActorId","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:RecursiveType"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_director":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"service":null,"types":["type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:CurrencyAmount","type_imdb:MovieId","type_imdb:ActorId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:UnknownRequest","type_imdb:RecursiveType"],"errors":["error_imdb:NotFoundError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_director","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; exports[`ir > {"name":"streaming"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{"service_streaming":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_streaming.streaming","name":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/streaming","parts":[]},"fullPath":{"head":"/movies/streaming","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":{"type":"streaming","value":{"type":"json","payload":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"terminator":null,"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"availability":null,"docs":null},{"id":"endpoint_streaming.maybeStreaming","name":{"originalName":"maybeStreaming","camelCase":{"unsafeName":"maybeStreaming","safeName":"maybeStreaming"},"snakeCase":{"unsafeName":"maybe_streaming","safeName":"maybe_streaming"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING","safeName":"MAYBE_STREAMING"},"pascalCase":{"unsafeName":"MaybeStreaming","safeName":"MaybeStreaming"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/maybe-streaming","parts":[]},"fullPath":{"head":"/movies/maybe-streaming","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"inlinedRequestBody","name":{"originalName":"maybeStreamingRequest","camelCase":{"unsafeName":"maybeStreamingRequest","safeName":"maybeStreamingRequest"},"snakeCase":{"unsafeName":"maybe_streaming_request","safeName":"maybe_streaming_request"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING_REQUEST","safeName":"MAYBE_STREAMING_REQUEST"},"pascalCase":{"unsafeName":"MaybeStreamingRequest","safeName":"MaybeStreamingRequest"}},"extends":[],"contentType":null,"properties":[{"name":{"name":{"originalName":"stream","camelCase":{"unsafeName":"stream","safeName":"stream"},"snakeCase":{"unsafeName":"stream","safeName":"stream"},"screamingSnakeCase":{"unsafeName":"STREAM","safeName":"STREAM"},"pascalCase":{"unsafeName":"Stream","safeName":"Stream"}},"wireValue":"stream"},"valueType":{"_type":"primitive","primitive":{"v1":"BOOLEAN","v2":null}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[],"docs":null},"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"maybeStreamingRequest","camelCase":{"unsafeName":"maybeStreamingRequest","safeName":"maybeStreamingRequest"},"snakeCase":{"unsafeName":"maybe_streaming_request","safeName":"maybe_streaming_request"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING_REQUEST","safeName":"MAYBE_STREAMING_REQUEST"},"pascalCase":{"unsafeName":"MaybeStreamingRequest","safeName":"MaybeStreamingRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"streaming","value":{"type":"json","payload":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"terminator":"[DONE]","docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_streaming":{"name":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}},"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}},"service":"service_streaming","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_streaming"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":true,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/auth.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/auth.yml new file mode 100644 index 00000000000..9df1bc0585c --- /dev/null +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/auth.yml @@ -0,0 +1,42 @@ +imports: + commons: ../commons.yml + types: ./types.yml + +types: + Auth: + union: + basic: BasicAuth + bearer: BearerAuth + header: HeaderAuth + + AuthValues: + union: + basic: BasicAuthValues + bearer: BearerAuthValues + header: HeaderAuthValues + + BasicAuth: + properties: + username: commons.Name + password: commons.Name + + BasicAuthValues: + properties: + username: string + password: string + + BearerAuth: + properties: + token: commons.Name + + BearerAuthValues: + properties: + token: string + + HeaderAuth: + properties: + header: types.NamedParameter + + HeaderAuthValues: + properties: + value: unknown \ No newline at end of file diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/declaration.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/declaration.yml new file mode 100644 index 00000000000..903ca06a542 --- /dev/null +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/declaration.yml @@ -0,0 +1,7 @@ +imports: + commons: ../commons.yml +types: + Declaration: + properties: + fernFilepath: commons.FernFilepath + name: commons.Name diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/endpoints.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/endpoints.yml new file mode 100644 index 00000000000..27e0973b6c9 --- /dev/null +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/endpoints.yml @@ -0,0 +1,77 @@ +imports: + auth: ./auth.yml + commons: ../commons.yml + declaration: ./declaration.yml + http: ../http.yml + types: ./types.yml +types: + EndpointLocation: + docs: | + Represents the endpoint location (e.g. "POST /users"). + properties: + method: http.HttpMethod + path: string + + Endpoint: + properties: + auth: optional + declaration: declaration.Declaration + location: EndpointLocation + request: Request + response: Response + + Request: + docs: | + Reperesents the request parameters required to call a specific endpoiont. + union: + body: BodyRequest + inlined: InlinedRequest + + Response: + docs: | + Reperesents the response returned by a specific endpoint. + + For now, we only support json responses, but this is set up to support a + variety of other endpoint response types (e.g. file download, pagination, + streaming, etc). + union: + json: {} + + BodyRequest: + properties: + pathParameters: optional> + body: optional + + InlinedRequest: + properties: + declaration: declaration.Declaration + pathParameters: optional> + queryParameters: optional> + headers: optional> + body: optional + + InlinedRequestBody: + union: + properties: list + referenced: ReferencedRequestBody + fileUpload: FileUploadRequestBody + + ReferencedRequestBody: + properties: + bodyKey: commons.Name + bodyType: ReferencedRequestBodyType + + ReferencedRequestBodyType: + union: + bytes: {} + typeReference: types.TypeReference + + FileUploadRequestBody: + properties: + properties: list + + FileUploadRequestBodyProperty: + union: + file: commons.NameAndWireValue + fileArray: commons.NameAndWireValue + bodyProperty: types.NamedParameter diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/ir.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/ir.yml new file mode 100644 index 00000000000..640689a6eee --- /dev/null +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/ir.yml @@ -0,0 +1,24 @@ +imports: + commons: ../commons.yml + endpoints: ./endpoints.yml + types: ./types.yml +types: + DynamicIntermediateRepresentation: + docs: | + This represents the IR required to generate dynamic snippets. + + This IR minimizes the space required to generate snippets in a variety + of environments (e.g. web, offline, etc). + properties: + version: + docs: | + The version of the dynamic IR. This is independent from the verison + of the primary IR. + type: literal<"1.0.0"> + types: map + endpoints: map + headers: + docs: | + The headers that are required on every request. These headers + are typically included in the SDK's client constructor. + type: optional> diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/snippets.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/snippets.yml new file mode 100644 index 00000000000..54138e8b33d --- /dev/null +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/snippets.yml @@ -0,0 +1,29 @@ +imports: + auth: ./auth.yml + endpoints: ./endpoints.yml + +types: + Values: + docs: | + Snippet values are represented as arbitrary key, value + pairs (i.e. JSON objects). The keys are expected to be + in the parameter's wire representation. For path parameters, + the name will match the parameter name. + type: map + + EndpointSnippetRequest: + docs: | + The user-facing request type used to generate a dynamic snippet. + properties: + endpoint: endpoints.EndpointLocation + auth: optional + pathParameters: optional + queryParameters: optional + headers: optional + requestBody: optional + + EndpointSnippetResponse: + docs: | + The user-facing response type containing the generated snippet. + properties: + snippet: string diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/types.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/types.yml new file mode 100644 index 00000000000..7c66fff8d9c --- /dev/null +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/types.yml @@ -0,0 +1,107 @@ +imports: + commons: ../commons.yml + declaration: ./declaration.yml + root: ../types.yml +types: + NamedParameter: + properties: + name: commons.NameAndWireValue + typeReference: TypeReference + + NamedType: + docs: | + Represents the type of a parameter that can be used to generate a dynamic type. + union: + alias: AliasType + enum: EnumType + object: ObjectType + discriminatedUnion: DiscriminatedUnionType + undiscriminatedUnion: UndiscriminatedUnionType + + TypeReference: + discriminant: + value: _type + name: type + union: + list: TypeReference + literal: LiteralType + map: MapType + named: commons.TypeId + optional: TypeReference + primitive: root.PrimitiveTypeV1 + set: TypeReference + unknown: {} + + AliasType: + properties: + declaration: declaration.Declaration + typeReference: TypeReference + + EnumType: + properties: + declaration: declaration.Declaration + values: list + + MapType: + properties: + key: TypeReference + value: TypeReference + + ObjectType: + properties: + declaration: declaration.Declaration + properties: list + + DiscriminatedUnionType: + properties: + declaration: declaration.Declaration + discriminant: commons.NameAndWireValue + types: + docs: | + Map from the discriminant value (e.g. "user") to the type (e.g. User). + type: map + + SingleDiscriminatedUnionType: + union: + samePropertiesAsObject: SingleDiscriminatedUnionTypeObject + singleProperty: SingleDiscriminatedUnionTypeSingleProperty + noProperties: SingleDiscriminatedUnionTypeNoProperties + + SingleDiscriminatedUnionTypeObject: + properties: + typeId: commons.TypeId + discriminantValue: commons.NameAndWireValue + properties: + docs: | + Includes the object properties, as well as any base and/or extended properties from the union. + type: list + + SingleDiscriminatedUnionTypeSingleProperty: + properties: + typeReference: TypeReference + discriminantValue: commons.NameAndWireValue + properties: + docs: | + Any properties included here are the base and/or extended properties from the union. + type: optional> + + SingleDiscriminatedUnionTypeNoProperties: + properties: + discriminantValue: commons.NameAndWireValue + properties: + docs: | + Any properties included here are the base and/or extended properties from the union. + type: optional> + + UndiscriminatedUnionType: + properties: + declaration: declaration.Declaration + types: + docs: | + The dynamic type will be rendered with the first type that matches. + type: list + + LiteralType: + union: + boolean: boolean + string: string \ No newline at end of file diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/index.ts new file mode 100644 index 00000000000..3e5335fe421 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/index.ts @@ -0,0 +1 @@ +export * from "./resources"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/Auth.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/Auth.ts new file mode 100644 index 00000000000..a136c68ad98 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/Auth.ts @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type Auth = FernIr.dynamic.Auth.Basic | FernIr.dynamic.Auth.Bearer | FernIr.dynamic.Auth.Header; + +export declare namespace Auth { + interface Basic extends FernIr.dynamic.BasicAuth, _Utils { + type: "basic"; + } + + interface Bearer extends FernIr.dynamic.BearerAuth, _Utils { + type: "bearer"; + } + + interface Header extends FernIr.dynamic.HeaderAuth, _Utils { + type: "header"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.Auth._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + basic: (value: FernIr.dynamic.BasicAuth) => _Result; + bearer: (value: FernIr.dynamic.BearerAuth) => _Result; + header: (value: FernIr.dynamic.HeaderAuth) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const Auth = { + basic: (value: FernIr.dynamic.BasicAuth): FernIr.dynamic.Auth.Basic => { + return { + ...value, + type: "basic", + _visit: function <_Result>( + this: FernIr.dynamic.Auth.Basic, + visitor: FernIr.dynamic.Auth._Visitor<_Result> + ) { + return FernIr.dynamic.Auth._visit(this, visitor); + }, + }; + }, + + bearer: (value: FernIr.dynamic.BearerAuth): FernIr.dynamic.Auth.Bearer => { + return { + ...value, + type: "bearer", + _visit: function <_Result>( + this: FernIr.dynamic.Auth.Bearer, + visitor: FernIr.dynamic.Auth._Visitor<_Result> + ) { + return FernIr.dynamic.Auth._visit(this, visitor); + }, + }; + }, + + header: (value: FernIr.dynamic.HeaderAuth): FernIr.dynamic.Auth.Header => { + return { + ...value, + type: "header", + _visit: function <_Result>( + this: FernIr.dynamic.Auth.Header, + visitor: FernIr.dynamic.Auth._Visitor<_Result> + ) { + return FernIr.dynamic.Auth._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>(value: FernIr.dynamic.Auth, visitor: FernIr.dynamic.Auth._Visitor<_Result>): _Result => { + switch (value.type) { + case "basic": + return visitor.basic(value); + case "bearer": + return visitor.bearer(value); + case "header": + return visitor.header(value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/AuthValues.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/AuthValues.ts new file mode 100644 index 00000000000..67d3fa4353f --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/AuthValues.ts @@ -0,0 +1,92 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type AuthValues = + | FernIr.dynamic.AuthValues.Basic + | FernIr.dynamic.AuthValues.Bearer + | FernIr.dynamic.AuthValues.Header; + +export declare namespace AuthValues { + interface Basic extends FernIr.dynamic.BasicAuthValues, _Utils { + type: "basic"; + } + + interface Bearer extends FernIr.dynamic.BearerAuthValues, _Utils { + type: "bearer"; + } + + interface Header extends FernIr.dynamic.HeaderAuthValues, _Utils { + type: "header"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.AuthValues._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + basic: (value: FernIr.dynamic.BasicAuthValues) => _Result; + bearer: (value: FernIr.dynamic.BearerAuthValues) => _Result; + header: (value: FernIr.dynamic.HeaderAuthValues) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const AuthValues = { + basic: (value: FernIr.dynamic.BasicAuthValues): FernIr.dynamic.AuthValues.Basic => { + return { + ...value, + type: "basic", + _visit: function <_Result>( + this: FernIr.dynamic.AuthValues.Basic, + visitor: FernIr.dynamic.AuthValues._Visitor<_Result> + ) { + return FernIr.dynamic.AuthValues._visit(this, visitor); + }, + }; + }, + + bearer: (value: FernIr.dynamic.BearerAuthValues): FernIr.dynamic.AuthValues.Bearer => { + return { + ...value, + type: "bearer", + _visit: function <_Result>( + this: FernIr.dynamic.AuthValues.Bearer, + visitor: FernIr.dynamic.AuthValues._Visitor<_Result> + ) { + return FernIr.dynamic.AuthValues._visit(this, visitor); + }, + }; + }, + + header: (value: FernIr.dynamic.HeaderAuthValues): FernIr.dynamic.AuthValues.Header => { + return { + ...value, + type: "header", + _visit: function <_Result>( + this: FernIr.dynamic.AuthValues.Header, + visitor: FernIr.dynamic.AuthValues._Visitor<_Result> + ) { + return FernIr.dynamic.AuthValues._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.AuthValues, + visitor: FernIr.dynamic.AuthValues._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "basic": + return visitor.basic(value); + case "bearer": + return visitor.bearer(value); + case "header": + return visitor.header(value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BasicAuth.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BasicAuth.ts new file mode 100644 index 00000000000..60c2870719c --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BasicAuth.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface BasicAuth { + username: FernIr.Name; + password: FernIr.Name; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BasicAuthValues.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BasicAuthValues.ts new file mode 100644 index 00000000000..45fdff025c0 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BasicAuthValues.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BasicAuthValues { + username: string; + password: string; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BearerAuth.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BearerAuth.ts new file mode 100644 index 00000000000..067a22d293c --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BearerAuth.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface BearerAuth { + token: FernIr.Name; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BearerAuthValues.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BearerAuthValues.ts new file mode 100644 index 00000000000..4dbe7f8de08 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/BearerAuthValues.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BearerAuthValues { + token: string; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/HeaderAuth.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/HeaderAuth.ts new file mode 100644 index 00000000000..0bfad95023a --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/HeaderAuth.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface HeaderAuth { + header: FernIr.dynamic.NamedParameter; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/HeaderAuthValues.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/HeaderAuthValues.ts new file mode 100644 index 00000000000..8f259ac04b5 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/HeaderAuthValues.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface HeaderAuthValues { + value: unknown; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/index.ts new file mode 100644 index 00000000000..20a84adb7d5 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/auth/types/index.ts @@ -0,0 +1,8 @@ +export * from "./Auth"; +export * from "./AuthValues"; +export * from "./BasicAuth"; +export * from "./BasicAuthValues"; +export * from "./BearerAuth"; +export * from "./BearerAuthValues"; +export * from "./HeaderAuth"; +export * from "./HeaderAuthValues"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/types/Declaration.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/types/Declaration.ts new file mode 100644 index 00000000000..ddfc66395b5 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/types/Declaration.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface Declaration { + fernFilepath: FernIr.FernFilepath; + name: FernIr.Name; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/types/index.ts new file mode 100644 index 00000000000..2468b7a28a9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/declaration/types/index.ts @@ -0,0 +1 @@ +export * from "./Declaration"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/BodyRequest.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/BodyRequest.ts new file mode 100644 index 00000000000..865249444d9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/BodyRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface BodyRequest { + pathParameters: FernIr.dynamic.NamedParameter[] | undefined; + body: FernIr.dynamic.ReferencedRequestBodyType | undefined; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Endpoint.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Endpoint.ts new file mode 100644 index 00000000000..41c23f7676f --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Endpoint.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface Endpoint { + auth: FernIr.dynamic.Auth | undefined; + declaration: FernIr.dynamic.Declaration; + location: FernIr.dynamic.EndpointLocation; + request: FernIr.dynamic.Request; + response: FernIr.dynamic.Response; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/EndpointLocation.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/EndpointLocation.ts new file mode 100644 index 00000000000..b8e1665b1ef --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/EndpointLocation.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +/** + * Represents the endpoint location (e.g. "POST /users"). + */ +export interface EndpointLocation { + method: FernIr.HttpMethod; + path: string; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.ts new file mode 100644 index 00000000000..16475f33d6a --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface FileUploadRequestBody { + properties: FernIr.dynamic.FileUploadRequestBodyProperty[]; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.ts new file mode 100644 index 00000000000..981a74b950d --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.ts @@ -0,0 +1,92 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type FileUploadRequestBodyProperty = + | FernIr.dynamic.FileUploadRequestBodyProperty.File_ + | FernIr.dynamic.FileUploadRequestBodyProperty.FileArray + | FernIr.dynamic.FileUploadRequestBodyProperty.BodyProperty; + +export declare namespace FileUploadRequestBodyProperty { + interface File_ extends FernIr.NameAndWireValue, _Utils { + type: "file"; + } + + interface FileArray extends FernIr.NameAndWireValue, _Utils { + type: "fileArray"; + } + + interface BodyProperty extends FernIr.dynamic.NamedParameter, _Utils { + type: "bodyProperty"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.FileUploadRequestBodyProperty._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + file: (value: FernIr.NameAndWireValue) => _Result; + fileArray: (value: FernIr.NameAndWireValue) => _Result; + bodyProperty: (value: FernIr.dynamic.NamedParameter) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const FileUploadRequestBodyProperty = { + file: (value: FernIr.NameAndWireValue): FernIr.dynamic.FileUploadRequestBodyProperty.File_ => { + return { + ...value, + type: "file", + _visit: function <_Result>( + this: FernIr.dynamic.FileUploadRequestBodyProperty.File_, + visitor: FernIr.dynamic.FileUploadRequestBodyProperty._Visitor<_Result> + ) { + return FernIr.dynamic.FileUploadRequestBodyProperty._visit(this, visitor); + }, + }; + }, + + fileArray: (value: FernIr.NameAndWireValue): FernIr.dynamic.FileUploadRequestBodyProperty.FileArray => { + return { + ...value, + type: "fileArray", + _visit: function <_Result>( + this: FernIr.dynamic.FileUploadRequestBodyProperty.FileArray, + visitor: FernIr.dynamic.FileUploadRequestBodyProperty._Visitor<_Result> + ) { + return FernIr.dynamic.FileUploadRequestBodyProperty._visit(this, visitor); + }, + }; + }, + + bodyProperty: (value: FernIr.dynamic.NamedParameter): FernIr.dynamic.FileUploadRequestBodyProperty.BodyProperty => { + return { + ...value, + type: "bodyProperty", + _visit: function <_Result>( + this: FernIr.dynamic.FileUploadRequestBodyProperty.BodyProperty, + visitor: FernIr.dynamic.FileUploadRequestBodyProperty._Visitor<_Result> + ) { + return FernIr.dynamic.FileUploadRequestBodyProperty._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.FileUploadRequestBodyProperty, + visitor: FernIr.dynamic.FileUploadRequestBodyProperty._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "file": + return visitor.file(value); + case "fileArray": + return visitor.fileArray(value); + case "bodyProperty": + return visitor.bodyProperty(value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequest.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequest.ts new file mode 100644 index 00000000000..1081c967fdb --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequest.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface InlinedRequest { + declaration: FernIr.dynamic.Declaration; + pathParameters: FernIr.dynamic.NamedParameter[] | undefined; + queryParameters: FernIr.dynamic.NamedParameter[] | undefined; + headers: FernIr.dynamic.NamedParameter[] | undefined; + body: FernIr.dynamic.InlinedRequestBody | undefined; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.ts new file mode 100644 index 00000000000..f442ce6e727 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.ts @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type InlinedRequestBody = + | FernIr.dynamic.InlinedRequestBody.Properties + | FernIr.dynamic.InlinedRequestBody.Referenced + | FernIr.dynamic.InlinedRequestBody.FileUpload; + +export declare namespace InlinedRequestBody { + interface Properties extends _Utils { + type: "properties"; + value: FernIr.dynamic.NamedParameter[]; + } + + interface Referenced extends FernIr.dynamic.ReferencedRequestBody, _Utils { + type: "referenced"; + } + + interface FileUpload extends FernIr.dynamic.FileUploadRequestBody, _Utils { + type: "fileUpload"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.InlinedRequestBody._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + properties: (value: FernIr.dynamic.NamedParameter[]) => _Result; + referenced: (value: FernIr.dynamic.ReferencedRequestBody) => _Result; + fileUpload: (value: FernIr.dynamic.FileUploadRequestBody) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const InlinedRequestBody = { + properties: (value: FernIr.dynamic.NamedParameter[]): FernIr.dynamic.InlinedRequestBody.Properties => { + return { + value: value, + type: "properties", + _visit: function <_Result>( + this: FernIr.dynamic.InlinedRequestBody.Properties, + visitor: FernIr.dynamic.InlinedRequestBody._Visitor<_Result> + ) { + return FernIr.dynamic.InlinedRequestBody._visit(this, visitor); + }, + }; + }, + + referenced: (value: FernIr.dynamic.ReferencedRequestBody): FernIr.dynamic.InlinedRequestBody.Referenced => { + return { + ...value, + type: "referenced", + _visit: function <_Result>( + this: FernIr.dynamic.InlinedRequestBody.Referenced, + visitor: FernIr.dynamic.InlinedRequestBody._Visitor<_Result> + ) { + return FernIr.dynamic.InlinedRequestBody._visit(this, visitor); + }, + }; + }, + + fileUpload: (value: FernIr.dynamic.FileUploadRequestBody): FernIr.dynamic.InlinedRequestBody.FileUpload => { + return { + ...value, + type: "fileUpload", + _visit: function <_Result>( + this: FernIr.dynamic.InlinedRequestBody.FileUpload, + visitor: FernIr.dynamic.InlinedRequestBody._Visitor<_Result> + ) { + return FernIr.dynamic.InlinedRequestBody._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.InlinedRequestBody, + visitor: FernIr.dynamic.InlinedRequestBody._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "properties": + return visitor.properties(value.value); + case "referenced": + return visitor.referenced(value); + case "fileUpload": + return visitor.fileUpload(value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.ts new file mode 100644 index 00000000000..dd063035386 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface ReferencedRequestBody { + bodyKey: FernIr.Name; + bodyType: FernIr.dynamic.ReferencedRequestBodyType; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.ts new file mode 100644 index 00000000000..fefafe663bb --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.ts @@ -0,0 +1,71 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type ReferencedRequestBodyType = + | FernIr.dynamic.ReferencedRequestBodyType.Bytes + | FernIr.dynamic.ReferencedRequestBodyType.TypeReference; + +export declare namespace ReferencedRequestBodyType { + interface Bytes extends _Utils { + type: "bytes"; + } + + interface TypeReference extends _Utils { + type: "typeReference"; + value: FernIr.dynamic.TypeReference; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.ReferencedRequestBodyType._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + bytes: () => _Result; + typeReference: (value: FernIr.dynamic.TypeReference) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const ReferencedRequestBodyType = { + bytes: (): FernIr.dynamic.ReferencedRequestBodyType.Bytes => { + return { + type: "bytes", + _visit: function <_Result>( + this: FernIr.dynamic.ReferencedRequestBodyType.Bytes, + visitor: FernIr.dynamic.ReferencedRequestBodyType._Visitor<_Result> + ) { + return FernIr.dynamic.ReferencedRequestBodyType._visit(this, visitor); + }, + }; + }, + + typeReference: (value: FernIr.dynamic.TypeReference): FernIr.dynamic.ReferencedRequestBodyType.TypeReference => { + return { + value: value, + type: "typeReference", + _visit: function <_Result>( + this: FernIr.dynamic.ReferencedRequestBodyType.TypeReference, + visitor: FernIr.dynamic.ReferencedRequestBodyType._Visitor<_Result> + ) { + return FernIr.dynamic.ReferencedRequestBodyType._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.ReferencedRequestBodyType, + visitor: FernIr.dynamic.ReferencedRequestBodyType._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "bytes": + return visitor.bytes(); + case "typeReference": + return visitor.typeReference(value.value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Request.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Request.ts new file mode 100644 index 00000000000..e78eed338b4 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Request.ts @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +/** + * Reperesents the request parameters required to call a specific endpoiont. + */ +export type Request = FernIr.dynamic.Request.Body | FernIr.dynamic.Request.Inlined; + +export declare namespace Request { + interface Body extends FernIr.dynamic.BodyRequest, _Utils { + type: "body"; + } + + interface Inlined extends FernIr.dynamic.InlinedRequest, _Utils { + type: "inlined"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.Request._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + body: (value: FernIr.dynamic.BodyRequest) => _Result; + inlined: (value: FernIr.dynamic.InlinedRequest) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const Request = { + body: (value: FernIr.dynamic.BodyRequest): FernIr.dynamic.Request.Body => { + return { + ...value, + type: "body", + _visit: function <_Result>( + this: FernIr.dynamic.Request.Body, + visitor: FernIr.dynamic.Request._Visitor<_Result> + ) { + return FernIr.dynamic.Request._visit(this, visitor); + }, + }; + }, + + inlined: (value: FernIr.dynamic.InlinedRequest): FernIr.dynamic.Request.Inlined => { + return { + ...value, + type: "inlined", + _visit: function <_Result>( + this: FernIr.dynamic.Request.Inlined, + visitor: FernIr.dynamic.Request._Visitor<_Result> + ) { + return FernIr.dynamic.Request._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>(value: FernIr.dynamic.Request, visitor: FernIr.dynamic.Request._Visitor<_Result>): _Result => { + switch (value.type) { + case "body": + return visitor.body(value); + case "inlined": + return visitor.inlined(value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Response.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Response.ts new file mode 100644 index 00000000000..158a9835ace --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Response.ts @@ -0,0 +1,52 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +/** + * Reperesents the response returned by a specific endpoint. + * + * For now, we only support json responses, but this is set up to support a + * variety of other endpoint response types (e.g. file download, pagination, + * streaming, etc). + */ +export type Response = FernIr.dynamic.Response.Json; + +export declare namespace Response { + interface Json extends _Utils { + type: "json"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.Response._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + json: () => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const Response = { + json: (): FernIr.dynamic.Response.Json => { + return { + type: "json", + _visit: function <_Result>( + this: FernIr.dynamic.Response.Json, + visitor: FernIr.dynamic.Response._Visitor<_Result> + ) { + return FernIr.dynamic.Response._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>(value: FernIr.dynamic.Response, visitor: FernIr.dynamic.Response._Visitor<_Result>): _Result => { + switch (value.type) { + case "json": + return visitor.json(); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/index.ts new file mode 100644 index 00000000000..67f44bd19e1 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/index.ts @@ -0,0 +1,11 @@ +export * from "./EndpointLocation"; +export * from "./Endpoint"; +export * from "./Request"; +export * from "./Response"; +export * from "./BodyRequest"; +export * from "./InlinedRequest"; +export * from "./InlinedRequestBody"; +export * from "./ReferencedRequestBody"; +export * from "./ReferencedRequestBodyType"; +export * from "./FileUploadRequestBody"; +export * from "./FileUploadRequestBodyProperty"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/index.ts new file mode 100644 index 00000000000..28be8c6f5da --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/index.ts @@ -0,0 +1,12 @@ +export * as auth from "./auth"; +export * from "./auth/types"; +export * as declaration from "./declaration"; +export * from "./declaration/types"; +export * as endpoints from "./endpoints"; +export * from "./endpoints/types"; +export * as ir from "./ir"; +export * from "./ir/types"; +export * as snippets from "./snippets"; +export * from "./snippets/types"; +export * as types from "./types"; +export * from "./types/types"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts new file mode 100644 index 00000000000..695b03535e3 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +/** + * This represents the IR required to generate dynamic snippets. + * + * This IR minimizes the space required to generate snippets in a variety + * of environments (e.g. web, offline, etc). + */ +export interface DynamicIntermediateRepresentation { + /** + * The version of the dynamic IR. This is independent from the verison + * of the primary IR. + */ + version: "1.0.0"; + types: Record; + endpoints: Record; + /** + * The headers that are required on every request. These headers + * are typically included in the SDK's client constructor. + */ + headers: FernIr.dynamic.NamedParameter[] | undefined; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/index.ts new file mode 100644 index 00000000000..6dcc3b641d9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/index.ts @@ -0,0 +1 @@ +export * from "./DynamicIntermediateRepresentation"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.ts new file mode 100644 index 00000000000..96db3383e28 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +/** + * The user-facing request type used to generate a dynamic snippet. + */ +export interface EndpointSnippetRequest { + endpoint: FernIr.dynamic.EndpointLocation; + auth: FernIr.dynamic.AuthValues | undefined; + pathParameters: FernIr.dynamic.Values | undefined; + queryParameters: FernIr.dynamic.Values | undefined; + headers: FernIr.dynamic.Values | undefined; + requestBody: unknown | undefined; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.ts new file mode 100644 index 00000000000..725b249483c --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The user-facing response type containing the generated snippet. + */ +export interface EndpointSnippetResponse { + snippet: string; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/Values.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/Values.ts new file mode 100644 index 00000000000..2862cf6902f --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/Values.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Snippet values are represented as arbitrary key, value + * pairs (i.e. JSON objects). The keys are expected to be + * in the parameter's wire representation. For path parameters, + * the name will match the parameter name. + */ +export type Values = Record; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/index.ts new file mode 100644 index 00000000000..bcb5d69b737 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/snippets/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Values"; +export * from "./EndpointSnippetRequest"; +export * from "./EndpointSnippetResponse"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/AliasType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/AliasType.ts new file mode 100644 index 00000000000..888fff3d9d6 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/AliasType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface AliasType { + declaration: FernIr.dynamic.Declaration; + typeReference: FernIr.dynamic.TypeReference; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.ts new file mode 100644 index 00000000000..adfc8f9b92f --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface DiscriminatedUnionType { + declaration: FernIr.dynamic.Declaration; + discriminant: FernIr.NameAndWireValue; + /** Map from the discriminant value (e.g. "user") to the type (e.g. User). */ + types: Record; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/EnumType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/EnumType.ts new file mode 100644 index 00000000000..00e78b666bc --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/EnumType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface EnumType { + declaration: FernIr.dynamic.Declaration; + values: FernIr.NameAndWireValue[]; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/LiteralType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/LiteralType.ts new file mode 100644 index 00000000000..7f6b56b767b --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/LiteralType.ts @@ -0,0 +1,71 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type LiteralType = FernIr.dynamic.LiteralType.Boolean | FernIr.dynamic.LiteralType.String; + +export declare namespace LiteralType { + interface Boolean extends _Utils { + type: "boolean"; + value: boolean; + } + + interface String extends _Utils { + type: "string"; + value: string; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.LiteralType._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + boolean: (value: boolean) => _Result; + string: (value: string) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const LiteralType = { + boolean: (value: boolean): FernIr.dynamic.LiteralType.Boolean => { + return { + value: value, + type: "boolean", + _visit: function <_Result>( + this: FernIr.dynamic.LiteralType.Boolean, + visitor: FernIr.dynamic.LiteralType._Visitor<_Result> + ) { + return FernIr.dynamic.LiteralType._visit(this, visitor); + }, + }; + }, + + string: (value: string): FernIr.dynamic.LiteralType.String => { + return { + value: value, + type: "string", + _visit: function <_Result>( + this: FernIr.dynamic.LiteralType.String, + visitor: FernIr.dynamic.LiteralType._Visitor<_Result> + ) { + return FernIr.dynamic.LiteralType._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.LiteralType, + visitor: FernIr.dynamic.LiteralType._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "boolean": + return visitor.boolean(value.value); + case "string": + return visitor.string(value.value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/MapType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/MapType.ts new file mode 100644 index 00000000000..9edc2a3eea6 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/MapType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface MapType { + key: FernIr.dynamic.TypeReference; + value: FernIr.dynamic.TypeReference; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/NamedParameter.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/NamedParameter.ts new file mode 100644 index 00000000000..63aca9cb3bc --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/NamedParameter.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface NamedParameter { + name: FernIr.NameAndWireValue; + typeReference: FernIr.dynamic.TypeReference; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/NamedType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/NamedType.ts new file mode 100644 index 00000000000..ae94df93b7e --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/NamedType.ts @@ -0,0 +1,139 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +/** + * Represents the type of a parameter that can be used to generate a dynamic type. + */ +export type NamedType = + | FernIr.dynamic.NamedType.Alias + | FernIr.dynamic.NamedType.Enum + | FernIr.dynamic.NamedType.Object_ + | FernIr.dynamic.NamedType.DiscriminatedUnion + | FernIr.dynamic.NamedType.UndiscriminatedUnion; + +export declare namespace NamedType { + interface Alias extends FernIr.dynamic.AliasType, _Utils { + type: "alias"; + } + + interface Enum extends FernIr.dynamic.EnumType, _Utils { + type: "enum"; + } + + interface Object_ extends FernIr.dynamic.ObjectType, _Utils { + type: "object"; + } + + interface DiscriminatedUnion extends FernIr.dynamic.DiscriminatedUnionType, _Utils { + type: "discriminatedUnion"; + } + + interface UndiscriminatedUnion extends FernIr.dynamic.UndiscriminatedUnionType, _Utils { + type: "undiscriminatedUnion"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.NamedType._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + alias: (value: FernIr.dynamic.AliasType) => _Result; + enum: (value: FernIr.dynamic.EnumType) => _Result; + object: (value: FernIr.dynamic.ObjectType) => _Result; + discriminatedUnion: (value: FernIr.dynamic.DiscriminatedUnionType) => _Result; + undiscriminatedUnion: (value: FernIr.dynamic.UndiscriminatedUnionType) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const NamedType = { + alias: (value: FernIr.dynamic.AliasType): FernIr.dynamic.NamedType.Alias => { + return { + ...value, + type: "alias", + _visit: function <_Result>( + this: FernIr.dynamic.NamedType.Alias, + visitor: FernIr.dynamic.NamedType._Visitor<_Result> + ) { + return FernIr.dynamic.NamedType._visit(this, visitor); + }, + }; + }, + + enum: (value: FernIr.dynamic.EnumType): FernIr.dynamic.NamedType.Enum => { + return { + ...value, + type: "enum", + _visit: function <_Result>( + this: FernIr.dynamic.NamedType.Enum, + visitor: FernIr.dynamic.NamedType._Visitor<_Result> + ) { + return FernIr.dynamic.NamedType._visit(this, visitor); + }, + }; + }, + + object: (value: FernIr.dynamic.ObjectType): FernIr.dynamic.NamedType.Object_ => { + return { + ...value, + type: "object", + _visit: function <_Result>( + this: FernIr.dynamic.NamedType.Object_, + visitor: FernIr.dynamic.NamedType._Visitor<_Result> + ) { + return FernIr.dynamic.NamedType._visit(this, visitor); + }, + }; + }, + + discriminatedUnion: (value: FernIr.dynamic.DiscriminatedUnionType): FernIr.dynamic.NamedType.DiscriminatedUnion => { + return { + ...value, + type: "discriminatedUnion", + _visit: function <_Result>( + this: FernIr.dynamic.NamedType.DiscriminatedUnion, + visitor: FernIr.dynamic.NamedType._Visitor<_Result> + ) { + return FernIr.dynamic.NamedType._visit(this, visitor); + }, + }; + }, + + undiscriminatedUnion: ( + value: FernIr.dynamic.UndiscriminatedUnionType + ): FernIr.dynamic.NamedType.UndiscriminatedUnion => { + return { + ...value, + type: "undiscriminatedUnion", + _visit: function <_Result>( + this: FernIr.dynamic.NamedType.UndiscriminatedUnion, + visitor: FernIr.dynamic.NamedType._Visitor<_Result> + ) { + return FernIr.dynamic.NamedType._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.NamedType, + visitor: FernIr.dynamic.NamedType._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "alias": + return visitor.alias(value); + case "enum": + return visitor.enum(value); + case "object": + return visitor.object(value); + case "discriminatedUnion": + return visitor.discriminatedUnion(value); + case "undiscriminatedUnion": + return visitor.undiscriminatedUnion(value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/ObjectType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/ObjectType.ts new file mode 100644 index 00000000000..b1478601a3d --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/ObjectType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface ObjectType { + declaration: FernIr.dynamic.Declaration; + properties: FernIr.dynamic.NamedParameter[]; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.ts new file mode 100644 index 00000000000..f685b82e50f --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.ts @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type SingleDiscriminatedUnionType = + | FernIr.dynamic.SingleDiscriminatedUnionType.SamePropertiesAsObject + | FernIr.dynamic.SingleDiscriminatedUnionType.SingleProperty + | FernIr.dynamic.SingleDiscriminatedUnionType.NoProperties; + +export declare namespace SingleDiscriminatedUnionType { + interface SamePropertiesAsObject extends FernIr.dynamic.SingleDiscriminatedUnionTypeObject, _Utils { + type: "samePropertiesAsObject"; + } + + interface SingleProperty extends FernIr.dynamic.SingleDiscriminatedUnionTypeSingleProperty, _Utils { + type: "singleProperty"; + } + + interface NoProperties extends FernIr.dynamic.SingleDiscriminatedUnionTypeNoProperties, _Utils { + type: "noProperties"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.SingleDiscriminatedUnionType._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + samePropertiesAsObject: (value: FernIr.dynamic.SingleDiscriminatedUnionTypeObject) => _Result; + singleProperty: (value: FernIr.dynamic.SingleDiscriminatedUnionTypeSingleProperty) => _Result; + noProperties: (value: FernIr.dynamic.SingleDiscriminatedUnionTypeNoProperties) => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const SingleDiscriminatedUnionType = { + samePropertiesAsObject: ( + value: FernIr.dynamic.SingleDiscriminatedUnionTypeObject + ): FernIr.dynamic.SingleDiscriminatedUnionType.SamePropertiesAsObject => { + return { + ...value, + type: "samePropertiesAsObject", + _visit: function <_Result>( + this: FernIr.dynamic.SingleDiscriminatedUnionType.SamePropertiesAsObject, + visitor: FernIr.dynamic.SingleDiscriminatedUnionType._Visitor<_Result> + ) { + return FernIr.dynamic.SingleDiscriminatedUnionType._visit(this, visitor); + }, + }; + }, + + singleProperty: ( + value: FernIr.dynamic.SingleDiscriminatedUnionTypeSingleProperty + ): FernIr.dynamic.SingleDiscriminatedUnionType.SingleProperty => { + return { + ...value, + type: "singleProperty", + _visit: function <_Result>( + this: FernIr.dynamic.SingleDiscriminatedUnionType.SingleProperty, + visitor: FernIr.dynamic.SingleDiscriminatedUnionType._Visitor<_Result> + ) { + return FernIr.dynamic.SingleDiscriminatedUnionType._visit(this, visitor); + }, + }; + }, + + noProperties: ( + value: FernIr.dynamic.SingleDiscriminatedUnionTypeNoProperties + ): FernIr.dynamic.SingleDiscriminatedUnionType.NoProperties => { + return { + ...value, + type: "noProperties", + _visit: function <_Result>( + this: FernIr.dynamic.SingleDiscriminatedUnionType.NoProperties, + visitor: FernIr.dynamic.SingleDiscriminatedUnionType._Visitor<_Result> + ) { + return FernIr.dynamic.SingleDiscriminatedUnionType._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.SingleDiscriminatedUnionType, + visitor: FernIr.dynamic.SingleDiscriminatedUnionType._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "samePropertiesAsObject": + return visitor.samePropertiesAsObject(value); + case "singleProperty": + return visitor.singleProperty(value); + case "noProperties": + return visitor.noProperties(value); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.ts new file mode 100644 index 00000000000..4ef226cc1b6 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface SingleDiscriminatedUnionTypeNoProperties { + discriminantValue: FernIr.NameAndWireValue; + /** Any properties included here are the base and/or extended properties from the union. */ + properties: FernIr.dynamic.NamedParameter[] | undefined; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.ts new file mode 100644 index 00000000000..71f3032ae3c --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface SingleDiscriminatedUnionTypeObject { + typeId: FernIr.TypeId; + discriminantValue: FernIr.NameAndWireValue; + /** Includes the object properties, as well as any base and/or extended properties from the union. */ + properties: FernIr.dynamic.NamedParameter[]; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.ts new file mode 100644 index 00000000000..57e1fb11b6b --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface SingleDiscriminatedUnionTypeSingleProperty { + typeReference: FernIr.dynamic.TypeReference; + discriminantValue: FernIr.NameAndWireValue; + /** Any properties included here are the base and/or extended properties from the union. */ + properties: FernIr.dynamic.NamedParameter[] | undefined; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/TypeReference.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/TypeReference.ts new file mode 100644 index 00000000000..b4e1655392b --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/TypeReference.ts @@ -0,0 +1,202 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export type TypeReference = + | FernIr.dynamic.TypeReference.List + | FernIr.dynamic.TypeReference.Literal + | FernIr.dynamic.TypeReference.Map + | FernIr.dynamic.TypeReference.Named + | FernIr.dynamic.TypeReference.Optional + | FernIr.dynamic.TypeReference.Primitive + | FernIr.dynamic.TypeReference.Set + | FernIr.dynamic.TypeReference.Unknown; + +export declare namespace TypeReference { + interface List extends _Utils { + type: "list"; + value: FernIr.dynamic.TypeReference; + } + + interface Literal extends _Utils { + type: "literal"; + value: FernIr.dynamic.LiteralType; + } + + interface Map extends FernIr.dynamic.MapType, _Utils { + type: "map"; + } + + interface Named extends _Utils { + type: "named"; + value: FernIr.TypeId; + } + + interface Optional extends _Utils { + type: "optional"; + value: FernIr.dynamic.TypeReference; + } + + interface Primitive extends _Utils { + type: "primitive"; + value: FernIr.PrimitiveTypeV1; + } + + interface Set extends _Utils { + type: "set"; + value: FernIr.dynamic.TypeReference; + } + + interface Unknown extends _Utils { + type: "unknown"; + } + + interface _Utils { + _visit: <_Result>(visitor: FernIr.dynamic.TypeReference._Visitor<_Result>) => _Result; + } + + interface _Visitor<_Result> { + list: (value: FernIr.dynamic.TypeReference) => _Result; + literal: (value: FernIr.dynamic.LiteralType) => _Result; + map: (value: FernIr.dynamic.MapType) => _Result; + named: (value: FernIr.TypeId) => _Result; + optional: (value: FernIr.dynamic.TypeReference) => _Result; + primitive: (value: FernIr.PrimitiveTypeV1) => _Result; + set: (value: FernIr.dynamic.TypeReference) => _Result; + unknown: () => _Result; + _other: (value: { type: string }) => _Result; + } +} + +export const TypeReference = { + list: (value: FernIr.dynamic.TypeReference): FernIr.dynamic.TypeReference.List => { + return { + value: value, + type: "list", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.List, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + literal: (value: FernIr.dynamic.LiteralType): FernIr.dynamic.TypeReference.Literal => { + return { + value: value, + type: "literal", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.Literal, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + map: (value: FernIr.dynamic.MapType): FernIr.dynamic.TypeReference.Map => { + return { + ...value, + type: "map", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.Map, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + named: (value: FernIr.TypeId): FernIr.dynamic.TypeReference.Named => { + return { + value: value, + type: "named", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.Named, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + optional: (value: FernIr.dynamic.TypeReference): FernIr.dynamic.TypeReference.Optional => { + return { + value: value, + type: "optional", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.Optional, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + primitive: (value: FernIr.PrimitiveTypeV1): FernIr.dynamic.TypeReference.Primitive => { + return { + value: value, + type: "primitive", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.Primitive, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + set: (value: FernIr.dynamic.TypeReference): FernIr.dynamic.TypeReference.Set => { + return { + value: value, + type: "set", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.Set, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + unknown: (): FernIr.dynamic.TypeReference.Unknown => { + return { + type: "unknown", + _visit: function <_Result>( + this: FernIr.dynamic.TypeReference.Unknown, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ) { + return FernIr.dynamic.TypeReference._visit(this, visitor); + }, + }; + }, + + _visit: <_Result>( + value: FernIr.dynamic.TypeReference, + visitor: FernIr.dynamic.TypeReference._Visitor<_Result> + ): _Result => { + switch (value.type) { + case "list": + return visitor.list(value.value); + case "literal": + return visitor.literal(value.value); + case "map": + return visitor.map(value); + case "named": + return visitor.named(value.value); + case "optional": + return visitor.optional(value.value); + case "primitive": + return visitor.primitive(value.value); + case "set": + return visitor.set(value.value); + case "unknown": + return visitor.unknown(); + default: + return visitor._other(value as any); + } + }, +} as const; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.ts new file mode 100644 index 00000000000..72eae249a46 --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernIr from "../../../../../index"; + +export interface UndiscriminatedUnionType { + declaration: FernIr.dynamic.Declaration; + /** The dynamic type will be rendered with the first type that matches. */ + types: FernIr.dynamic.TypeReference[]; +} diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/index.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/index.ts new file mode 100644 index 00000000000..47fd417353b --- /dev/null +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/types/types/index.ts @@ -0,0 +1,14 @@ +export * from "./NamedParameter"; +export * from "./NamedType"; +export * from "./TypeReference"; +export * from "./AliasType"; +export * from "./EnumType"; +export * from "./MapType"; +export * from "./ObjectType"; +export * from "./DiscriminatedUnionType"; +export * from "./SingleDiscriminatedUnionType"; +export * from "./SingleDiscriminatedUnionTypeObject"; +export * from "./SingleDiscriminatedUnionTypeSingleProperty"; +export * from "./SingleDiscriminatedUnionTypeNoProperties"; +export * from "./UndiscriminatedUnionType"; +export * from "./LiteralType"; diff --git a/packages/ir-sdk/src/sdk/api/resources/index.ts b/packages/ir-sdk/src/sdk/api/resources/index.ts index afefd20e785..33573120659 100644 --- a/packages/ir-sdk/src/sdk/api/resources/index.ts +++ b/packages/ir-sdk/src/sdk/api/resources/index.ts @@ -4,6 +4,7 @@ export * as commons from "./commons"; export * from "./commons/types"; export * as constants from "./constants"; export * from "./constants/types"; +export * as dynamic from "./dynamic"; export * as environment from "./environment"; export * from "./environment/types"; export * as errors from "./errors"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/index.ts new file mode 100644 index 00000000000..3e5335fe421 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/index.ts @@ -0,0 +1 @@ +export * from "./resources"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/Auth.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/Auth.ts new file mode 100644 index 00000000000..16fc7886300 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/Auth.ts @@ -0,0 +1,48 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { BasicAuth } from "./BasicAuth"; +import { BearerAuth } from "./BearerAuth"; +import { HeaderAuth } from "./HeaderAuth"; + +export const Auth: core.serialization.Schema = core.serialization + .union("type", { + basic: BasicAuth, + bearer: BearerAuth, + header: HeaderAuth, + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "basic": + return FernIr.dynamic.Auth.basic(value); + case "bearer": + return FernIr.dynamic.Auth.bearer(value); + case "header": + return FernIr.dynamic.Auth.header(value); + default: + return value as FernIr.dynamic.Auth; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace Auth { + type Raw = Auth.Basic | Auth.Bearer | Auth.Header; + + interface Basic extends BasicAuth.Raw { + type: "basic"; + } + + interface Bearer extends BearerAuth.Raw { + type: "bearer"; + } + + interface Header extends HeaderAuth.Raw { + type: "header"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/AuthValues.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/AuthValues.ts new file mode 100644 index 00000000000..521f638b319 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/AuthValues.ts @@ -0,0 +1,49 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { BasicAuthValues } from "./BasicAuthValues"; +import { BearerAuthValues } from "./BearerAuthValues"; +import { HeaderAuthValues } from "./HeaderAuthValues"; + +export const AuthValues: core.serialization.Schema = + core.serialization + .union("type", { + basic: BasicAuthValues, + bearer: BearerAuthValues, + header: HeaderAuthValues, + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "basic": + return FernIr.dynamic.AuthValues.basic(value); + case "bearer": + return FernIr.dynamic.AuthValues.bearer(value); + case "header": + return FernIr.dynamic.AuthValues.header(value); + default: + return value as FernIr.dynamic.AuthValues; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace AuthValues { + type Raw = AuthValues.Basic | AuthValues.Bearer | AuthValues.Header; + + interface Basic extends BasicAuthValues.Raw { + type: "basic"; + } + + interface Bearer extends BearerAuthValues.Raw { + type: "bearer"; + } + + interface Header extends HeaderAuthValues.Raw { + type: "header"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BasicAuth.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BasicAuth.ts new file mode 100644 index 00000000000..d9384da85c5 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BasicAuth.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Name } from "../../../../commons/types/Name"; + +export const BasicAuth: core.serialization.ObjectSchema = + core.serialization.objectWithoutOptionalProperties({ + username: Name, + password: Name, + }); + +export declare namespace BasicAuth { + interface Raw { + username: Name.Raw; + password: Name.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BasicAuthValues.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BasicAuthValues.ts new file mode 100644 index 00000000000..d77ac2ae73d --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BasicAuthValues.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const BasicAuthValues: core.serialization.ObjectSchema< + serializers.dynamic.BasicAuthValues.Raw, + FernIr.dynamic.BasicAuthValues +> = core.serialization.objectWithoutOptionalProperties({ + username: core.serialization.string(), + password: core.serialization.string(), +}); + +export declare namespace BasicAuthValues { + interface Raw { + username: string; + password: string; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BearerAuth.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BearerAuth.ts new file mode 100644 index 00000000000..a2130400098 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BearerAuth.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Name } from "../../../../commons/types/Name"; + +export const BearerAuth: core.serialization.ObjectSchema< + serializers.dynamic.BearerAuth.Raw, + FernIr.dynamic.BearerAuth +> = core.serialization.objectWithoutOptionalProperties({ + token: Name, +}); + +export declare namespace BearerAuth { + interface Raw { + token: Name.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BearerAuthValues.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BearerAuthValues.ts new file mode 100644 index 00000000000..e4c77c8eefc --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/BearerAuthValues.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const BearerAuthValues: core.serialization.ObjectSchema< + serializers.dynamic.BearerAuthValues.Raw, + FernIr.dynamic.BearerAuthValues +> = core.serialization.objectWithoutOptionalProperties({ + token: core.serialization.string(), +}); + +export declare namespace BearerAuthValues { + interface Raw { + token: string; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/HeaderAuth.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/HeaderAuth.ts new file mode 100644 index 00000000000..fe12b690157 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/HeaderAuth.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { NamedParameter } from "../../types/types/NamedParameter"; + +export const HeaderAuth: core.serialization.ObjectSchema< + serializers.dynamic.HeaderAuth.Raw, + FernIr.dynamic.HeaderAuth +> = core.serialization.objectWithoutOptionalProperties({ + header: NamedParameter, +}); + +export declare namespace HeaderAuth { + interface Raw { + header: NamedParameter.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/HeaderAuthValues.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/HeaderAuthValues.ts new file mode 100644 index 00000000000..c7292882ecc --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/HeaderAuthValues.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const HeaderAuthValues: core.serialization.ObjectSchema< + serializers.dynamic.HeaderAuthValues.Raw, + FernIr.dynamic.HeaderAuthValues +> = core.serialization.objectWithoutOptionalProperties({ + value: core.serialization.unknown(), +}); + +export declare namespace HeaderAuthValues { + interface Raw { + value?: unknown; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/index.ts new file mode 100644 index 00000000000..20a84adb7d5 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/auth/types/index.ts @@ -0,0 +1,8 @@ +export * from "./Auth"; +export * from "./AuthValues"; +export * from "./BasicAuth"; +export * from "./BasicAuthValues"; +export * from "./BearerAuth"; +export * from "./BearerAuthValues"; +export * from "./HeaderAuth"; +export * from "./HeaderAuthValues"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/types/Declaration.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/types/Declaration.ts new file mode 100644 index 00000000000..e84455a6607 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/types/Declaration.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { FernFilepath } from "../../../../commons/types/FernFilepath"; +import { Name } from "../../../../commons/types/Name"; + +export const Declaration: core.serialization.ObjectSchema< + serializers.dynamic.Declaration.Raw, + FernIr.dynamic.Declaration +> = core.serialization.objectWithoutOptionalProperties({ + fernFilepath: FernFilepath, + name: Name, +}); + +export declare namespace Declaration { + interface Raw { + fernFilepath: FernFilepath.Raw; + name: Name.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/types/index.ts new file mode 100644 index 00000000000..2468b7a28a9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/declaration/types/index.ts @@ -0,0 +1 @@ +export * from "./Declaration"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/BodyRequest.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/BodyRequest.ts new file mode 100644 index 00000000000..ab182cc1d03 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/BodyRequest.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { NamedParameter } from "../../types/types/NamedParameter"; +import { ReferencedRequestBodyType } from "./ReferencedRequestBodyType"; + +export const BodyRequest: core.serialization.ObjectSchema< + serializers.dynamic.BodyRequest.Raw, + FernIr.dynamic.BodyRequest +> = core.serialization.objectWithoutOptionalProperties({ + pathParameters: core.serialization.list(NamedParameter).optional(), + body: ReferencedRequestBodyType.optional(), +}); + +export declare namespace BodyRequest { + interface Raw { + pathParameters?: NamedParameter.Raw[] | null; + body?: ReferencedRequestBodyType.Raw | null; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Endpoint.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Endpoint.ts new file mode 100644 index 00000000000..8d8d0d28742 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Endpoint.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Auth } from "../../auth/types/Auth"; +import { Declaration } from "../../declaration/types/Declaration"; +import { EndpointLocation } from "./EndpointLocation"; +import { Request } from "./Request"; +import { Response } from "./Response"; + +export const Endpoint: core.serialization.ObjectSchema = + core.serialization.objectWithoutOptionalProperties({ + auth: Auth.optional(), + declaration: Declaration, + location: EndpointLocation, + request: Request, + response: Response, + }); + +export declare namespace Endpoint { + interface Raw { + auth?: Auth.Raw | null; + declaration: Declaration.Raw; + location: EndpointLocation.Raw; + request: Request.Raw; + response: Response.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/EndpointLocation.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/EndpointLocation.ts new file mode 100644 index 00000000000..55c49e86047 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/EndpointLocation.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { HttpMethod } from "../../../../http/types/HttpMethod"; + +export const EndpointLocation: core.serialization.ObjectSchema< + serializers.dynamic.EndpointLocation.Raw, + FernIr.dynamic.EndpointLocation +> = core.serialization.objectWithoutOptionalProperties({ + method: HttpMethod, + path: core.serialization.string(), +}); + +export declare namespace EndpointLocation { + interface Raw { + method: HttpMethod.Raw; + path: string; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.ts new file mode 100644 index 00000000000..f10ae1ea187 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { FileUploadRequestBodyProperty } from "./FileUploadRequestBodyProperty"; + +export const FileUploadRequestBody: core.serialization.ObjectSchema< + serializers.dynamic.FileUploadRequestBody.Raw, + FernIr.dynamic.FileUploadRequestBody +> = core.serialization.objectWithoutOptionalProperties({ + properties: core.serialization.list(FileUploadRequestBodyProperty), +}); + +export declare namespace FileUploadRequestBody { + interface Raw { + properties: FileUploadRequestBodyProperty.Raw[]; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.ts new file mode 100644 index 00000000000..d7e05e13782 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.ts @@ -0,0 +1,53 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { NameAndWireValue } from "../../../../commons/types/NameAndWireValue"; +import { NamedParameter } from "../../types/types/NamedParameter"; + +export const FileUploadRequestBodyProperty: core.serialization.Schema< + serializers.dynamic.FileUploadRequestBodyProperty.Raw, + FernIr.dynamic.FileUploadRequestBodyProperty +> = core.serialization + .union("type", { + file: NameAndWireValue, + fileArray: NameAndWireValue, + bodyProperty: NamedParameter, + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "file": + return FernIr.dynamic.FileUploadRequestBodyProperty.file(value); + case "fileArray": + return FernIr.dynamic.FileUploadRequestBodyProperty.fileArray(value); + case "bodyProperty": + return FernIr.dynamic.FileUploadRequestBodyProperty.bodyProperty(value); + default: + return value as FernIr.dynamic.FileUploadRequestBodyProperty; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace FileUploadRequestBodyProperty { + type Raw = + | FileUploadRequestBodyProperty.File + | FileUploadRequestBodyProperty.FileArray + | FileUploadRequestBodyProperty.BodyProperty; + + interface File extends NameAndWireValue.Raw { + type: "file"; + } + + interface FileArray extends NameAndWireValue.Raw { + type: "fileArray"; + } + + interface BodyProperty extends NamedParameter.Raw { + type: "bodyProperty"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/InlinedRequest.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/InlinedRequest.ts new file mode 100644 index 00000000000..0d4eeff3bf9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/InlinedRequest.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Declaration } from "../../declaration/types/Declaration"; +import { NamedParameter } from "../../types/types/NamedParameter"; +import { InlinedRequestBody } from "./InlinedRequestBody"; + +export const InlinedRequest: core.serialization.ObjectSchema< + serializers.dynamic.InlinedRequest.Raw, + FernIr.dynamic.InlinedRequest +> = core.serialization.objectWithoutOptionalProperties({ + declaration: Declaration, + pathParameters: core.serialization.list(NamedParameter).optional(), + queryParameters: core.serialization.list(NamedParameter).optional(), + headers: core.serialization.list(NamedParameter).optional(), + body: InlinedRequestBody.optional(), +}); + +export declare namespace InlinedRequest { + interface Raw { + declaration: Declaration.Raw; + pathParameters?: NamedParameter.Raw[] | null; + queryParameters?: NamedParameter.Raw[] | null; + headers?: NamedParameter.Raw[] | null; + body?: InlinedRequestBody.Raw | null; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/InlinedRequestBody.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/InlinedRequestBody.ts new file mode 100644 index 00000000000..184f2e7a5f9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/InlinedRequestBody.ts @@ -0,0 +1,54 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { NamedParameter } from "../../types/types/NamedParameter"; +import { ReferencedRequestBody } from "./ReferencedRequestBody"; +import { FileUploadRequestBody } from "./FileUploadRequestBody"; + +export const InlinedRequestBody: core.serialization.Schema< + serializers.dynamic.InlinedRequestBody.Raw, + FernIr.dynamic.InlinedRequestBody +> = core.serialization + .union("type", { + properties: core.serialization.object({ + value: core.serialization.list(NamedParameter), + }), + referenced: ReferencedRequestBody, + fileUpload: FileUploadRequestBody, + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "properties": + return FernIr.dynamic.InlinedRequestBody.properties(value.value); + case "referenced": + return FernIr.dynamic.InlinedRequestBody.referenced(value); + case "fileUpload": + return FernIr.dynamic.InlinedRequestBody.fileUpload(value); + default: + return value as FernIr.dynamic.InlinedRequestBody; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace InlinedRequestBody { + type Raw = InlinedRequestBody.Properties | InlinedRequestBody.Referenced | InlinedRequestBody.FileUpload; + + interface Properties { + type: "properties"; + value: NamedParameter.Raw[]; + } + + interface Referenced extends ReferencedRequestBody.Raw { + type: "referenced"; + } + + interface FileUpload extends FileUploadRequestBody.Raw { + type: "fileUpload"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.ts new file mode 100644 index 00000000000..870e7d93d46 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Name } from "../../../../commons/types/Name"; +import { ReferencedRequestBodyType } from "./ReferencedRequestBodyType"; + +export const ReferencedRequestBody: core.serialization.ObjectSchema< + serializers.dynamic.ReferencedRequestBody.Raw, + FernIr.dynamic.ReferencedRequestBody +> = core.serialization.objectWithoutOptionalProperties({ + bodyKey: Name, + bodyType: ReferencedRequestBodyType, +}); + +export declare namespace ReferencedRequestBody { + interface Raw { + bodyKey: Name.Raw; + bodyType: ReferencedRequestBodyType.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.ts new file mode 100644 index 00000000000..d001c5aac93 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.ts @@ -0,0 +1,44 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const ReferencedRequestBodyType: core.serialization.Schema< + serializers.dynamic.ReferencedRequestBodyType.Raw, + FernIr.dynamic.ReferencedRequestBodyType +> = core.serialization + .union("type", { + bytes: core.serialization.object({}), + typeReference: core.serialization.object({ + value: core.serialization.lazy(() => serializers.dynamic.TypeReference), + }), + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "bytes": + return FernIr.dynamic.ReferencedRequestBodyType.bytes(); + case "typeReference": + return FernIr.dynamic.ReferencedRequestBodyType.typeReference(value.value); + default: + return value as FernIr.dynamic.ReferencedRequestBodyType; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace ReferencedRequestBodyType { + type Raw = ReferencedRequestBodyType.Bytes | ReferencedRequestBodyType.TypeReference; + + interface Bytes { + type: "bytes"; + } + + interface TypeReference { + type: "typeReference"; + value: serializers.dynamic.TypeReference.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Request.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Request.ts new file mode 100644 index 00000000000..5563aea9348 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Request.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { BodyRequest } from "./BodyRequest"; +import { InlinedRequest } from "./InlinedRequest"; + +export const Request: core.serialization.Schema = + core.serialization + .union("type", { + body: BodyRequest, + inlined: InlinedRequest, + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "body": + return FernIr.dynamic.Request.body(value); + case "inlined": + return FernIr.dynamic.Request.inlined(value); + default: + return value as FernIr.dynamic.Request; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace Request { + type Raw = Request.Body | Request.Inlined; + + interface Body extends BodyRequest.Raw { + type: "body"; + } + + interface Inlined extends InlinedRequest.Raw { + type: "inlined"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Response.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Response.ts new file mode 100644 index 00000000000..cc5bfe4e2c5 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/Response.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const Response: core.serialization.Schema = + core.serialization + .union("type", { + json: core.serialization.object({}), + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "json": + return FernIr.dynamic.Response.json(); + default: + return value as FernIr.dynamic.Response; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace Response { + type Raw = Response.Json; + + interface Json { + type: "json"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/index.ts new file mode 100644 index 00000000000..67f44bd19e1 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/endpoints/types/index.ts @@ -0,0 +1,11 @@ +export * from "./EndpointLocation"; +export * from "./Endpoint"; +export * from "./Request"; +export * from "./Response"; +export * from "./BodyRequest"; +export * from "./InlinedRequest"; +export * from "./InlinedRequestBody"; +export * from "./ReferencedRequestBody"; +export * from "./ReferencedRequestBodyType"; +export * from "./FileUploadRequestBody"; +export * from "./FileUploadRequestBodyProperty"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/index.ts new file mode 100644 index 00000000000..28be8c6f5da --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/index.ts @@ -0,0 +1,12 @@ +export * as auth from "./auth"; +export * from "./auth/types"; +export * as declaration from "./declaration"; +export * from "./declaration/types"; +export * as endpoints from "./endpoints"; +export * from "./endpoints/types"; +export * as ir from "./ir"; +export * from "./ir/types"; +export * as snippets from "./snippets"; +export * from "./snippets/types"; +export * as types from "./types"; +export * from "./types/types"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts new file mode 100644 index 00000000000..30f7027e878 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { TypeId } from "../../../../commons/types/TypeId"; +import { NamedType } from "../../types/types/NamedType"; +import { EndpointId } from "../../../../commons/types/EndpointId"; +import { Endpoint } from "../../endpoints/types/Endpoint"; +import { NamedParameter } from "../../types/types/NamedParameter"; + +export const DynamicIntermediateRepresentation: core.serialization.ObjectSchema< + serializers.dynamic.DynamicIntermediateRepresentation.Raw, + FernIr.dynamic.DynamicIntermediateRepresentation +> = core.serialization.objectWithoutOptionalProperties({ + version: core.serialization.stringLiteral("1.0.0"), + types: core.serialization.record(TypeId, NamedType), + endpoints: core.serialization.record(EndpointId, Endpoint), + headers: core.serialization.list(NamedParameter).optional(), +}); + +export declare namespace DynamicIntermediateRepresentation { + interface Raw { + version: "1.0.0"; + types: Record; + endpoints: Record; + headers?: NamedParameter.Raw[] | null; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/types/index.ts new file mode 100644 index 00000000000..6dcc3b641d9 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/ir/types/index.ts @@ -0,0 +1 @@ +export * from "./DynamicIntermediateRepresentation"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.ts new file mode 100644 index 00000000000..052e1bcffdb --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { EndpointLocation } from "../../endpoints/types/EndpointLocation"; +import { AuthValues } from "../../auth/types/AuthValues"; +import { Values } from "./Values"; + +export const EndpointSnippetRequest: core.serialization.ObjectSchema< + serializers.dynamic.EndpointSnippetRequest.Raw, + FernIr.dynamic.EndpointSnippetRequest +> = core.serialization.objectWithoutOptionalProperties({ + endpoint: EndpointLocation, + auth: AuthValues.optional(), + pathParameters: Values.optional(), + queryParameters: Values.optional(), + headers: Values.optional(), + requestBody: core.serialization.unknown().optional(), +}); + +export declare namespace EndpointSnippetRequest { + interface Raw { + endpoint: EndpointLocation.Raw; + auth?: AuthValues.Raw | null; + pathParameters?: Values.Raw | null; + queryParameters?: Values.Raw | null; + headers?: Values.Raw | null; + requestBody?: unknown | null; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.ts new file mode 100644 index 00000000000..15a733d5f6f --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const EndpointSnippetResponse: core.serialization.ObjectSchema< + serializers.dynamic.EndpointSnippetResponse.Raw, + FernIr.dynamic.EndpointSnippetResponse +> = core.serialization.objectWithoutOptionalProperties({ + snippet: core.serialization.string(), +}); + +export declare namespace EndpointSnippetResponse { + interface Raw { + snippet: string; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/Values.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/Values.ts new file mode 100644 index 00000000000..602b64042b0 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/Values.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const Values: core.serialization.Schema = + core.serialization.record(core.serialization.string(), core.serialization.unknown()); + +export declare namespace Values { + type Raw = Record; +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/index.ts new file mode 100644 index 00000000000..bcb5d69b737 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/snippets/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Values"; +export * from "./EndpointSnippetRequest"; +export * from "./EndpointSnippetResponse"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/index.ts new file mode 100644 index 00000000000..eea524d6557 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/AliasType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/AliasType.ts new file mode 100644 index 00000000000..4ae91bdacdd --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/AliasType.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Declaration } from "../../declaration/types/Declaration"; + +export const AliasType: core.serialization.ObjectSchema = + core.serialization.objectWithoutOptionalProperties({ + declaration: Declaration, + typeReference: core.serialization.lazy(() => serializers.dynamic.TypeReference), + }); + +export declare namespace AliasType { + interface Raw { + declaration: Declaration.Raw; + typeReference: serializers.dynamic.TypeReference.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/DiscriminatedUnionType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/DiscriminatedUnionType.ts new file mode 100644 index 00000000000..3d1ad16de64 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/DiscriminatedUnionType.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Declaration } from "../../declaration/types/Declaration"; +import { NameAndWireValue } from "../../../../commons/types/NameAndWireValue"; +import { SingleDiscriminatedUnionType } from "./SingleDiscriminatedUnionType"; + +export const DiscriminatedUnionType: core.serialization.ObjectSchema< + serializers.dynamic.DiscriminatedUnionType.Raw, + FernIr.dynamic.DiscriminatedUnionType +> = core.serialization.objectWithoutOptionalProperties({ + declaration: Declaration, + discriminant: NameAndWireValue, + types: core.serialization.record(core.serialization.string(), SingleDiscriminatedUnionType), +}); + +export declare namespace DiscriminatedUnionType { + interface Raw { + declaration: Declaration.Raw; + discriminant: NameAndWireValue.Raw; + types: Record; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/EnumType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/EnumType.ts new file mode 100644 index 00000000000..492f7e6cd56 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/EnumType.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Declaration } from "../../declaration/types/Declaration"; +import { NameAndWireValue } from "../../../../commons/types/NameAndWireValue"; + +export const EnumType: core.serialization.ObjectSchema = + core.serialization.objectWithoutOptionalProperties({ + declaration: Declaration, + values: core.serialization.list(NameAndWireValue), + }); + +export declare namespace EnumType { + interface Raw { + declaration: Declaration.Raw; + values: NameAndWireValue.Raw[]; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/LiteralType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/LiteralType.ts new file mode 100644 index 00000000000..ea258e70b2f --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/LiteralType.ts @@ -0,0 +1,45 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const LiteralType: core.serialization.Schema = + core.serialization + .union("type", { + boolean: core.serialization.object({ + value: core.serialization.boolean(), + }), + string: core.serialization.object({ + value: core.serialization.string(), + }), + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "boolean": + return FernIr.dynamic.LiteralType.boolean(value.value); + case "string": + return FernIr.dynamic.LiteralType.string(value.value); + default: + return value as FernIr.dynamic.LiteralType; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace LiteralType { + type Raw = LiteralType.Boolean | LiteralType.String; + + interface Boolean { + type: "boolean"; + value: boolean; + } + + interface String { + type: "string"; + value: string; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/MapType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/MapType.ts new file mode 100644 index 00000000000..2ce6cd0b670 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/MapType.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const MapType: core.serialization.ObjectSchema = + core.serialization.objectWithoutOptionalProperties({ + key: core.serialization.lazy(() => serializers.dynamic.TypeReference), + value: core.serialization.lazy(() => serializers.dynamic.TypeReference), + }); + +export declare namespace MapType { + interface Raw { + key: serializers.dynamic.TypeReference.Raw; + value: serializers.dynamic.TypeReference.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/NamedParameter.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/NamedParameter.ts new file mode 100644 index 00000000000..2ccb766420a --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/NamedParameter.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { NameAndWireValue } from "../../../../commons/types/NameAndWireValue"; + +export const NamedParameter: core.serialization.ObjectSchema< + serializers.dynamic.NamedParameter.Raw, + FernIr.dynamic.NamedParameter +> = core.serialization.objectWithoutOptionalProperties({ + name: NameAndWireValue, + typeReference: core.serialization.lazy(() => serializers.dynamic.TypeReference), +}); + +export declare namespace NamedParameter { + interface Raw { + name: NameAndWireValue.Raw; + typeReference: serializers.dynamic.TypeReference.Raw; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/NamedType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/NamedType.ts new file mode 100644 index 00000000000..caadcc5df7e --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/NamedType.ts @@ -0,0 +1,70 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { AliasType } from "./AliasType"; +import { EnumType } from "./EnumType"; +import { ObjectType } from "./ObjectType"; +import { DiscriminatedUnionType } from "./DiscriminatedUnionType"; +import { UndiscriminatedUnionType } from "./UndiscriminatedUnionType"; + +export const NamedType: core.serialization.Schema = + core.serialization + .union("type", { + alias: AliasType, + enum: EnumType, + object: ObjectType, + discriminatedUnion: DiscriminatedUnionType, + undiscriminatedUnion: UndiscriminatedUnionType, + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "alias": + return FernIr.dynamic.NamedType.alias(value); + case "enum": + return FernIr.dynamic.NamedType.enum(value); + case "object": + return FernIr.dynamic.NamedType.object(value); + case "discriminatedUnion": + return FernIr.dynamic.NamedType.discriminatedUnion(value); + case "undiscriminatedUnion": + return FernIr.dynamic.NamedType.undiscriminatedUnion(value); + default: + return value as FernIr.dynamic.NamedType; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace NamedType { + type Raw = + | NamedType.Alias + | NamedType.Enum + | NamedType.Object + | NamedType.DiscriminatedUnion + | NamedType.UndiscriminatedUnion; + + interface Alias extends AliasType.Raw { + type: "alias"; + } + + interface Enum extends EnumType.Raw { + type: "enum"; + } + + interface Object extends ObjectType.Raw { + type: "object"; + } + + interface DiscriminatedUnion extends DiscriminatedUnionType.Raw { + type: "discriminatedUnion"; + } + + interface UndiscriminatedUnion extends UndiscriminatedUnionType.Raw { + type: "undiscriminatedUnion"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/ObjectType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/ObjectType.ts new file mode 100644 index 00000000000..2b25642385a --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/ObjectType.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Declaration } from "../../declaration/types/Declaration"; +import { NamedParameter } from "./NamedParameter"; + +export const ObjectType: core.serialization.ObjectSchema< + serializers.dynamic.ObjectType.Raw, + FernIr.dynamic.ObjectType +> = core.serialization.objectWithoutOptionalProperties({ + declaration: Declaration, + properties: core.serialization.list(NamedParameter), +}); + +export declare namespace ObjectType { + interface Raw { + declaration: Declaration.Raw; + properties: NamedParameter.Raw[]; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.ts new file mode 100644 index 00000000000..d2a7b1c0695 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.ts @@ -0,0 +1,54 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { SingleDiscriminatedUnionTypeObject } from "./SingleDiscriminatedUnionTypeObject"; +import { SingleDiscriminatedUnionTypeSingleProperty } from "./SingleDiscriminatedUnionTypeSingleProperty"; +import { SingleDiscriminatedUnionTypeNoProperties } from "./SingleDiscriminatedUnionTypeNoProperties"; + +export const SingleDiscriminatedUnionType: core.serialization.Schema< + serializers.dynamic.SingleDiscriminatedUnionType.Raw, + FernIr.dynamic.SingleDiscriminatedUnionType +> = core.serialization + .union("type", { + samePropertiesAsObject: SingleDiscriminatedUnionTypeObject, + singleProperty: SingleDiscriminatedUnionTypeSingleProperty, + noProperties: SingleDiscriminatedUnionTypeNoProperties, + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "samePropertiesAsObject": + return FernIr.dynamic.SingleDiscriminatedUnionType.samePropertiesAsObject(value); + case "singleProperty": + return FernIr.dynamic.SingleDiscriminatedUnionType.singleProperty(value); + case "noProperties": + return FernIr.dynamic.SingleDiscriminatedUnionType.noProperties(value); + default: + return value as FernIr.dynamic.SingleDiscriminatedUnionType; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace SingleDiscriminatedUnionType { + type Raw = + | SingleDiscriminatedUnionType.SamePropertiesAsObject + | SingleDiscriminatedUnionType.SingleProperty + | SingleDiscriminatedUnionType.NoProperties; + + interface SamePropertiesAsObject extends SingleDiscriminatedUnionTypeObject.Raw { + type: "samePropertiesAsObject"; + } + + interface SingleProperty extends SingleDiscriminatedUnionTypeSingleProperty.Raw { + type: "singleProperty"; + } + + interface NoProperties extends SingleDiscriminatedUnionTypeNoProperties.Raw { + type: "noProperties"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.ts new file mode 100644 index 00000000000..2d7127f1c9e --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { NameAndWireValue } from "../../../../commons/types/NameAndWireValue"; +import { NamedParameter } from "./NamedParameter"; + +export const SingleDiscriminatedUnionTypeNoProperties: core.serialization.ObjectSchema< + serializers.dynamic.SingleDiscriminatedUnionTypeNoProperties.Raw, + FernIr.dynamic.SingleDiscriminatedUnionTypeNoProperties +> = core.serialization.objectWithoutOptionalProperties({ + discriminantValue: NameAndWireValue, + properties: core.serialization.list(NamedParameter).optional(), +}); + +export declare namespace SingleDiscriminatedUnionTypeNoProperties { + interface Raw { + discriminantValue: NameAndWireValue.Raw; + properties?: NamedParameter.Raw[] | null; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.ts new file mode 100644 index 00000000000..4524cf6e455 --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { TypeId } from "../../../../commons/types/TypeId"; +import { NameAndWireValue } from "../../../../commons/types/NameAndWireValue"; +import { NamedParameter } from "./NamedParameter"; + +export const SingleDiscriminatedUnionTypeObject: core.serialization.ObjectSchema< + serializers.dynamic.SingleDiscriminatedUnionTypeObject.Raw, + FernIr.dynamic.SingleDiscriminatedUnionTypeObject +> = core.serialization.objectWithoutOptionalProperties({ + typeId: TypeId, + discriminantValue: NameAndWireValue, + properties: core.serialization.list(NamedParameter), +}); + +export declare namespace SingleDiscriminatedUnionTypeObject { + interface Raw { + typeId: TypeId.Raw; + discriminantValue: NameAndWireValue.Raw; + properties: NamedParameter.Raw[]; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.ts new file mode 100644 index 00000000000..65bec1f163e --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { NameAndWireValue } from "../../../../commons/types/NameAndWireValue"; +import { NamedParameter } from "./NamedParameter"; + +export const SingleDiscriminatedUnionTypeSingleProperty: core.serialization.ObjectSchema< + serializers.dynamic.SingleDiscriminatedUnionTypeSingleProperty.Raw, + FernIr.dynamic.SingleDiscriminatedUnionTypeSingleProperty +> = core.serialization.objectWithoutOptionalProperties({ + typeReference: core.serialization.lazy(() => serializers.dynamic.TypeReference), + discriminantValue: NameAndWireValue, + properties: core.serialization.list(NamedParameter).optional(), +}); + +export declare namespace SingleDiscriminatedUnionTypeSingleProperty { + interface Raw { + typeReference: serializers.dynamic.TypeReference.Raw; + discriminantValue: NameAndWireValue.Raw; + properties?: NamedParameter.Raw[] | null; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/TypeReference.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/TypeReference.ts new file mode 100644 index 00000000000..dfb826c6b1c --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/TypeReference.ts @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { LiteralType } from "./LiteralType"; +import { TypeId } from "../../../../commons/types/TypeId"; +import { PrimitiveTypeV1 } from "../../../../types/types/PrimitiveTypeV1"; + +export const TypeReference: core.serialization.Schema< + serializers.dynamic.TypeReference.Raw, + FernIr.dynamic.TypeReference +> = core.serialization + .union(core.serialization.discriminant("type", "_type"), { + list: core.serialization.object({ + value: core.serialization.lazy(() => serializers.dynamic.TypeReference), + }), + literal: core.serialization.object({ + value: LiteralType, + }), + map: core.serialization.lazyObject(() => serializers.dynamic.MapType), + named: core.serialization.object({ + value: TypeId, + }), + optional: core.serialization.object({ + value: core.serialization.lazy(() => serializers.dynamic.TypeReference), + }), + primitive: core.serialization.object({ + value: PrimitiveTypeV1, + }), + set: core.serialization.object({ + value: core.serialization.lazy(() => serializers.dynamic.TypeReference), + }), + unknown: core.serialization.object({}), + }) + .transform({ + transform: (value) => { + switch (value.type) { + case "list": + return FernIr.dynamic.TypeReference.list(value.value); + case "literal": + return FernIr.dynamic.TypeReference.literal(value.value); + case "map": + return FernIr.dynamic.TypeReference.map(value); + case "named": + return FernIr.dynamic.TypeReference.named(value.value); + case "optional": + return FernIr.dynamic.TypeReference.optional(value.value); + case "primitive": + return FernIr.dynamic.TypeReference.primitive(value.value); + case "set": + return FernIr.dynamic.TypeReference.set(value.value); + case "unknown": + return FernIr.dynamic.TypeReference.unknown(); + default: + return value as FernIr.dynamic.TypeReference; + } + }, + untransform: ({ _visit, ...value }) => value as any, + }); + +export declare namespace TypeReference { + type Raw = + | TypeReference.List + | TypeReference.Literal + | TypeReference.Map + | TypeReference.Named + | TypeReference.Optional + | TypeReference.Primitive + | TypeReference.Set + | TypeReference.Unknown; + + interface List { + _type: "list"; + value: serializers.dynamic.TypeReference.Raw; + } + + interface Literal { + _type: "literal"; + value: LiteralType.Raw; + } + + interface Map extends serializers.dynamic.MapType.Raw { + _type: "map"; + } + + interface Named { + _type: "named"; + value: TypeId.Raw; + } + + interface Optional { + _type: "optional"; + value: serializers.dynamic.TypeReference.Raw; + } + + interface Primitive { + _type: "primitive"; + value: PrimitiveTypeV1.Raw; + } + + interface Set { + _type: "set"; + value: serializers.dynamic.TypeReference.Raw; + } + + interface Unknown { + _type: "unknown"; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/UndiscriminatedUnionType.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/UndiscriminatedUnionType.ts new file mode 100644 index 00000000000..3213e086b6c --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/UndiscriminatedUnionType.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as FernIr from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { Declaration } from "../../declaration/types/Declaration"; + +export const UndiscriminatedUnionType: core.serialization.ObjectSchema< + serializers.dynamic.UndiscriminatedUnionType.Raw, + FernIr.dynamic.UndiscriminatedUnionType +> = core.serialization.objectWithoutOptionalProperties({ + declaration: Declaration, + types: core.serialization.list(core.serialization.lazy(() => serializers.dynamic.TypeReference)), +}); + +export declare namespace UndiscriminatedUnionType { + interface Raw { + declaration: Declaration.Raw; + types: serializers.dynamic.TypeReference.Raw[]; + } +} diff --git a/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/index.ts new file mode 100644 index 00000000000..47fd417353b --- /dev/null +++ b/packages/ir-sdk/src/sdk/serialization/resources/dynamic/resources/types/types/index.ts @@ -0,0 +1,14 @@ +export * from "./NamedParameter"; +export * from "./NamedType"; +export * from "./TypeReference"; +export * from "./AliasType"; +export * from "./EnumType"; +export * from "./MapType"; +export * from "./ObjectType"; +export * from "./DiscriminatedUnionType"; +export * from "./SingleDiscriminatedUnionType"; +export * from "./SingleDiscriminatedUnionTypeObject"; +export * from "./SingleDiscriminatedUnionTypeSingleProperty"; +export * from "./SingleDiscriminatedUnionTypeNoProperties"; +export * from "./UndiscriminatedUnionType"; +export * from "./LiteralType"; diff --git a/packages/ir-sdk/src/sdk/serialization/resources/index.ts b/packages/ir-sdk/src/sdk/serialization/resources/index.ts index afefd20e785..33573120659 100644 --- a/packages/ir-sdk/src/sdk/serialization/resources/index.ts +++ b/packages/ir-sdk/src/sdk/serialization/resources/index.ts @@ -4,6 +4,7 @@ export * as commons from "./commons"; export * from "./commons/types"; export * as constants from "./constants"; export * from "./constants/types"; +export * as dynamic from "./dynamic"; export * as environment from "./environment"; export * from "./environment/types"; export * as errors from "./errors"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e75d01f7ea9..a00661c12c7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3474,6 +3474,9 @@ importers: '@fern-api/docs-validator': specifier: workspace:* version: link:../yaml/docs-validator + '@fern-api/dynamic-snippets': + specifier: workspace:* + version: link:../dynamic-snippets '@fern-api/fern-definition-formatter': specifier: workspace:* version: link:../fern-definition/formatter @@ -4157,6 +4160,58 @@ importers: specifier: ^2.0.5 version: 2.0.5(@types/node@18.7.18)(jsdom@20.0.3)(sass@1.72.0)(terser@5.31.5) + packages/cli/dynamic-snippets: + dependencies: + '@fern-api/configuration': + specifier: workspace:* + version: link:../configuration + '@fern-api/core-utils': + specifier: workspace:* + version: link:../../commons/core-utils + '@fern-api/fs-utils': + specifier: workspace:* + version: link:../../commons/fs-utils + '@fern-api/ir-generator': + specifier: workspace:* + version: link:../generation/ir-generator + '@fern-api/ir-sdk': + specifier: workspace:* + version: link:../../ir-sdk + '@fern-api/project-loader': + specifier: workspace:* + version: link:../project-loader + '@fern-api/task-context': + specifier: workspace:* + version: link:../task-context + '@fern-api/workspace-loader': + specifier: workspace:* + version: link:../workspace-loader + url-join: + specifier: ^5.0.0 + version: 5.0.0 + devDependencies: + '@types/node': + specifier: 18.7.18 + version: 18.7.18 + depcheck: + specifier: ^1.4.6 + version: 1.4.6 + eslint: + specifier: ^8.56.0 + version: 8.56.0 + globals: + specifier: link:@types/vitest/globals + version: link:@types/vitest/globals + organize-imports-cli: + specifier: ^0.10.0 + version: 0.10.0 + typescript: + specifier: 4.6.4 + version: 4.6.4 + vitest: + specifier: ^2.0.5 + version: 2.0.5(@types/node@18.7.18)(jsdom@20.0.3)(sass@1.72.0)(terser@5.31.5) + packages/cli/ete-tests: dependencies: '@fern-api/configuration':