From 67af4c0d560fc87460bea9129773d30b12d9ddc7 Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Mon, 12 Aug 2024 14:14:19 -0400 Subject: [PATCH 1/3] make id generation determinstic --- .../tests/add/__snapshots__/add.test.ts.snap | 116 - .../__snapshots__/dependencies.test.ts.snap | 877 +- .../tests/fdr/__snapshots__/fdr.test.ts.snap | 1416 - .../generate-with-settings.test.ts.snap | 1580 - .../__snapshots__/generate.test.ts.snap | 6 - .../help/__snapshots__/help.test.ts.snap | 36 - .../init/__snapshots__/init.test.ts.snap | 388 - .../tests/ir/__snapshots__/ir.test.ts.snap | 36974 +--------------- .../__snapshots__/update-api.test.ts.snap | 796 - .../__snapshots__/update-api.test.ts.snap | 1662 - .../__snapshots__/upgrade.test.ts.snap | 53 - .../__snapshots__/validate.test.ts.snap | 20 - .../writeDefinition.test.ts.snap | 97 - .../__snapshots__/writeOverrides.test.ts.snap | 27 - .../__test__/irs/environmentAudiences.json | 4 +- .../irs/environmentAudiencesAllHack.json | 4 +- .../code-samples-open-api.json | 2 +- .../test-definitions-openapi/enum-casing.json | 2 +- .../inline-schema-reference.json | 2 +- .../test-definitions-openapi/names.json | 2 +- .../src/__test__/test-definitions/enum.json | 6 +- .../__test__/test-definitions/examples.json | 20 +- .../__test__/test-definitions/grpc-proto.json | 2 +- .../__test__/test-definitions/literal.json | 10 +- .../__test__/test-definitions/mixed-case.json | 4 +- .../test-definitions/package-yml.json | 4 +- .../server-sent-event-examples.json | 2 +- .../test-definitions/streaming-parameter.json | 2 +- .../__test__/test-definitions/streaming.json | 2 +- .../undiscriminated-unions.json | 2 +- .../services/convertExampleEndpointCall.ts | 11 +- 31 files changed, 79 insertions(+), 44050 deletions(-) diff --git a/packages/cli/ete-tests/src/tests/add/__snapshots__/add.test.ts.snap b/packages/cli/ete-tests/src/tests/add/__snapshots__/add.test.ts.snap index 86940b9a09a..47a506977d6 100644 --- a/packages/cli/ete-tests/src/tests/add/__snapshots__/add.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/add/__snapshots__/add.test.ts.snap @@ -115,119 +115,3 @@ groups: }, ] `; - -exports[`fern add fern add --group sdk 1`] = ` -[ - { - "contents": [ - { - "contents": [ - { - "contents": "name: api -error-discrimination: - strategy: status-code -", - "name": "api.yml", - "type": "file", - }, - { - "contents": "# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json - -service: - auth: false - base-path: /movies - endpoints: - createMovie: - docs: Add a movie to the database - method: POST - path: /create-movie - request: CreateMovieRequest - response: MovieId - - getMovie: - docs: Retrieve a movie from the database based on the ID - method: GET - path: /{id} - path-parameters: - id: MovieId - response: Movie - errors: - - MovieDoesNotExistError - examples: - # Success response - - path-parameters: - id: tt0111161 - response: - body: - id: tt0111161 - title: The Shawshank Redemption - rating: 9.3 - # Error response - - path-parameters: - id: tt1234 - response: - error: MovieDoesNotExistError - body: tt1234 - -types: - MovieId: - type: string - docs: The unique identifier for a Movie in the database - - Movie: - properties: - id: MovieId - title: string - rating: - type: double - docs: The rating scale out of ten stars - - CreateMovieRequest: - properties: - title: string - rating: double - -errors: - MovieDoesNotExistError: - status-code: 404 - type: MovieId -", - "name": "imdb.yml", - "type": "file", - }, - ], - "name": "definition", - "type": "directory", - }, - { - "contents": "{ - "organization": "fern", - "version": "0.0.0" -}", - "name": "fern.config.json", - "type": "file", - }, - { - "contents": "default-group: local -groups: - local: - generators: - - name: fernapi/fern-typescript-node-sdk - version: 0.9.5 - output: - location: local-file-system - path: ../sdks/typescript - typescript: - generators: - - name: fernapi/fern-typescript - version: 0.7.2 -", - "name": "generators.yml", - "type": "file", - }, - ], - "name": "fern", - "type": "directory", - }, -] -`; diff --git a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap index 2c5773a7f5a..284deaef72b 100644 --- a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap @@ -512,7 +512,7 @@ exports[`dependencies > correctly incorporates dependencies 1`] = ` "value": null } }, - "id": "d6c6ed9738b2481b8cf22457a7bb62b68d6eedde", + "id": "f9a90b798c9662a33e5c0834f56d48af5c5ba48d", "docs": null } } @@ -871,877 +871,4 @@ exports[`dependencies > correctly incorporates dependencies 1`] = ` }" `; -exports[`dependencies > file dependencies 1`] = `3037640`; - -exports[`dependencies correctly incorporates dependencies 1`] = ` -"{ - "fdrApiDefinitionId": null, - "apiVersion": null, - "apiName": { - "originalName": "dependent", - "camelCase": { - "unsafeName": "dependent", - "safeName": "dependent" - }, - "snakeCase": { - "unsafeName": "dependent", - "safeName": "dependent" - }, - "screamingSnakeCase": { - "unsafeName": "DEPENDENT", - "safeName": "DEPENDENT" - }, - "pascalCase": { - "unsafeName": "Dependent", - "safeName": "Dependent" - } - }, - "apiDisplayName": null, - "apiDocs": null, - "auth": { - "requirement": "ALL", - "schemes": [], - "docs": null - }, - "headers": [], - "idempotencyHeaders": [], - "types": { - "type_imported:RootString": { - "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": [ - { - "originalName": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "packagePath": [ - { - "originalName": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "file": null - }, - "typeId": "type_imported: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_y:IntegerAlias": { - "name": { - "name": { - "originalName": "IntegerAlias", - "camelCase": { - "unsafeName": "integerAlias", - "safeName": "integerAlias" - }, - "snakeCase": { - "unsafeName": "integer_alias", - "safeName": "integer_alias" - }, - "screamingSnakeCase": { - "unsafeName": "INTEGER_ALIAS", - "safeName": "INTEGER_ALIAS" - }, - "pascalCase": { - "unsafeName": "IntegerAlias", - "safeName": "IntegerAlias" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "y", - "camelCase": { - "unsafeName": "y", - "safeName": "y" - }, - "snakeCase": { - "unsafeName": "y", - "safeName": "y" - }, - "screamingSnakeCase": { - "unsafeName": "Y", - "safeName": "Y" - }, - "pascalCase": { - "unsafeName": "Y", - "safeName": "Y" - } - } - ], - "packagePath": [], - "file": { - "originalName": "y", - "camelCase": { - "unsafeName": "y", - "safeName": "y" - }, - "snakeCase": { - "unsafeName": "y", - "safeName": "y" - }, - "screamingSnakeCase": { - "unsafeName": "Y", - "safeName": "Y" - }, - "pascalCase": { - "unsafeName": "Y", - "safeName": "Y" - } - } - }, - "typeId": "type_y:IntegerAlias" - }, - "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": [], - "autogeneratedExamples": [], - "availability": null, - "docs": null - }, - "type_imported/x:StringAlias": { - "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": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - }, - { - "originalName": "x", - "camelCase": { - "unsafeName": "x", - "safeName": "x" - }, - "snakeCase": { - "unsafeName": "x", - "safeName": "x" - }, - "screamingSnakeCase": { - "unsafeName": "X", - "safeName": "X" - }, - "pascalCase": { - "unsafeName": "X", - "safeName": "X" - } - } - ], - "packagePath": [ - { - "originalName": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "file": { - "originalName": "x", - "camelCase": { - "unsafeName": "x", - "safeName": "x" - }, - "snakeCase": { - "unsafeName": "x", - "safeName": "x" - }, - "screamingSnakeCase": { - "unsafeName": "X", - "safeName": "X" - }, - "pascalCase": { - "unsafeName": "X", - "safeName": "X" - } - } - }, - "typeId": "type_imported/x: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": [], - "autogeneratedExamples": [], - "availability": null, - "docs": null - } - }, - "errors": {}, - "services": { - "service_imported": { - "availability": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "originalName": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "packagePath": [ - { - "originalName": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "file": null - } - }, - "displayName": null, - "basePath": { - "head": "/", - "parts": [] - }, - "headers": [], - "pathParameters": [], - "encoding": { - "json": {}, - "proto": null - }, - "transport": { - "type": "http" - }, - "endpoints": [ - { - "id": "endpoint_imported.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", - "path": { - "head": "", - "parts": [] - }, - "fullPath": { - "head": "", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": null, - "sdkRequest": null, - "response": { - "body": null, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "d6c6ed9738b2481b8cf22457a7bb62b68d6eedde", - "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": {}, - "sharedTypes": [ - "type_imported:RootString", - "type_y:IntegerAlias", - "type_imported/x:StringAlias" - ] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": null, - "subpackages": { - "subpackage_imported": { - "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": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "packagePath": [ - { - "originalName": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "file": null - }, - "service": "service_imported", - "types": [ - "type_imported:RootString" - ], - "errors": [], - "subpackages": [ - "subpackage_imported/x" - ], - "navigationConfig": null, - "webhooks": null, - "websocket": null, - "hasEndpointsInTree": true, - "docs": null - }, - "subpackage_y": { - "name": { - "originalName": "y", - "camelCase": { - "unsafeName": "y", - "safeName": "y" - }, - "snakeCase": { - "unsafeName": "y", - "safeName": "y" - }, - "screamingSnakeCase": { - "unsafeName": "Y", - "safeName": "Y" - }, - "pascalCase": { - "unsafeName": "Y", - "safeName": "Y" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "y", - "camelCase": { - "unsafeName": "y", - "safeName": "y" - }, - "snakeCase": { - "unsafeName": "y", - "safeName": "y" - }, - "screamingSnakeCase": { - "unsafeName": "Y", - "safeName": "Y" - }, - "pascalCase": { - "unsafeName": "Y", - "safeName": "Y" - } - } - ], - "packagePath": [], - "file": { - "originalName": "y", - "camelCase": { - "unsafeName": "y", - "safeName": "y" - }, - "snakeCase": { - "unsafeName": "y", - "safeName": "y" - }, - "screamingSnakeCase": { - "unsafeName": "Y", - "safeName": "Y" - }, - "pascalCase": { - "unsafeName": "Y", - "safeName": "Y" - } - } - }, - "service": null, - "types": [ - "type_y:IntegerAlias" - ], - "errors": [], - "subpackages": [], - "navigationConfig": null, - "webhooks": null, - "websocket": null, - "hasEndpointsInTree": false, - "docs": null - }, - "subpackage_imported/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": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - }, - { - "originalName": "x", - "camelCase": { - "unsafeName": "x", - "safeName": "x" - }, - "snakeCase": { - "unsafeName": "x", - "safeName": "x" - }, - "screamingSnakeCase": { - "unsafeName": "X", - "safeName": "X" - }, - "pascalCase": { - "unsafeName": "X", - "safeName": "X" - } - } - ], - "packagePath": [ - { - "originalName": "imported", - "camelCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "snakeCase": { - "unsafeName": "imported", - "safeName": "imported" - }, - "screamingSnakeCase": { - "unsafeName": "IMPORTED", - "safeName": "IMPORTED" - }, - "pascalCase": { - "unsafeName": "Imported", - "safeName": "Imported" - } - } - ], - "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": [ - "type_imported/x:StringAlias" - ], - "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_imported", - "subpackage_y" - ], - "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[`dependencies file dependencies 1`] = `3037640`; +exports[`dependencies > file dependencies 1`] = `3038136`; diff --git a/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap b/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap index 2e39f897b1c..44ecb769988 100644 --- a/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/fdr/__snapshots__/fdr.test.ts.snap @@ -1415,1419 +1415,3 @@ exports[`fdr > {"name":"simple"} 1`] = ` ] }" `; - -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" - } - } - ] - } - }, - "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" - } - } - } - ] - } - }, - "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" - } - } - } - } - ] - } - }, - "type_imdb:DirectorWrapper": { - "name": "DirectorWrapper", - "shape": { - "type": "object", - "extends": [], - "properties": [ - { - "key": "director", - "valueType": { - "type": "id", - "value": "type_director:Director" - } - } - ] - } - }, - "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": [], - "properties": [] - } - }, - { - "description": "i am docs", - "discriminantValue": "cinematographer", - "additionalProperties": { - "extends": [], - "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" - } - } - } - ] - } - } - }, - "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": [], - "parts": [ - { - "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": [ - { - "path": "/movies", - "pathParameters": {}, - "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": "/movies", - "pathParameters": {}, - "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": "movieId", - "type": { - "type": "id", - "value": "type_imdb:MovieId" - } - } - ], - "parts": [ - { - "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" - }, - { - "statusCode": 400, - "name": "BadRequestError" - } - ], - "examples": [ - { - "path": "/movies/id-123", - "pathParameters": { - "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": "/movies/id-123", - "pathParameters": { - "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": "movieId", - "type": { - "type": "id", - "value": "type_imdb:MovieId" - } - } - ], - "parts": [ - { - "type": "literal", - "value": "/movies" - }, - { - "type": "literal", - "value": "/" - }, - { - "type": "pathParameter", - "value": "movieId" - }, - { - "type": "literal", - "value": "" - } - ] - }, - "queryParameters": [], - "headers": [], - "errorsV2": [ - { - "statusCode": 400, - "name": "BadRequestError" - } - ], - "examples": [] - }, - { - "auth": false, - "method": "POST", - "id": "upload", - "originalEndpointId": "endpoint_imdb.upload", - "name": "Upload", - "path": { - "pathParameters": [ - { - "key": "movieId", - "type": { - "type": "id", - "value": "type_imdb:MovieId" - } - } - ], - "parts": [ - { - "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": [] - } - ], - "webhooks": [], - "websockets": [], - "types": [ - "type_imdb:CurrencyAmount", - "type_imdb:MovieId", - "type_imdb:ActorId", - "type_imdb:Movie", - "type_imdb:CreateMovieRequest", - "type_imdb:DirectorWrapper", - "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" - } - } - ] - } - }, - "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" - } - } - } - ] - } - }, - "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" - } - } - } - } - ] - } - }, - "type_imdb:DirectorWrapper": { - "name": "DirectorWrapper", - "shape": { - "type": "object", - "extends": [], - "properties": [ - { - "key": "director", - "valueType": { - "type": "id", - "value": "type_director:Director" - } - } - ] - } - }, - "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": [], - "properties": [] - } - }, - { - "description": "i am docs", - "discriminantValue": "cinematographer", - "additionalProperties": { - "extends": [], - "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" - } - } - } - ] - } - } - }, - "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": [], - "parts": [ - { - "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": [ - { - "path": "/movies", - "pathParameters": {}, - "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": "/movies", - "pathParameters": {}, - "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": "movieId", - "type": { - "type": "id", - "value": "type_imdb:MovieId" - } - } - ], - "parts": [ - { - "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" - }, - { - "statusCode": 400, - "name": "BadRequestError" - } - ], - "examples": [ - { - "path": "/movies/id-123", - "pathParameters": { - "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": "/movies/id-123", - "pathParameters": { - "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": "movieId", - "type": { - "type": "id", - "value": "type_imdb:MovieId" - } - } - ], - "parts": [ - { - "type": "literal", - "value": "/movies" - }, - { - "type": "literal", - "value": "/" - }, - { - "type": "pathParameter", - "value": "movieId" - }, - { - "type": "literal", - "value": "" - } - ] - }, - "queryParameters": [], - "headers": [], - "errorsV2": [ - { - "statusCode": 400, - "name": "BadRequestError" - } - ], - "examples": [] - }, - { - "auth": false, - "method": "POST", - "id": "upload", - "originalEndpointId": "endpoint_imdb.upload", - "name": "Upload", - "path": { - "pathParameters": [ - { - "key": "movieId", - "type": { - "type": "id", - "value": "type_imdb:MovieId" - } - } - ], - "parts": [ - { - "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": [] - } - ], - "webhooks": [], - "websockets": [], - "types": [ - "type_imdb:CurrencyAmount", - "type_imdb:MovieId", - "type_imdb:ActorId", - "type_imdb:Movie", - "type_imdb:CreateMovieRequest", - "type_imdb:DirectorWrapper", - "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/generate/__snapshots__/generate-with-settings.test.ts.snap b/packages/cli/ete-tests/src/tests/generate/__snapshots__/generate-with-settings.test.ts.snap index 2bb310e874f..38fcd7f5cc7 100644 --- a/packages/cli/ete-tests/src/tests/generate/__snapshots__/generate-with-settings.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/generate/__snapshots__/generate-with-settings.test.ts.snap @@ -1561,1586 +1561,6 @@ import pydantic from .core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class Url(UniversalBaseModel): - url: str = pydantic.Field() - """ - The URL of the source media file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "url.py", - "type": "file", - }, -] -`; - -exports[`fern generate with settings dependencies-based api 1`] = ` -[ - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -from .resources import spec_1, spec_2 - -__all__ = ["spec_1", "spec_2"] -", - "name": "__init__.py", - "type": "file", - }, - { - "contents": [ - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -from .datetime_utils import serialize_datetime -from .pydantic_utilities import ( - IS_PYDANTIC_V2, - UniversalBaseModel, - UniversalRootModel, - deep_union_pydantic_dicts, - parse_obj_as, - universal_field_validator, - universal_root_validator, - update_forward_refs, -) - -__all__ = [ - "IS_PYDANTIC_V2", - "UniversalBaseModel", - "UniversalRootModel", - "deep_union_pydantic_dicts", - "parse_obj_as", - "serialize_datetime", - "universal_field_validator", - "universal_root_validator", - "update_forward_refs", -] -", - "name": "__init__.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import datetime as dt - - -def serialize_datetime(v: dt.datetime) -> str: - """ - Serialize a datetime including timezone info. - - Uses the timezone info provided if present, otherwise uses the current runtime's timezone info. - - UTC datetimes end in "Z" while all other timezones are represented as offset from UTC, e.g. +05:00. - """ - - def _serialize_zoned_datetime(v: dt.datetime) -> str: - if v.tzinfo is not None and v.tzinfo.tzname(None) == dt.timezone.utc.tzname(None): - # UTC is a special case where we use "Z" at the end instead of "+00:00" - return v.isoformat().replace("+00:00", "Z") - else: - # Delegate to the typical +/- offset format - return v.isoformat() - - if v.tzinfo is not None: - return _serialize_zoned_datetime(v) - else: - local_tz = dt.datetime.now().astimezone().tzinfo - localized_dt = v.replace(tzinfo=local_tz) - return _serialize_zoned_datetime(localized_dt) -", - "name": "datetime_utils.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -# nopycln: file -import datetime as dt -import typing -from collections import defaultdict -from functools import wraps - -import pydantic - -from .datetime_utils import serialize_datetime - -IS_PYDANTIC_V2 = pydantic.VERSION.startswith("2.") - -if IS_PYDANTIC_V2: - # isort will try to reformat the comments on these imports, which breaks mypy - # isort: off - from pydantic.v1.datetime_parse import ( # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 - parse_date as parse_date, - ) - from pydantic.v1.datetime_parse import ( # pyright: ignore[reportMissingImports] # Pydantic v2 - parse_datetime as parse_datetime, - ) - from pydantic.v1.json import ( # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 - ENCODERS_BY_TYPE as encoders_by_type, - ) - from pydantic.v1.typing import ( # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 - get_args as get_args, - ) - from pydantic.v1.typing import get_origin as get_origin # pyright: ignore[reportMissingImports] # Pydantic v2 - from pydantic.v1.typing import ( # pyright: ignore[reportMissingImports] # Pydantic v2 - is_literal_type as is_literal_type, - ) - from pydantic.v1.typing import is_union as is_union # pyright: ignore[reportMissingImports] # Pydantic v2 - from pydantic.v1.fields import ModelField as ModelField # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 -else: - from pydantic.datetime_parse import parse_date as parse_date # type: ignore # Pydantic v1 - from pydantic.datetime_parse import parse_datetime as parse_datetime # type: ignore # Pydantic v1 - from pydantic.fields import ModelField as ModelField # type: ignore # Pydantic v1 - from pydantic.json import ENCODERS_BY_TYPE as encoders_by_type # type: ignore # Pydantic v1 - from pydantic.typing import get_args as get_args # type: ignore # Pydantic v1 - from pydantic.typing import get_origin as get_origin # type: ignore # Pydantic v1 - from pydantic.typing import is_literal_type as is_literal_type # type: ignore # Pydantic v1 - from pydantic.typing import is_union as is_union # type: ignore # Pydantic v1 - - # isort: on - - -T = typing.TypeVar("T") -Model = typing.TypeVar("Model", bound=pydantic.BaseModel) - - -def deep_union_pydantic_dicts( - source: typing.Dict[str, typing.Any], destination: typing.Dict[str, typing.Any] -) -> typing.Dict[str, typing.Any]: - for key, value in source.items(): - if isinstance(value, dict): - node = destination.setdefault(key, {}) - deep_union_pydantic_dicts(value, node) - else: - destination[key] = value - - return destination - - -def parse_obj_as(type_: typing.Type[T], object_: typing.Any) -> T: - if IS_PYDANTIC_V2: - adapter = pydantic.TypeAdapter(type_) # type: ignore # Pydantic v2 - return adapter.validate_python(object_) - else: - return pydantic.parse_obj_as(type_, object_) - - -def to_jsonable_with_fallback( - obj: typing.Any, fallback_serializer: typing.Callable[[typing.Any], typing.Any] -) -> typing.Any: - if IS_PYDANTIC_V2: - from pydantic_core import to_jsonable_python - - return to_jsonable_python(obj, fallback=fallback_serializer) - else: - return fallback_serializer(obj) - - -class UniversalBaseModel(pydantic.BaseModel): - class Config: - populate_by_name = True - smart_union = True - allow_population_by_field_name = True - json_encoders = {dt.datetime: serialize_datetime} - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} - if IS_PYDANTIC_V2: - return super().model_dump_json(**kwargs_with_defaults) # type: ignore # Pydantic v2 - else: - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} - kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs} - - if IS_PYDANTIC_V2: - return deep_union_pydantic_dicts( - super().model_dump(**kwargs_with_defaults_exclude_unset), # type: ignore # Pydantic v2 - super().model_dump(**kwargs_with_defaults_exclude_none), # type: ignore # Pydantic v2 - ) - else: - return deep_union_pydantic_dicts( - super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none) - ) - - -UniversalRootModel: typing.Type[typing.Any] -if IS_PYDANTIC_V2: - - class V2RootModel(UniversalBaseModel, pydantic.RootModel): # type: ignore # Pydantic v2 - pass - - UniversalRootModel = V2RootModel -else: - UniversalRootModel = UniversalBaseModel - - -def encode_by_type(o: typing.Any) -> typing.Any: - encoders_by_class_tuples: typing.Dict[ - typing.Callable[[typing.Any], typing.Any], typing.Tuple[typing.Any, ...] - ] = defaultdict(tuple) - for type_, encoder in encoders_by_type.items(): - encoders_by_class_tuples[encoder] += (type_,) - - if type(o) in encoders_by_type: - return encoders_by_type[type(o)](o) - for encoder, classes_tuple in encoders_by_class_tuples.items(): - if isinstance(o, classes_tuple): - return encoder(o) - - -def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: - if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 - else: - model.update_forward_refs(**localns) - - -# Mirrors Pydantic's internal typing -AnyCallable = typing.Callable[..., typing.Any] - - -def universal_root_validator(pre: bool = False) -> typing.Callable[[AnyCallable], AnyCallable]: - def decorator(func: AnyCallable) -> AnyCallable: - @wraps(func) - def validate(*args: typing.Any, **kwargs: typing.Any) -> AnyCallable: - if IS_PYDANTIC_V2: - wrapped_func = pydantic.model_validator("before" if pre else "after")(func) # type: ignore # Pydantic v2 - else: - wrapped_func = pydantic.root_validator(pre=pre)(func) # type: ignore # Pydantic v1 - - return wrapped_func(*args, **kwargs) - - return validate - - return decorator - - -def universal_field_validator(field_name: str, pre: bool = False) -> typing.Callable[[AnyCallable], AnyCallable]: - def decorator(func: AnyCallable) -> AnyCallable: - @wraps(func) - def validate(*args: typing.Any, **kwargs: typing.Any) -> AnyCallable: - if IS_PYDANTIC_V2: - wrapped_func = pydantic.field_validator(field_name, mode="before" if pre else "after")(func) # type: ignore # Pydantic v2 - else: - wrapped_func = pydantic.validator(field_name, pre=pre)(func) - - return wrapped_func(*args, **kwargs) - - return validate - - return decorator -", - "name": "pydantic_utilities.py", - "type": "file", - }, - ], - "name": "core", - "type": "directory", - }, - { - "contents": [ - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -from . import spec_1, spec_2 - -__all__ = ["spec_1", "spec_2"] -", - "name": "__init__.py", - "type": "file", - }, - { - "contents": [ - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -from .booking import Booking -from .booking_payment import BookingPayment -from .booking_payment_currency import BookingPaymentCurrency -from .booking_payment_source import BookingPaymentSource -from .booking_payment_source_account_type import BookingPaymentSourceAccountType -from .booking_payment_source_account_type_account_type import BookingPaymentSourceAccountTypeAccountType -from .booking_payment_status import BookingPaymentStatus -from .card import Card -from .links_booking import LinksBooking -from .links_pagination import LinksPagination -from .links_self import LinksSelf -from .oauth_scope import OauthScope -from .station import Station -from .trip import Trip -from .wrapper_collection import WrapperCollection - -__all__ = [ - "Booking", - "BookingPayment", - "BookingPaymentCurrency", - "BookingPaymentSource", - "BookingPaymentSourceAccountType", - "BookingPaymentSourceAccountTypeAccountType", - "BookingPaymentStatus", - "Card", - "LinksBooking", - "LinksPagination", - "LinksSelf", - "OauthScope", - "Station", - "Trip", - "WrapperCollection", -] -", - "name": "__init__.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Booking(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the booking - """ - - trip_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Identifier of the booked trip - """ - - passenger_name: typing.Optional[str] = pydantic.Field(default=None) - """ - Name of the passenger - """ - - has_bicycle: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the passenger has a bicycle. - """ - - has_dog: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether the passenger has a dog. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "booking.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .booking_payment_currency import BookingPaymentCurrency -from .booking_payment_source import BookingPaymentSource -from .booking_payment_status import BookingPaymentStatus - - -class BookingPayment(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the payment. This will be a unique identifier for the payment, and is used to reference the payment in other objects. - """ - - amount: typing.Optional[float] = pydantic.Field(default=None) - """ - Amount intended to be collected by this payment. A positive decimal figure describing the amount to be collected. - """ - - currency: typing.Optional[BookingPaymentCurrency] = pydantic.Field(default=None) - """ - Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. - """ - - source: typing.Optional[BookingPaymentSource] = pydantic.Field(default=None) - """ - The payment source to take the payment from. This can be a card or a bank account. Some of these properties will be hidden on read to protect PII leaking. - """ - - status: typing.Optional[BookingPaymentStatus] = pydantic.Field(default=None) - """ - The status of the payment, one of \`pending\`, \`succeeded\`, or \`failed\`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "booking_payment.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -BookingPaymentCurrency = typing.Union[ - typing.Literal["bam", "bgn", "chf", "eur", "gbp", "nok", "sek", "try"], typing.Any -] -", - "name": "booking_payment_currency.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -from .booking_payment_source_account_type import BookingPaymentSourceAccountType -from .card import Card - -BookingPaymentSource = typing.Union[Card, BookingPaymentSourceAccountType] -", - "name": "booking_payment_source.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .booking_payment_source_account_type_account_type import BookingPaymentSourceAccountTypeAccountType - - -class BookingPaymentSourceAccountType(UniversalBaseModel): - """ - A bank account to take payment from. Must be able to make payments in the currency specified in the payment. - """ - - object: typing.Optional[typing.Literal["bank_account"]] = None - name: str - number: str = pydantic.Field() - """ - The account number for the bank account, in string form. Must be a current account. - """ - - sort_code: typing.Optional[str] = pydantic.Field(default=None) - """ - The sort code for the bank account, in string form. Must be a six-digit number. - """ - - account_type: BookingPaymentSourceAccountTypeAccountType = pydantic.Field() - """ - The type of entity that holds the account. This can be either \`individual\` or \`company\`. - """ - - bank_name: str = pydantic.Field() - """ - The name of the bank associated with the routing number. - """ - - country: str = pydantic.Field() - """ - Two-letter country code (ISO 3166-1 alpha-2). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "booking_payment_source_account_type.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -BookingPaymentSourceAccountTypeAccountType = typing.Union[typing.Literal["individual", "company"], typing.Any] -", - "name": "booking_payment_source_account_type_account_type.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -BookingPaymentStatus = typing.Union[typing.Literal["pending", "succeeded", "failed"], typing.Any] -", - "name": "booking_payment_status.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Card(UniversalBaseModel): - """ - A card (debit or credit) to take payment from. - """ - - object: typing.Optional[typing.Literal["card"]] = None - name: str = pydantic.Field() - """ - Cardholder's full name as it appears on the card. - """ - - number: str = pydantic.Field() - """ - The card number, as a string without any separators. On read all but the last four digits will be masked for security. - """ - - cvc: int = pydantic.Field() - """ - Card security code, 3 or 4 digits usually found on the back of the card. - """ - - exp_month: int = pydantic.Field() - """ - Two-digit number representing the card's expiration month. - """ - - exp_year: int = pydantic.Field() - """ - Four-digit number representing the card's expiration year. - """ - - address_line_1: typing.Optional[str] = pydantic.Field(alias="address_line1", default=None) - address_line_2: typing.Optional[str] = pydantic.Field(alias="address_line2", default=None) - address_city: typing.Optional[str] = None - address_country: str - address_post_code: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "card.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class LinksBooking(UniversalBaseModel): - booking: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "links_booking.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class LinksPagination(UniversalBaseModel): - next: typing.Optional[str] = None - prev: typing.Optional[str] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "links_pagination.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class LinksSelf(UniversalBaseModel): - self_: typing.Optional[str] = pydantic.Field(alias="self", default=None) - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "links_self.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -OauthScope = typing.Union[typing.Literal["read", "write"], typing.Any] -", - "name": "oauth_scope.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Station(UniversalBaseModel): - id: str = pydantic.Field() - """ - Unique identifier for the station. - """ - - name: str = pydantic.Field() - """ - The name of the station - """ - - address: str = pydantic.Field() - """ - The address of the station. - """ - - country_code: str = pydantic.Field() - """ - The country code of the station. - """ - - timezone: typing.Optional[str] = pydantic.Field(default=None) - """ - The timezone of the station in the [IANA Time Zone Database format](https://www.iana.org/time-zones). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "station.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Trip(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) - """ - Unique identifier for the trip - """ - - origin: typing.Optional[str] = pydantic.Field(default=None) - """ - The starting station of the trip - """ - - destination: typing.Optional[str] = pydantic.Field(default=None) - """ - The destination station of the trip - """ - - departure_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the trip departs - """ - - arrival_time: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - The date and time when the trip arrives - """ - - operator: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the operator of the trip - """ - - price: typing.Optional[float] = pydantic.Field(default=None) - """ - The cost of the trip - """ - - bicycles_allowed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether bicycles are allowed on the trip - """ - - dogs_allowed: typing.Optional[bool] = pydantic.Field(default=None) - """ - Indicates whether dogs are allowed on the trip - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "trip.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class WrapperCollection(UniversalBaseModel): - """ - This is a generic request/response wrapper which contains both data and links which serve as hypermedia controls (HATEOAS). - """ - - data: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = pydantic.Field(default=None) - """ - The wrapper for a collection is an array of objects. - """ - - links: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) - """ - A set of hypermedia links which serve as controls for the client. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "wrapper_collection.py", - "type": "file", - }, - ], - "name": "spec_1", - "type": "directory", - }, - { - "contents": [ - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -from .error import Error -from .file import File -from .prediction import Prediction -from .results import Results -from .source import Source -from .source_file import SourceFile -from .source_result import SourceResult -from .source_url import SourceUrl -from .url import Url - -__all__ = ["Error", "File", "Prediction", "Results", "Source", "SourceFile", "SourceResult", "SourceUrl", "Url"] -", - "name": "__init__.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Error(UniversalBaseModel): - message: str = pydantic.Field() - """ - An error message. - """ - - file: str = pydantic.Field() - """ - A file path relative to the top level source URL or file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "error.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class File(UniversalBaseModel): - filename: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The content type of the file. - """ - - md_5_sum: str = pydantic.Field(alias="md5sum") - """ - The MD5 checksum of the file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "file.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Prediction(UniversalBaseModel): - file: str = pydantic.Field() - """ - A file path relative to the top level source URL or file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "prediction.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .error import Error -from .prediction import Prediction - - -class Results(UniversalBaseModel): - predictions: typing.List[Prediction] - errors: typing.List[Error] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "results.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -from .source_file import SourceFile -from .source_url import SourceUrl - -Source = typing.Union[SourceUrl, SourceFile] -", - "name": "source.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2 -from .file import File - - -class SourceFile(File): - type: typing.Literal["file"] = "file" - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "source_file.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .results import Results -from .source import Source - - -class SourceResult(UniversalBaseModel): - source: Source - results: typing.Optional[Results] = None - error: typing.Optional[str] = pydantic.Field(default=None) - """ - An error message. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "source_result.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2 -from .url import Url - - -class SourceUrl(Url): - type: typing.Literal["url"] = "url" - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "source_url.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Url(UniversalBaseModel): - url: str = pydantic.Field() - """ - The URL of the source media file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "url.py", - "type": "file", - }, - ], - "name": "spec_2", - "type": "directory", - }, - ], - "name": "resources", - "type": "directory", - }, -] -`; - -exports[`fern generate with settings single api 1`] = ` -[ - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -from .error import Error -from .file import File -from .prediction import Prediction -from .results import Results -from .source import Source -from .source_file import SourceFile -from .source_result import SourceResult -from .source_url import SourceUrl -from .url import Url - -__all__ = ["Error", "File", "Prediction", "Results", "Source", "SourceFile", "SourceResult", "SourceUrl", "Url"] -", - "name": "__init__.py", - "type": "file", - }, - { - "contents": [ - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -from .datetime_utils import serialize_datetime -from .pydantic_utilities import ( - IS_PYDANTIC_V2, - UniversalBaseModel, - UniversalRootModel, - deep_union_pydantic_dicts, - parse_obj_as, - universal_field_validator, - universal_root_validator, - update_forward_refs, -) - -__all__ = [ - "IS_PYDANTIC_V2", - "UniversalBaseModel", - "UniversalRootModel", - "deep_union_pydantic_dicts", - "parse_obj_as", - "serialize_datetime", - "universal_field_validator", - "universal_root_validator", - "update_forward_refs", -] -", - "name": "__init__.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import datetime as dt - - -def serialize_datetime(v: dt.datetime) -> str: - """ - Serialize a datetime including timezone info. - - Uses the timezone info provided if present, otherwise uses the current runtime's timezone info. - - UTC datetimes end in "Z" while all other timezones are represented as offset from UTC, e.g. +05:00. - """ - - def _serialize_zoned_datetime(v: dt.datetime) -> str: - if v.tzinfo is not None and v.tzinfo.tzname(None) == dt.timezone.utc.tzname(None): - # UTC is a special case where we use "Z" at the end instead of "+00:00" - return v.isoformat().replace("+00:00", "Z") - else: - # Delegate to the typical +/- offset format - return v.isoformat() - - if v.tzinfo is not None: - return _serialize_zoned_datetime(v) - else: - local_tz = dt.datetime.now().astimezone().tzinfo - localized_dt = v.replace(tzinfo=local_tz) - return _serialize_zoned_datetime(localized_dt) -", - "name": "datetime_utils.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -# nopycln: file -import datetime as dt -import typing -from collections import defaultdict -from functools import wraps - -import pydantic - -from .datetime_utils import serialize_datetime - -IS_PYDANTIC_V2 = pydantic.VERSION.startswith("2.") - -if IS_PYDANTIC_V2: - # isort will try to reformat the comments on these imports, which breaks mypy - # isort: off - from pydantic.v1.datetime_parse import ( # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 - parse_date as parse_date, - ) - from pydantic.v1.datetime_parse import ( # pyright: ignore[reportMissingImports] # Pydantic v2 - parse_datetime as parse_datetime, - ) - from pydantic.v1.json import ( # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 - ENCODERS_BY_TYPE as encoders_by_type, - ) - from pydantic.v1.typing import ( # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 - get_args as get_args, - ) - from pydantic.v1.typing import get_origin as get_origin # pyright: ignore[reportMissingImports] # Pydantic v2 - from pydantic.v1.typing import ( # pyright: ignore[reportMissingImports] # Pydantic v2 - is_literal_type as is_literal_type, - ) - from pydantic.v1.typing import is_union as is_union # pyright: ignore[reportMissingImports] # Pydantic v2 - from pydantic.v1.fields import ModelField as ModelField # type: ignore # pyright: ignore[reportMissingImports] # Pydantic v2 -else: - from pydantic.datetime_parse import parse_date as parse_date # type: ignore # Pydantic v1 - from pydantic.datetime_parse import parse_datetime as parse_datetime # type: ignore # Pydantic v1 - from pydantic.fields import ModelField as ModelField # type: ignore # Pydantic v1 - from pydantic.json import ENCODERS_BY_TYPE as encoders_by_type # type: ignore # Pydantic v1 - from pydantic.typing import get_args as get_args # type: ignore # Pydantic v1 - from pydantic.typing import get_origin as get_origin # type: ignore # Pydantic v1 - from pydantic.typing import is_literal_type as is_literal_type # type: ignore # Pydantic v1 - from pydantic.typing import is_union as is_union # type: ignore # Pydantic v1 - - # isort: on - - -T = typing.TypeVar("T") -Model = typing.TypeVar("Model", bound=pydantic.BaseModel) - - -def deep_union_pydantic_dicts( - source: typing.Dict[str, typing.Any], destination: typing.Dict[str, typing.Any] -) -> typing.Dict[str, typing.Any]: - for key, value in source.items(): - if isinstance(value, dict): - node = destination.setdefault(key, {}) - deep_union_pydantic_dicts(value, node) - else: - destination[key] = value - - return destination - - -def parse_obj_as(type_: typing.Type[T], object_: typing.Any) -> T: - if IS_PYDANTIC_V2: - adapter = pydantic.TypeAdapter(type_) # type: ignore # Pydantic v2 - return adapter.validate_python(object_) - else: - return pydantic.parse_obj_as(type_, object_) - - -def to_jsonable_with_fallback( - obj: typing.Any, fallback_serializer: typing.Callable[[typing.Any], typing.Any] -) -> typing.Any: - if IS_PYDANTIC_V2: - from pydantic_core import to_jsonable_python - - return to_jsonable_python(obj, fallback=fallback_serializer) - else: - return fallback_serializer(obj) - - -class UniversalBaseModel(pydantic.BaseModel): - class Config: - populate_by_name = True - smart_union = True - allow_population_by_field_name = True - json_encoders = {dt.datetime: serialize_datetime} - - def json(self, **kwargs: typing.Any) -> str: - kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} - if IS_PYDANTIC_V2: - return super().model_dump_json(**kwargs_with_defaults) # type: ignore # Pydantic v2 - else: - return super().json(**kwargs_with_defaults) - - def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: - kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} - kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs} - - if IS_PYDANTIC_V2: - return deep_union_pydantic_dicts( - super().model_dump(**kwargs_with_defaults_exclude_unset), # type: ignore # Pydantic v2 - super().model_dump(**kwargs_with_defaults_exclude_none), # type: ignore # Pydantic v2 - ) - else: - return deep_union_pydantic_dicts( - super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none) - ) - - -UniversalRootModel: typing.Type[typing.Any] -if IS_PYDANTIC_V2: - - class V2RootModel(UniversalBaseModel, pydantic.RootModel): # type: ignore # Pydantic v2 - pass - - UniversalRootModel = V2RootModel -else: - UniversalRootModel = UniversalBaseModel - - -def encode_by_type(o: typing.Any) -> typing.Any: - encoders_by_class_tuples: typing.Dict[ - typing.Callable[[typing.Any], typing.Any], typing.Tuple[typing.Any, ...] - ] = defaultdict(tuple) - for type_, encoder in encoders_by_type.items(): - encoders_by_class_tuples[encoder] += (type_,) - - if type(o) in encoders_by_type: - return encoders_by_type[type(o)](o) - for encoder, classes_tuple in encoders_by_class_tuples.items(): - if isinstance(o, classes_tuple): - return encoder(o) - - -def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: - if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 - else: - model.update_forward_refs(**localns) - - -# Mirrors Pydantic's internal typing -AnyCallable = typing.Callable[..., typing.Any] - - -def universal_root_validator(pre: bool = False) -> typing.Callable[[AnyCallable], AnyCallable]: - def decorator(func: AnyCallable) -> AnyCallable: - @wraps(func) - def validate(*args: typing.Any, **kwargs: typing.Any) -> AnyCallable: - if IS_PYDANTIC_V2: - wrapped_func = pydantic.model_validator("before" if pre else "after")(func) # type: ignore # Pydantic v2 - else: - wrapped_func = pydantic.root_validator(pre=pre)(func) # type: ignore # Pydantic v1 - - return wrapped_func(*args, **kwargs) - - return validate - - return decorator - - -def universal_field_validator(field_name: str, pre: bool = False) -> typing.Callable[[AnyCallable], AnyCallable]: - def decorator(func: AnyCallable) -> AnyCallable: - @wraps(func) - def validate(*args: typing.Any, **kwargs: typing.Any) -> AnyCallable: - if IS_PYDANTIC_V2: - wrapped_func = pydantic.field_validator(field_name, mode="before" if pre else "after")(func) # type: ignore # Pydantic v2 - else: - wrapped_func = pydantic.validator(field_name, pre=pre)(func) - - return wrapped_func(*args, **kwargs) - - return validate - - return decorator -", - "name": "pydantic_utilities.py", - "type": "file", - }, - ], - "name": "core", - "type": "directory", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Error(UniversalBaseModel): - message: str = pydantic.Field() - """ - An error message. - """ - - file: str = pydantic.Field() - """ - A file path relative to the top level source URL or file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "error.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class File(UniversalBaseModel): - filename: typing.Optional[str] = pydantic.Field(default=None) - """ - The name of the file. - """ - - content_type: typing.Optional[str] = pydantic.Field(default=None) - """ - The content type of the file. - """ - - md_5_sum: str = pydantic.Field(alias="md5sum") - """ - The MD5 checksum of the file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "file.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class Prediction(UniversalBaseModel): - file: str = pydantic.Field() - """ - A file path relative to the top level source URL or file. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "prediction.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .error import Error -from .prediction import Prediction - - -class Results(UniversalBaseModel): - predictions: typing.List[Prediction] - errors: typing.List[Error] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "results.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -from .source_file import SourceFile -from .source_url import SourceUrl - -Source = typing.Union[SourceUrl, SourceFile] -", - "name": "source.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2 -from .file import File - - -class SourceFile(File): - type: typing.Literal["file"] = "file" - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "source_file.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .results import Results -from .source import Source - - -class SourceResult(UniversalBaseModel): - source: Source - results: typing.Optional[Results] = None - error: typing.Optional[str] = pydantic.Field(default=None) - """ - An error message. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "source_result.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2 -from .url import Url - - -class SourceUrl(Url): - type: typing.Literal["url"] = "url" - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2 - else: - - class Config: - extra = pydantic.Extra.allow -", - "name": "source_url.py", - "type": "file", - }, - { - "contents": "# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic - -from .core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - class Url(UniversalBaseModel): url: str = pydantic.Field() """ diff --git a/packages/cli/ete-tests/src/tests/generate/__snapshots__/generate.test.ts.snap b/packages/cli/ete-tests/src/tests/generate/__snapshots__/generate.test.ts.snap index a3605a857e4..28eccaf7a75 100644 --- a/packages/cli/ete-tests/src/tests/generate/__snapshots__/generate.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/generate/__snapshots__/generate.test.ts.snap @@ -5,9 +5,3 @@ exports[`fern generate > missing docs page 1`] = ` [docs]: docs.yml -> navigation -> 0 -> page Path missing.md does not exist" `; - -exports[`fern generate missing docs page 1`] = ` -"[docs]: Found 1 errors and 0 warnings. Run fern check --warnings to print out the warnings. -[docs]: docs.yml -> navigation -> 0 -> page - Path missing.md does not exist" -`; diff --git a/packages/cli/ete-tests/src/tests/help/__snapshots__/help.test.ts.snap b/packages/cli/ete-tests/src/tests/help/__snapshots__/help.test.ts.snap index e4ba56c4e7e..c3369a6ec86 100644 --- a/packages/cli/ete-tests/src/tests/help/__snapshots__/help.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/help/__snapshots__/help.test.ts.snap @@ -35,39 +35,3 @@ Options: --log-level [choices: "debug", "info", "warn", "error"] [default: "info"] -v, --version Print current version" `; - -exports[`help no arguments 1`] = ` -"fern-dev - -Commands: - fern-dev init Initialize a Fern API - fern-dev token Generate a Fern Token - fern-dev add Add a code generator to generators.yml - fern-dev generate Generate all generators in the specified group - fern-dev ir Generate IR (Intermediate Representation) - fern-dev check Validates your Fern Definition. Logs errors. - fern-dev login Log in to Fern via GitHub - fern-dev format Formats your Fern Definition - fern-dev write-definition Write underlying Fern Definition for OpenAPI - specs and API Dependencies. - fern-dev docs dev Run a local development server to preview your - docs - fern-dev mock Starts a mock server for an API. - fern-dev write-overrides Generate a basic openapi overrides file. - fern-dev test Runs tests specified in --command, this spins up - a mock server in the background that is - terminated upon completion of the tests. - fern-dev api update Pulls the latest OpenAPI spec from the specified - origin in generators.yml and updates the local - spec. - fern-dev generator upgrade Upgrades the specified generator in - generators.yml to the latest stable version. - fern-dev upgrade Upgrades version in fern.config.json. Also - upgrades generators in generators.yml to their - minimum-compatible versions. - -Options: - --help Show help [boolean] - --log-level [choices: "debug", "info", "warn", "error"] [default: "info"] - -v, --version Print current version" -`; diff --git a/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap b/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap index 963ead4418a..cf0f1708161 100644 --- a/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/init/__snapshots__/init.test.ts.snap @@ -387,391 +387,3 @@ groups: }, ] `; - -exports[`fern init init docs 1`] = ` -[ - { - "contents": [ - { - "contents": [ - { - "contents": "name: api -error-discrimination: - strategy: status-code -", - "name": "api.yml", - "type": "file", - }, - { - "contents": "# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json - -service: - auth: false - base-path: /movies - endpoints: - createMovie: - docs: Add a movie to the database - method: POST - path: /create-movie - request: CreateMovieRequest - response: MovieId - - getMovie: - docs: Retrieve a movie from the database based on the ID - method: GET - path: /{id} - path-parameters: - id: MovieId - response: Movie - errors: - - MovieDoesNotExistError - examples: - # Success response - - path-parameters: - id: tt0111161 - response: - body: - id: tt0111161 - title: The Shawshank Redemption - rating: 9.3 - # Error response - - path-parameters: - id: tt1234 - response: - error: MovieDoesNotExistError - body: tt1234 - -types: - MovieId: - type: string - docs: The unique identifier for a Movie in the database - - Movie: - properties: - id: MovieId - title: string - rating: - type: double - docs: The rating scale out of ten stars - - CreateMovieRequest: - properties: - title: string - rating: double - -errors: - MovieDoesNotExistError: - status-code: 404 - type: MovieId -", - "name": "imdb.yml", - "type": "file", - }, - ], - "name": "definition", - "type": "directory", - }, - { - "contents": "instances: - - url: https://fern.dev.docs.buildwithfern.com -title: fern | Documentation -navigation: - - api: API Reference -colors: - accentPrimary: '#ffffff' - background: '#000000' -", - "name": "docs.yml", - "type": "file", - }, - { - "contents": "{ - "organization": "fern", - "version": "0.0.0" -}", - "name": "fern.config.json", - "type": "file", - }, - { - "contents": "default-group: local -groups: - local: - generators: - - name: fernapi/fern-typescript-node-sdk - version: 0.9.5 - output: - location: local-file-system - path: ../sdks/typescript -", - "name": "generators.yml", - "type": "file", - }, - ], - "name": "fern", - "type": "directory", - }, -] -`; - -exports[`fern init init openapi 1`] = ` -[ - { - "contents": [ - { - "contents": "{ - "organization": "fern", - "version": "0.0.0" -}", - "name": "fern.config.json", - "type": "file", - }, - { - "contents": "default-group: local -groups: - local: - generators: - - name: fernapi/fern-typescript-node-sdk - version: 0.9.5 - output: - location: local-file-system - path: ../sdks/typescript -", - "name": "generators.yml", - "type": "file", - }, - { - "contents": [ - { - "contents": "openapi: "3.0.0" -info: - version: 1.0.0 - title: Swagger Petstore - license: - name: MIT -servers: - - url: http://petstore.swagger.io/v1 -paths: - /pets: - get: - summary: List all pets - operationId: listPets - tags: - - pets - parameters: - - name: limit - in: query - description: How many items to return at one time (max 100) - required: false - schema: - type: integer - maximum: 100 - format: int32 - responses: - "200": - description: A paged array of pets - headers: - x-next: - description: A link to the next page of responses - schema: - type: string - content: - application/json: - schema: - $ref: "#/components/schemas/Pets" - default: - description: unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - post: - summary: Create a pet - operationId: createPets - tags: - - pets - responses: - "201": - description: Null response - default: - description: unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - /pets/{petId}: - get: - summary: Info for a specific pet - operationId: showPetById - tags: - - pets - parameters: - - name: petId - in: path - required: true - description: The id of the pet to retrieve - schema: - type: string - responses: - "200": - description: Expected response to a valid request - content: - application/json: - schema: - $ref: "#/components/schemas/Pet" - default: - description: unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" -components: - schemas: - Pet: - type: object - required: - - id - - name - properties: - id: - type: integer - format: int64 - name: - type: string - tag: - type: string - Pets: - type: array - maxItems: 100 - items: - $ref: "#/components/schemas/Pet" - Error: - type: object - required: - - code - - message - properties: - code: - type: integer - format: int32 - message: - type: string -", - "name": "petstore-openapi.yml", - "type": "file", - }, - ], - "name": "openapi", - "type": "directory", - }, - ], - "name": "fern", - "type": "directory", - }, -] -`; - -exports[`fern init no existing fern directory 1`] = ` -[ - { - "contents": [ - { - "contents": "name: api -error-discrimination: - strategy: status-code -", - "name": "api.yml", - "type": "file", - }, - { - "contents": "# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json - -service: - auth: false - base-path: /movies - endpoints: - createMovie: - docs: Add a movie to the database - method: POST - path: /create-movie - request: CreateMovieRequest - response: MovieId - - getMovie: - docs: Retrieve a movie from the database based on the ID - method: GET - path: /{id} - path-parameters: - id: MovieId - response: Movie - errors: - - MovieDoesNotExistError - examples: - # Success response - - path-parameters: - id: tt0111161 - response: - body: - id: tt0111161 - title: The Shawshank Redemption - rating: 9.3 - # Error response - - path-parameters: - id: tt1234 - response: - error: MovieDoesNotExistError - body: tt1234 - -types: - MovieId: - type: string - docs: The unique identifier for a Movie in the database - - Movie: - properties: - id: MovieId - title: string - rating: - type: double - docs: The rating scale out of ten stars - - CreateMovieRequest: - properties: - title: string - rating: double - -errors: - MovieDoesNotExistError: - status-code: 404 - type: MovieId -", - "name": "imdb.yml", - "type": "file", - }, - ], - "name": "definition", - "type": "directory", - }, - { - "contents": "{ - "organization": "fern", - "version": "0.0.0" -}", - "name": "fern.config.json", - "type": "file", - }, - { - "contents": "default-group: local -groups: - local: - generators: - - name: fernapi/fern-typescript-node-sdk - version: 0.9.5 - output: - location: local-file-system - path: ../sdks/typescript -", - "name": "generators.yml", - "type": "file", - }, -] -`; 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 e77d121d977..c8ec2639f0c 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 @@ -1732,7 +1732,7 @@ exports[`ir > {"name":"file-upload"} 1`] = ` "value": null } }, - "id": "2d9028cedc3afcbd39cbb0c21b9674b32c7e66fe", + "id": "a0fdf41861e41b2f4b6148df251506b910eced8d", "docs": null } } @@ -8121,7 +8121,7 @@ exports[`ir > {"name":"multiple-environment-urls"} 1`] = ` "value": null } }, - "id": "972345e0c98c8ef5da199d6a74ce80a26de13be3", + "id": "dd0fb90862cae827d2bc79120e874478db88c441", "docs": null } } @@ -8195,7 +8195,7 @@ exports[`ir > {"name":"multiple-environment-urls"} 1`] = ` "value": null } }, - "id": "2ba1284ff6e0ef5f86df327c1836906e3328b8dd", + "id": "7f81c94df8c0708e25f4ad0d752ffdffd3d65abe", "docs": null } } @@ -8333,7 +8333,7 @@ exports[`ir > {"name":"multiple-environment-urls"} 1`] = ` "value": null } }, - "id": "d6c6ed9738b2481b8cf22457a7bb62b68d6eedde", + "id": "f9a90b798c9662a33e5c0834f56d48af5c5ba48d", "docs": null } } @@ -9703,7 +9703,7 @@ exports[`ir > {"name":"nested-example-reference"} 1`] = ` "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "5a6f08f1a5b7c467c617c891b9b6e1f85c3cdaa17c9bc1a56012234eeb809937", "name": null, "url": "/nested", "rootPathParameters": [], @@ -10938,7 +10938,7 @@ exports[`ir > {"name":"nested-example-reference"} 1`] = ` } } }, - "id": "dbc628efc9741a6d3a6e5d0a140f62613e3acd6e", + "id": "6915e2440983bdca0790eef2f49a5bb6e18e9b01", "docs": null } } @@ -11782,7 +11782,7 @@ exports[`ir > {"name":"packages"} 1`] = ` "value": null } }, - "id": "d6c6ed9738b2481b8cf22457a7bb62b68d6eedde", + "id": "f9a90b798c9662a33e5c0834f56d48af5c5ba48d", "docs": null } } @@ -13428,7 +13428,7 @@ exports[`ir > {"name":"response-property"} 1`] = ` } } }, - "id": "f1f38c86ba842bbc916b5d2b5e3ffbf671a80f71", + "id": "24caf8a6a35bd8757806b7c7190b0e21d782f051", "docs": null } } @@ -13691,7 +13691,7 @@ exports[`ir > {"name":"response-property"} 1`] = ` } } }, - "id": "0ff4719dd98db569e10f93de562bf01f7cef0ef1", + "id": "4657f4adabf58530a4a9996aeb69f3262a319cf5", "docs": null } } @@ -14920,7 +14920,7 @@ exports[`ir > {"name":"simple","audiences":["internal"]} 1`] = ` } } }, - "id": "a16b5fde1f41adf2cb5c8aef09c71491b1782ac3", + "id": "30d4f2e0ae0d7652f3ee14d56319ac7b21d6275b", "docs": null } }, @@ -15218,7 +15218,7 @@ exports[`ir > {"name":"simple","audiences":["internal"]} 1`] = ` }, "body": null }, - "id": "3e6163938ad55cceb9b6fb6b3d4457481e1194d9", + "id": "35280da7b49b0f3ac3416f1b00ef2af5dd3fa6ec", "docs": null } } @@ -16901,7 +16901,7 @@ exports[`ir > {"name":"simple","audiences":["test"]} 1`] = ` "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496", "name": null, "url": "/movies", "rootPathParameters": [ @@ -17384,7 +17384,7 @@ exports[`ir > {"name":"simple","audiences":["test"]} 1`] = ` }, { "example": { - "id": null, + "id": "624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5", "name": null, "url": "/movies", "rootPathParameters": [ @@ -18333,7 +18333,7 @@ exports[`ir > {"name":"simple","audiences":["test"]} 1`] = ` } } }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", + "id": "70d147ad266aaa4a356c108d2a06d14b4853e628", "docs": null } }, @@ -18815,7 +18815,7 @@ exports[`ir > {"name":"simple","audiences":["test"]} 1`] = ` } } }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", + "id": "70d147ad266aaa4a356c108d2a06d14b4853e628", "docs": null } }, @@ -19274,7 +19274,7 @@ exports[`ir > {"name":"simple","audiences":["test"]} 1`] = ` }, "body": null }, - "id": "7719d117aa55b7a0a06be30825cd95761e68b931", + "id": "0a974dc042443d6aad36cfb432c4fc3e52674186", "docs": null } } @@ -27119,7 +27119,7 @@ exports[`ir > {"name":"simple"} 1`] = ` } } }, - "id": "a16b5fde1f41adf2cb5c8aef09c71491b1782ac3", + "id": "30d4f2e0ae0d7652f3ee14d56319ac7b21d6275b", "docs": null } }, @@ -27417,7 +27417,7 @@ exports[`ir > {"name":"simple"} 1`] = ` }, "body": null }, - "id": "3e6163938ad55cceb9b6fb6b3d4457481e1194d9", + "id": "35280da7b49b0f3ac3416f1b00ef2af5dd3fa6ec", "docs": null } } @@ -27827,7 +27827,7 @@ exports[`ir > {"name":"simple"} 1`] = ` "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496", "name": null, "url": "/movies", "rootPathParameters": [ @@ -28310,7 +28310,7 @@ exports[`ir > {"name":"simple"} 1`] = ` }, { "example": { - "id": null, + "id": "624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5", "name": null, "url": "/movies", "rootPathParameters": [ @@ -29259,7 +29259,7 @@ exports[`ir > {"name":"simple"} 1`] = ` } } }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", + "id": "70d147ad266aaa4a356c108d2a06d14b4853e628", "docs": null } }, @@ -29741,7 +29741,7 @@ exports[`ir > {"name":"simple"} 1`] = ` } } }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", + "id": "70d147ad266aaa4a356c108d2a06d14b4853e628", "docs": null } }, @@ -30200,7 +30200,7 @@ exports[`ir > {"name":"simple"} 1`] = ` }, "body": null }, - "id": "7719d117aa55b7a0a06be30825cd95761e68b931", + "id": "0a974dc042443d6aad36cfb432c4fc3e52674186", "docs": null } } @@ -30804,7 +30804,7 @@ exports[`ir > {"name":"simple"} 1`] = ` "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "b631e6a0d36395e53918c8b8aa048cf1bfe8180757f41402426ec3c109737ddd", "name": null, "url": "/movies/id-123", "rootPathParameters": [ @@ -31460,7 +31460,7 @@ exports[`ir > {"name":"simple"} 1`] = ` }, { "example": { - "id": null, + "id": "e0f04d26bcd1b030581f6d67cbd9d4be232fc0bc43bad08ffb1adb038ecbce8f", "name": null, "url": "/movies/id-123", "rootPathParameters": [ @@ -32386,7 +32386,7 @@ exports[`ir > {"name":"simple"} 1`] = ` } } }, - "id": "c31d0a00f664df9938064fde5ab39352e548bd05", + "id": "67c5bfba771a0f083f9f01fd3110b4d5fbdd5309", "docs": null } }, @@ -33041,7 +33041,7 @@ exports[`ir > {"name":"simple"} 1`] = ` } } }, - "id": "1be4f34f8b77401ebd38f067fb5e87c0c4053a6e", + "id": "4ea0ed165636e7cdc784414f7172b1b5ac46ed48", "docs": null } }, @@ -33304,7 +33304,7 @@ exports[`ir > {"name":"simple"} 1`] = ` }, "body": null }, - "id": "b1abc4b36c6b66836558d64000446b6bb9f3a8bd", + "id": "ba93f96b519a523a573c61bd4c5002264774c0b4", "docs": null } }, @@ -33567,7 +33567,7 @@ exports[`ir > {"name":"simple"} 1`] = ` }, "body": null }, - "id": "0a1b7d4c2ef7232675d53dd288caf70cdd8fbb23", + "id": "573f8177aeb54a888e78580484cef66637513991", "docs": null } } @@ -34087,7 +34087,7 @@ exports[`ir > {"name":"simple"} 1`] = ` "value": null } }, - "id": "bce9a848a5f585213943006d1ff84e3ee794eb7b", + "id": "d15422bb3a98bb5321fdad995e9476e90c2cee09", "docs": null } }, @@ -34313,7 +34313,7 @@ exports[`ir > {"name":"simple"} 1`] = ` }, "body": null }, - "id": "d3b0bcb695d15a97459cd0cbff875b2c73a87657", + "id": "76f633145db74c6bf109d8f1f3331c4c5bcb2034", "docs": null } } @@ -34956,7 +34956,7 @@ exports[`ir > {"name":"streaming"} 1`] = ` ] } }, - "id": "28aec953dfec1f2528cfffd051a0dd52a94babf7", + "id": "3d23617ca735015070c6afa350c92a92937d0e22", "docs": null } } @@ -35236,7 +35236,7 @@ exports[`ir > {"name":"streaming"} 1`] = ` ] } }, - "id": "971e543e8647d0710fbcc981703bc932529d4af9", + "id": "93edb27b70e1ae781d66b87205e4590af78657fb", "docs": null } } @@ -36168,7 +36168,7 @@ exports[`ir > {"name":"variables"} 1`] = ` "value": null } }, - "id": "382cb8d2bcec5a9757159c7febf6c28785994c8d", + "id": "705a25659aeaf9d4f1e8d33008a257016d639586", "docs": null } } @@ -36905,36909 +36905,3 @@ exports[`ir > {"name":"webhooks"} 1`] = ` } }" `; - -exports[`ir {"name":"auth-header-prefix"} 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": [ - { - "_type": "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": "Authorization" - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": null - } - } - }, - "prefix": "ApiKey", - "headerEnvVar": null, - "docs": null - } - ], - "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, - "subpackages": {}, - "rootPackage": { - "fernFilepath": { - "allParts": [], - "packagePath": [], - "file": null - }, - "websocket": null, - "service": null, - "types": [], - "errors": [], - "subpackages": [], - "webhooks": null, - "navigationConfig": null, - "hasEndpointsInTree": false, - "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":"extended-examples"} 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": "API", - "apiDocs": null, - "auth": { - "requirement": "ALL", - "schemes": [ - { - "_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" - } - }, - "tokenEnvVar": null, - "docs": null - } - ], - "docs": null - }, - "headers": [], - "idempotencyHeaders": [], - "types": { - "type_app:GetAppResponse": { - "name": { - "name": { - "originalName": "GetAppResponse", - "camelCase": { - "unsafeName": "getAppResponse", - "safeName": "getAppResponse" - }, - "snakeCase": { - "unsafeName": "get_app_response", - "safeName": "get_app_response" - }, - "screamingSnakeCase": { - "unsafeName": "GET_APP_RESPONSE", - "safeName": "GET_APP_RESPONSE" - }, - "pascalCase": { - "unsafeName": "GetAppResponse", - "safeName": "GetAppResponse" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "app", - "camelCase": { - "unsafeName": "app", - "safeName": "app" - }, - "snakeCase": { - "unsafeName": "app", - "safeName": "app" - }, - "screamingSnakeCase": { - "unsafeName": "APP", - "safeName": "APP" - }, - "pascalCase": { - "unsafeName": "App", - "safeName": "App" - } - } - ], - "packagePath": [], - "file": { - "originalName": "app", - "camelCase": { - "unsafeName": "app", - "safeName": "app" - }, - "snakeCase": { - "unsafeName": "app", - "safeName": "app" - }, - "screamingSnakeCase": { - "unsafeName": "APP", - "safeName": "APP" - }, - "pascalCase": { - "unsafeName": "App", - "safeName": "App" - } - } - }, - "typeId": "type_app:GetAppResponse" - }, - "shape": { - "_type": "object", - "extends": [ - { - "name": { - "originalName": "Deployment", - "camelCase": { - "unsafeName": "deployment", - "safeName": "deployment" - }, - "snakeCase": { - "unsafeName": "deployment", - "safeName": "deployment" - }, - "screamingSnakeCase": { - "unsafeName": "DEPLOYMENT", - "safeName": "DEPLOYMENT" - }, - "pascalCase": { - "unsafeName": "Deployment", - "safeName": "Deployment" - } - }, - "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:Deployment" - } - ], - "properties": [ - { - "name": { - "name": { - "originalName": "property", - "camelCase": { - "unsafeName": "property", - "safeName": "property" - }, - "snakeCase": { - "unsafeName": "property", - "safeName": "property" - }, - "screamingSnakeCase": { - "unsafeName": "PROPERTY", - "safeName": "PROPERTY" - }, - "pascalCase": { - "unsafeName": "Property", - "safeName": "Property" - } - }, - "wireValue": "property" - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": null - } - } - }, - "availability": null, - "docs": null - } - ], - "extra-properties": false, - "extendedProperties": [ - { - "name": { - "name": { - "originalName": "appId", - "camelCase": { - "unsafeName": "appId", - "safeName": "appId" - }, - "snakeCase": { - "unsafeName": "app_id", - "safeName": "app_id" - }, - "screamingSnakeCase": { - "unsafeName": "APP_ID", - "safeName": "APP_ID" - }, - "pascalCase": { - "unsafeName": "AppId", - "safeName": "AppId" - } - }, - "wireValue": "appId" - }, - "valueType": { - "_type": "named", - "name": { - "originalName": "AppId", - "camelCase": { - "unsafeName": "appId", - "safeName": "appId" - }, - "snakeCase": { - "unsafeName": "app_id", - "safeName": "app_id" - }, - "screamingSnakeCase": { - "unsafeName": "APP_ID", - "safeName": "APP_ID" - }, - "pascalCase": { - "unsafeName": "AppId", - "safeName": "AppId" - } - }, - "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:AppId", - "default": null, - "inline": null - }, - "availability": null, - "docs": null - } - ] - }, - "referencedTypes": [ - "type_commons:Deployment", - "type_commons:AppId" - ], - "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": "object", - "properties": [ - { - "name": { - "name": { - "originalName": "appId", - "camelCase": { - "unsafeName": "appId", - "safeName": "appId" - }, - "snakeCase": { - "unsafeName": "app_id", - "safeName": "app_id" - }, - "screamingSnakeCase": { - "unsafeName": "APP_ID", - "safeName": "APP_ID" - }, - "pascalCase": { - "unsafeName": "AppId", - "safeName": "AppId" - } - }, - "wireValue": "appId" - }, - "value": { - "shape": { - "type": "named", - "typeName": { - "typeId": "type_commons:AppId", - "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" - } - } - }, - "name": { - "originalName": "AppId", - "camelCase": { - "unsafeName": "appId", - "safeName": "appId" - }, - "snakeCase": { - "unsafeName": "app_id", - "safeName": "app_id" - }, - "screamingSnakeCase": { - "unsafeName": "APP_ID", - "safeName": "APP_ID" - }, - "pascalCase": { - "unsafeName": "AppId", - "safeName": "AppId" - } - } - }, - "shape": { - "type": "alias", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "your-app-id" - } - } - }, - "jsonExample": "your-app-id" - } - } - }, - "jsonExample": "your-app-id" - }, - "originalTypeDeclaration": { - "name": { - "originalName": "Deployment", - "camelCase": { - "unsafeName": "deployment", - "safeName": "deployment" - }, - "snakeCase": { - "unsafeName": "deployment", - "safeName": "deployment" - }, - "screamingSnakeCase": { - "unsafeName": "DEPLOYMENT", - "safeName": "DEPLOYMENT" - }, - "pascalCase": { - "unsafeName": "Deployment", - "safeName": "Deployment" - } - }, - "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:Deployment" - } - }, - { - "name": { - "name": { - "originalName": "property", - "camelCase": { - "unsafeName": "property", - "safeName": "property" - }, - "snakeCase": { - "unsafeName": "property", - "safeName": "property" - }, - "screamingSnakeCase": { - "unsafeName": "PROPERTY", - "safeName": "PROPERTY" - }, - "pascalCase": { - "unsafeName": "Property", - "safeName": "Property" - } - }, - "wireValue": "property" - }, - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "app-secret" - } - } - }, - "jsonExample": "app-secret" - }, - "originalTypeDeclaration": { - "name": { - "originalName": "GetAppResponse", - "camelCase": { - "unsafeName": "getAppResponse", - "safeName": "getAppResponse" - }, - "snakeCase": { - "unsafeName": "get_app_response", - "safeName": "get_app_response" - }, - "screamingSnakeCase": { - "unsafeName": "GET_APP_RESPONSE", - "safeName": "GET_APP_RESPONSE" - }, - "pascalCase": { - "unsafeName": "GetAppResponse", - "safeName": "GetAppResponse" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "app", - "camelCase": { - "unsafeName": "app", - "safeName": "app" - }, - "snakeCase": { - "unsafeName": "app", - "safeName": "app" - }, - "screamingSnakeCase": { - "unsafeName": "APP", - "safeName": "APP" - }, - "pascalCase": { - "unsafeName": "App", - "safeName": "App" - } - } - ], - "packagePath": [], - "file": { - "originalName": "app", - "camelCase": { - "unsafeName": "app", - "safeName": "app" - }, - "snakeCase": { - "unsafeName": "app", - "safeName": "app" - }, - "screamingSnakeCase": { - "unsafeName": "APP", - "safeName": "APP" - }, - "pascalCase": { - "unsafeName": "App", - "safeName": "App" - } - } - }, - "typeId": "type_app:GetAppResponse" - } - } - ] - }, - "jsonExample": { - "appId": "your-app-id", - "property": "app-secret" - }, - "docs": null - } - ], - "autogeneratedExamples": [], - "availability": null, - "docs": null - }, - "type_commons:AppId": { - "name": { - "name": { - "originalName": "AppId", - "camelCase": { - "unsafeName": "appId", - "safeName": "appId" - }, - "snakeCase": { - "unsafeName": "app_id", - "safeName": "app_id" - }, - "screamingSnakeCase": { - "unsafeName": "APP_ID", - "safeName": "APP_ID" - }, - "pascalCase": { - "unsafeName": "AppId", - "safeName": "AppId" - } - }, - "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:AppId" - }, - "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": "your-app-id" - } - } - }, - "jsonExample": "your-app-id" - } - }, - "jsonExample": "your-app-id", - "docs": null - } - ], - "autogeneratedExamples": [], - "availability": null, - "docs": null - }, - "type_commons:Deployment": { - "name": { - "name": { - "originalName": "Deployment", - "camelCase": { - "unsafeName": "deployment", - "safeName": "deployment" - }, - "snakeCase": { - "unsafeName": "deployment", - "safeName": "deployment" - }, - "screamingSnakeCase": { - "unsafeName": "DEPLOYMENT", - "safeName": "DEPLOYMENT" - }, - "pascalCase": { - "unsafeName": "Deployment", - "safeName": "Deployment" - } - }, - "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:Deployment" - }, - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "name": { - "name": { - "originalName": "appId", - "camelCase": { - "unsafeName": "appId", - "safeName": "appId" - }, - "snakeCase": { - "unsafeName": "app_id", - "safeName": "app_id" - }, - "screamingSnakeCase": { - "unsafeName": "APP_ID", - "safeName": "APP_ID" - }, - "pascalCase": { - "unsafeName": "AppId", - "safeName": "AppId" - } - }, - "wireValue": "appId" - }, - "valueType": { - "_type": "named", - "name": { - "originalName": "AppId", - "camelCase": { - "unsafeName": "appId", - "safeName": "appId" - }, - "snakeCase": { - "unsafeName": "app_id", - "safeName": "app_id" - }, - "screamingSnakeCase": { - "unsafeName": "APP_ID", - "safeName": "APP_ID" - }, - "pascalCase": { - "unsafeName": "AppId", - "safeName": "AppId" - } - }, - "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:AppId", - "default": null, - "inline": null - }, - "availability": null, - "docs": null - } - ], - "extra-properties": false, - "extendedProperties": [] - }, - "referencedTypes": [ - "type_commons:AppId" - ], - "encoding": { - "json": {}, - "proto": null - }, - "source": null, - "userProvidedExamples": [], - "autogeneratedExamples": [], - "availability": null, - "docs": null - } - }, - "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": [ - "type_app:GetAppResponse", - "type_commons:AppId", - "type_commons:Deployment" - ] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": null, - "subpackages": { - "subpackage_app": { - "name": { - "originalName": "app", - "camelCase": { - "unsafeName": "app", - "safeName": "app" - }, - "snakeCase": { - "unsafeName": "app", - "safeName": "app" - }, - "screamingSnakeCase": { - "unsafeName": "APP", - "safeName": "APP" - }, - "pascalCase": { - "unsafeName": "App", - "safeName": "App" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "app", - "camelCase": { - "unsafeName": "app", - "safeName": "app" - }, - "snakeCase": { - "unsafeName": "app", - "safeName": "app" - }, - "screamingSnakeCase": { - "unsafeName": "APP", - "safeName": "APP" - }, - "pascalCase": { - "unsafeName": "App", - "safeName": "App" - } - } - ], - "packagePath": [], - "file": { - "originalName": "app", - "camelCase": { - "unsafeName": "app", - "safeName": "app" - }, - "snakeCase": { - "unsafeName": "app", - "safeName": "app" - }, - "screamingSnakeCase": { - "unsafeName": "APP", - "safeName": "APP" - }, - "pascalCase": { - "unsafeName": "App", - "safeName": "App" - } - } - }, - "service": null, - "types": [ - "type_app:GetAppResponse" - ], - "errors": [], - "subpackages": [], - "navigationConfig": null, - "webhooks": null, - "websocket": null, - "hasEndpointsInTree": false, - "docs": null - }, - "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:AppId", - "type_commons:Deployment" - ], - "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_app", - "subpackage_commons" - ], - "webhooks": null, - "navigationConfig": null, - "hasEndpointsInTree": false, - "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":"file-upload"} 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_file-upload": { - "availability": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "originalName": "file-upload", - "camelCase": { - "unsafeName": "fileUpload", - "safeName": "fileUpload" - }, - "snakeCase": { - "unsafeName": "file_upload", - "safeName": "file_upload" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD", - "safeName": "FILE_UPLOAD" - }, - "pascalCase": { - "unsafeName": "FileUpload", - "safeName": "FileUpload" - } - } - ], - "packagePath": [], - "file": { - "originalName": "file-upload", - "camelCase": { - "unsafeName": "fileUpload", - "safeName": "fileUpload" - }, - "snakeCase": { - "unsafeName": "file_upload", - "safeName": "file_upload" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD", - "safeName": "FILE_UPLOAD" - }, - "pascalCase": { - "unsafeName": "FileUpload", - "safeName": "FileUpload" - } - } - } - }, - "displayName": null, - "basePath": { - "head": "/movies", - "parts": [] - }, - "headers": [], - "pathParameters": [], - "encoding": { - "json": {}, - "proto": null - }, - "transport": { - "type": "http" - }, - "endpoints": [ - { - "id": "endpoint_file-upload.fileUpload", - "name": { - "originalName": "fileUpload", - "camelCase": { - "unsafeName": "fileUpload", - "safeName": "fileUpload" - }, - "snakeCase": { - "unsafeName": "file_upload", - "safeName": "file_upload" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD", - "safeName": "FILE_UPLOAD" - }, - "pascalCase": { - "unsafeName": "FileUpload", - "safeName": "FileUpload" - } - }, - "displayName": null, - "auth": false, - "idempotent": false, - "baseUrl": null, - "method": "POST", - "path": { - "head": "", - "parts": [] - }, - "fullPath": { - "head": "/movies", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": { - "type": "fileUpload", - "name": { - "originalName": "FileUploadRequest", - "camelCase": { - "unsafeName": "fileUploadRequest", - "safeName": "fileUploadRequest" - }, - "snakeCase": { - "unsafeName": "file_upload_request", - "safeName": "file_upload_request" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD_REQUEST", - "safeName": "FILE_UPLOAD_REQUEST" - }, - "pascalCase": { - "unsafeName": "FileUploadRequest", - "safeName": "FileUploadRequest" - } - }, - "properties": [ - { - "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" - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": null - } - } - }, - "docs": null - }, - { - "type": "file", - "value": { - "type": "file", - "key": { - "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" - }, - "isOptional": false - } - }, - { - "type": "file", - "value": { - "type": "file", - "key": { - "name": { - "originalName": "optionalFile", - "camelCase": { - "unsafeName": "optionalFile", - "safeName": "optionalFile" - }, - "snakeCase": { - "unsafeName": "optional_file", - "safeName": "optional_file" - }, - "screamingSnakeCase": { - "unsafeName": "OPTIONAL_FILE", - "safeName": "OPTIONAL_FILE" - }, - "pascalCase": { - "unsafeName": "OptionalFile", - "safeName": "OptionalFile" - } - }, - "wireValue": "optionalFile" - }, - "isOptional": true - } - }, - { - "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" - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "type": "integer", - "default": null, - "validation": null - } - } - }, - "docs": null - } - ] - }, - "sdkRequest": { - "shape": { - "type": "wrapper", - "wrapperName": { - "originalName": "FileUploadRequest", - "camelCase": { - "unsafeName": "fileUploadRequest", - "safeName": "fileUploadRequest" - }, - "snakeCase": { - "unsafeName": "file_upload_request", - "safeName": "file_upload_request" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD_REQUEST", - "safeName": "FILE_UPLOAD_REQUEST" - }, - "pascalCase": { - "unsafeName": "FileUploadRequest", - "safeName": "FileUploadRequest" - } - }, - "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": null, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "/movies", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "2d9028cedc3afcbd39cbb0c21b9674b32c7e66fe", - "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": {}, - "sharedTypes": [] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": null, - "subpackages": { - "subpackage_file-upload": { - "name": { - "originalName": "file-upload", - "camelCase": { - "unsafeName": "fileUpload", - "safeName": "fileUpload" - }, - "snakeCase": { - "unsafeName": "file_upload", - "safeName": "file_upload" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD", - "safeName": "FILE_UPLOAD" - }, - "pascalCase": { - "unsafeName": "FileUpload", - "safeName": "FileUpload" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "file-upload", - "camelCase": { - "unsafeName": "fileUpload", - "safeName": "fileUpload" - }, - "snakeCase": { - "unsafeName": "file_upload", - "safeName": "file_upload" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD", - "safeName": "FILE_UPLOAD" - }, - "pascalCase": { - "unsafeName": "FileUpload", - "safeName": "FileUpload" - } - } - ], - "packagePath": [], - "file": { - "originalName": "file-upload", - "camelCase": { - "unsafeName": "fileUpload", - "safeName": "fileUpload" - }, - "snakeCase": { - "unsafeName": "file_upload", - "safeName": "file_upload" - }, - "screamingSnakeCase": { - "unsafeName": "FILE_UPLOAD", - "safeName": "FILE_UPLOAD" - }, - "pascalCase": { - "unsafeName": "FileUpload", - "safeName": "FileUpload" - } - } - }, - "service": "service_file-upload", - "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_file-upload" - ], - "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":"migration","version":"v1"} 1`] = ` -"{ - "apiName": "my-api", - "auth": { - "requirement": "ALL", - "schemes": [] - }, - "headers": [ - { - "name": { - "originalValue": "apiVersion", - "camelCase": "apiVersion", - "pascalCase": "ApiVersion", - "snakeCase": "api_version", - "screamingSnakeCase": "API_VERSION", - "wireValue": "X-API-VERSION" - }, - "nameV2": { - "wireValue": "X-API-VERSION", - "name": { - "safeName": { - "originalValue": "apiVersion", - "camelCase": "apiVersion", - "pascalCase": "ApiVersion", - "snakeCase": "api_version", - "screamingSnakeCase": "API_VERSION" - }, - "unsafeName": { - "originalValue": "apiVersion", - "camelCase": "apiVersion", - "pascalCase": "ApiVersion", - "snakeCase": "api_version", - "screamingSnakeCase": "API_VERSION" - } - } - }, - "valueType": { - "container": { - "optional": { - "primitive": "STRING", - "_type": "primitive" - }, - "_type": "optional" - }, - "_type": "container" - }, - "availability": { - "status": "GENERAL_AVAILABILITY" - } - } - ], - "types": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - }, - "shape": { - "extends": [], - "properties": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "name", - "camelCase": "name", - "pascalCase": "Name", - "snakeCase": "name", - "screamingSnakeCase": "NAME", - "wireValue": "name" - }, - "nameV2": { - "wireValue": "name", - "name": { - "safeName": { - "originalValue": "name", - "camelCase": "name", - "pascalCase": "Name", - "snakeCase": "name", - "screamingSnakeCase": "NAME" - }, - "unsafeName": { - "originalValue": "name", - "camelCase": "name", - "pascalCase": "Name", - "snakeCase": "name", - "screamingSnakeCase": "NAME" - } - } - }, - "valueType": { - "primitive": "STRING", - "_type": "primitive" - } - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE", - "wireValue": "age" - }, - "nameV2": { - "wireValue": "age", - "name": { - "safeName": { - "originalValue": "age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - }, - "valueType": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - }, - "_type": "named" - } - } - ], - "_type": "object" - }, - "examples": [ - { - "properties": [ - { - "wireKey": "name", - "value": { - "primitive": { - "string": "George the Director", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - } - }, - { - "wireKey": "age", - "value": { - "typeName": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - }, - "shape": { - "value": { - "primitive": { - "integer": 20, - "type": "integer" - }, - "type": "primitive" - }, - "type": "alias" - }, - "type": "named" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - } - } - ], - "type": "object" - } - ], - "referencedTypes": [ - { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - } - ] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - }, - "shape": { - "aliasOf": { - "primitive": "INTEGER", - "_type": "primitive" - }, - "resolvedType": { - "primitive": "INTEGER", - "_type": "primitive" - }, - "_type": "alias" - }, - "examples": [ - { - "value": { - "primitive": { - "integer": 20, - "type": "integer" - }, - "type": "primitive" - }, - "type": "alias" - } - ], - "referencedTypes": [] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "LiteralString", - "nameV2": { - "originalValue": "LiteralString", - "camelCase": "literalString", - "pascalCase": "LiteralString", - "snakeCase": "literal_string", - "screamingSnakeCase": "LITERAL_STRING" - }, - "nameV3": { - "safeName": { - "originalValue": "LiteralString", - "camelCase": "literalString", - "pascalCase": "LiteralString", - "snakeCase": "literal_string", - "screamingSnakeCase": "LITERAL_STRING" - }, - "unsafeName": { - "originalValue": "LiteralString", - "camelCase": "literalString", - "pascalCase": "LiteralString", - "snakeCase": "literal_string", - "screamingSnakeCase": "LITERAL_STRING" - } - } - }, - "shape": { - "aliasOf": { - "container": { - "literal": { - "string": "hello", - "type": "string" - }, - "_type": "literal" - }, - "_type": "container" - }, - "resolvedType": { - "container": { - "literal": { - "string": "hello", - "type": "string" - }, - "_type": "literal" - }, - "_type": "container" - }, - "_type": "alias" - }, - "examples": [], - "referencedTypes": [] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CurrencyAmount", - "nameV2": { - "originalValue": "CurrencyAmount", - "camelCase": "currencyAmount", - "pascalCase": "CurrencyAmount", - "snakeCase": "currency_amount", - "screamingSnakeCase": "CURRENCY_AMOUNT" - }, - "nameV3": { - "safeName": { - "originalValue": "CurrencyAmount", - "camelCase": "currencyAmount", - "pascalCase": "CurrencyAmount", - "snakeCase": "currency_amount", - "screamingSnakeCase": "CURRENCY_AMOUNT" - }, - "unsafeName": { - "originalValue": "CurrencyAmount", - "camelCase": "currencyAmount", - "pascalCase": "CurrencyAmount", - "snakeCase": "currency_amount", - "screamingSnakeCase": "CURRENCY_AMOUNT" - } - } - }, - "shape": { - "aliasOf": { - "primitive": "STRING", - "_type": "primitive" - }, - "resolvedType": { - "primitive": "STRING", - "_type": "primitive" - }, - "_type": "alias" - }, - "examples": [ - { - "value": { - "primitive": { - "string": "$4.50", - "type": "string" - }, - "type": "primitive" - }, - "type": "alias" - } - ], - "referencedTypes": [] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - } - }, - "shape": { - "aliasOf": { - "primitive": "STRING", - "_type": "primitive" - }, - "resolvedType": { - "primitive": "STRING", - "_type": "primitive" - }, - "_type": "alias" - }, - "examples": [ - { - "value": { - "primitive": { - "string": "id1", - "type": "string" - }, - "type": "primitive" - }, - "type": "alias" - }, - { - "value": { - "primitive": { - "string": "id2", - "type": "string" - }, - "type": "primitive" - }, - "type": "alias" - } - ], - "referencedTypes": [] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "ActorId", - "nameV2": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "unsafeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - } - } - }, - "shape": { - "aliasOf": { - "primitive": "STRING", - "_type": "primitive" - }, - "resolvedType": { - "primitive": "STRING", - "_type": "primitive" - }, - "_type": "alias" - }, - "examples": [], - "referencedTypes": [] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "Movie", - "nameV2": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "nameV3": { - "safeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "unsafeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - } - } - }, - "shape": { - "extends": [], - "properties": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "id", - "camelCase": "id", - "pascalCase": "Id", - "snakeCase": "id", - "screamingSnakeCase": "ID", - "wireValue": "id" - }, - "nameV2": { - "wireValue": "id", - "name": { - "safeName": { - "originalValue": "id", - "camelCase": "id", - "pascalCase": "Id", - "snakeCase": "id", - "screamingSnakeCase": "ID" - }, - "unsafeName": { - "originalValue": "id", - "camelCase": "id", - "pascalCase": "Id", - "snakeCase": "id", - "screamingSnakeCase": "ID" - } - } - }, - "valueType": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - }, - "_type": "named" - } - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "title", - "camelCase": "title", - "pascalCase": "Title", - "snakeCase": "title", - "screamingSnakeCase": "TITLE", - "wireValue": "title" - }, - "nameV2": { - "wireValue": "title", - "name": { - "safeName": { - "originalValue": "title", - "camelCase": "title", - "pascalCase": "Title", - "snakeCase": "title", - "screamingSnakeCase": "TITLE" - }, - "unsafeName": { - "originalValue": "title", - "camelCase": "title", - "pascalCase": "Title", - "snakeCase": "title", - "screamingSnakeCase": "TITLE" - } - } - }, - "valueType": { - "primitive": "STRING", - "_type": "primitive" - } - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "rating", - "camelCase": "rating", - "pascalCase": "Rating", - "snakeCase": "rating", - "screamingSnakeCase": "RATING", - "wireValue": "rating" - }, - "nameV2": { - "wireValue": "rating", - "name": { - "safeName": { - "originalValue": "rating", - "camelCase": "rating", - "pascalCase": "Rating", - "snakeCase": "rating", - "screamingSnakeCase": "RATING" - }, - "unsafeName": { - "originalValue": "rating", - "camelCase": "rating", - "pascalCase": "Rating", - "snakeCase": "rating", - "screamingSnakeCase": "RATING" - } - } - }, - "valueType": { - "primitive": "DOUBLE", - "_type": "primitive" - } - } - ], - "_type": "object" - }, - "examples": [ - { - "properties": [ - { - "wireKey": "id", - "value": { - "typeName": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - } - }, - "shape": { - "value": { - "primitive": { - "string": "my-movie-id", - "type": "string" - }, - "type": "primitive" - }, - "type": "alias" - }, - "type": "named" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "Movie", - "nameV2": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "nameV3": { - "safeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "unsafeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - } - } - } - }, - { - "wireKey": "title", - "value": { - "primitive": { - "string": "Goodwill Hunting", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "Movie", - "nameV2": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "nameV3": { - "safeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "unsafeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - } - } - } - }, - { - "wireKey": "rating", - "value": { - "primitive": { - "double": 14.5, - "type": "double" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "Movie", - "nameV2": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "nameV3": { - "safeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "unsafeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - } - } - } - } - ], - "type": "object" - } - ], - "referencedTypes": [ - { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - } - } - ] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - }, - "shape": { - "extends": [], - "properties": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "title", - "camelCase": "title", - "pascalCase": "Title", - "snakeCase": "title", - "screamingSnakeCase": "TITLE", - "wireValue": "title" - }, - "nameV2": { - "wireValue": "title", - "name": { - "safeName": { - "originalValue": "title", - "camelCase": "title", - "pascalCase": "Title", - "snakeCase": "title", - "screamingSnakeCase": "TITLE" - }, - "unsafeName": { - "originalValue": "title", - "camelCase": "title", - "pascalCase": "Title", - "snakeCase": "title", - "screamingSnakeCase": "TITLE" - } - } - }, - "valueType": { - "primitive": "STRING", - "_type": "primitive" - } - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "ratings", - "camelCase": "ratings", - "pascalCase": "Ratings", - "snakeCase": "ratings", - "screamingSnakeCase": "RATINGS", - "wireValue": "ratings" - }, - "nameV2": { - "wireValue": "ratings", - "name": { - "safeName": { - "originalValue": "ratings", - "camelCase": "ratings", - "pascalCase": "Ratings", - "snakeCase": "ratings", - "screamingSnakeCase": "RATINGS" - }, - "unsafeName": { - "originalValue": "ratings", - "camelCase": "ratings", - "pascalCase": "Ratings", - "snakeCase": "ratings", - "screamingSnakeCase": "RATINGS" - } - } - }, - "valueType": { - "container": { - "list": { - "primitive": "DOUBLE", - "_type": "primitive" - }, - "_type": "list" - }, - "_type": "container" - } - } - ], - "_type": "object" - }, - "examples": [ - { - "properties": [ - { - "wireKey": "title", - "value": { - "primitive": { - "string": "Winnie the Pooh", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "ratings", - "value": { - "container": { - "list": [ - { - "primitive": { - "double": 1, - "type": "double" - }, - "type": "primitive" - }, - { - "primitive": { - "double": 2, - "type": "double" - }, - "type": "primitive" - }, - { - "primitive": { - "double": 3, - "type": "double" - }, - "type": "primitive" - } - ], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - } - ], - "type": "object" - } - ], - "referencedTypes": [] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "DirectorWrapper", - "nameV2": { - "originalValue": "DirectorWrapper", - "camelCase": "directorWrapper", - "pascalCase": "DirectorWrapper", - "snakeCase": "director_wrapper", - "screamingSnakeCase": "DIRECTOR_WRAPPER" - }, - "nameV3": { - "safeName": { - "originalValue": "DirectorWrapper", - "camelCase": "directorWrapper", - "pascalCase": "DirectorWrapper", - "snakeCase": "director_wrapper", - "screamingSnakeCase": "DIRECTOR_WRAPPER" - }, - "unsafeName": { - "originalValue": "DirectorWrapper", - "camelCase": "directorWrapper", - "pascalCase": "DirectorWrapper", - "snakeCase": "director_wrapper", - "screamingSnakeCase": "DIRECTOR_WRAPPER" - } - } - }, - "shape": { - "extends": [], - "properties": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR", - "wireValue": "director" - }, - "nameV2": { - "wireValue": "director", - "name": { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - }, - "valueType": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - }, - "_type": "named" - } - } - ], - "_type": "object" - }, - "examples": [ - { - "properties": [ - { - "wireKey": "director", - "value": { - "typeName": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - }, - "shape": { - "properties": [ - { - "wireKey": "name", - "value": { - "primitive": { - "string": "George the Director", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - } - }, - { - "wireKey": "age", - "value": { - "typeName": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - }, - "shape": { - "value": { - "primitive": { - "integer": 20, - "type": "integer" - }, - "type": "primitive" - }, - "type": "alias" - }, - "type": "named" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - } - } - ], - "type": "object" - }, - "type": "named" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "DirectorWrapper", - "nameV2": { - "originalValue": "DirectorWrapper", - "camelCase": "directorWrapper", - "pascalCase": "DirectorWrapper", - "snakeCase": "director_wrapper", - "screamingSnakeCase": "DIRECTOR_WRAPPER" - }, - "nameV3": { - "safeName": { - "originalValue": "DirectorWrapper", - "camelCase": "directorWrapper", - "pascalCase": "DirectorWrapper", - "snakeCase": "director_wrapper", - "screamingSnakeCase": "DIRECTOR_WRAPPER" - }, - "unsafeName": { - "originalValue": "DirectorWrapper", - "camelCase": "directorWrapper", - "pascalCase": "DirectorWrapper", - "snakeCase": "director_wrapper", - "screamingSnakeCase": "DIRECTOR_WRAPPER" - } - } - } - } - ], - "type": "object" - } - ], - "referencedTypes": [ - { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - }, - { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - } - ] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "Person", - "nameV2": { - "originalValue": "Person", - "camelCase": "person", - "pascalCase": "Person", - "snakeCase": "person", - "screamingSnakeCase": "PERSON" - }, - "nameV3": { - "safeName": { - "originalValue": "Person", - "camelCase": "person", - "pascalCase": "Person", - "snakeCase": "person", - "screamingSnakeCase": "PERSON" - }, - "unsafeName": { - "originalValue": "Person", - "camelCase": "person", - "pascalCase": "Person", - "snakeCase": "person", - "screamingSnakeCase": "PERSON" - } - } - }, - "shape": { - "discriminant": "type", - "discriminantV2": { - "originalValue": "type", - "camelCase": "type", - "pascalCase": "Type", - "snakeCase": "type", - "screamingSnakeCase": "TYPE", - "wireValue": "type" - }, - "discriminantV3": { - "wireValue": "type", - "name": { - "safeName": { - "originalValue": "type", - "camelCase": "type", - "pascalCase": "Type", - "snakeCase": "type", - "screamingSnakeCase": "TYPE" - }, - "unsafeName": { - "originalValue": "type", - "camelCase": "type", - "pascalCase": "Type", - "snakeCase": "type", - "screamingSnakeCase": "TYPE" - } - } - }, - "types": [ - { - "discriminantValue": { - "originalValue": "actor", - "camelCase": "actor", - "pascalCase": "Actor", - "snakeCase": "actor", - "screamingSnakeCase": "ACTOR", - "wireValue": "actor" - }, - "discriminantValueV2": { - "wireValue": "actor", - "name": { - "safeName": { - "originalValue": "actor", - "camelCase": "actor", - "pascalCase": "Actor", - "snakeCase": "actor", - "screamingSnakeCase": "ACTOR" - }, - "unsafeName": { - "originalValue": "actor", - "camelCase": "actor", - "pascalCase": "Actor", - "snakeCase": "actor", - "screamingSnakeCase": "ACTOR" - } - } - }, - "valueType": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "ActorId", - "nameV2": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "unsafeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - } - }, - "_type": "named" - }, - "shape": { - "name": { - "originalValue": "value", - "camelCase": "value", - "pascalCase": "Value", - "snakeCase": "value", - "screamingSnakeCase": "VALUE", - "wireValue": "value" - }, - "nameV2": { - "wireValue": "value", - "name": { - "safeName": { - "originalValue": "value", - "camelCase": "value", - "pascalCase": "Value", - "snakeCase": "value", - "screamingSnakeCase": "VALUE" - }, - "unsafeName": { - "originalValue": "value", - "camelCase": "value", - "pascalCase": "Value", - "snakeCase": "value", - "screamingSnakeCase": "VALUE" - } - } - }, - "type": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "ActorId", - "nameV2": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "unsafeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - } - }, - "_type": "named" - }, - "_type": "singleProperty" - } - }, - { - "discriminantValue": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR", - "wireValue": "director" - }, - "discriminantValueV2": { - "wireValue": "director", - "name": { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - }, - "valueType": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - }, - "_type": "named" - }, - "shape": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - }, - "_type": "samePropertiesAsObject" - } - }, - { - "discriminantValue": { - "originalValue": "producer", - "camelCase": "producer", - "pascalCase": "Producer", - "snakeCase": "producer", - "screamingSnakeCase": "PRODUCER", - "wireValue": "producer" - }, - "discriminantValueV2": { - "wireValue": "producer", - "name": { - "safeName": { - "originalValue": "producer", - "camelCase": "producer", - "pascalCase": "Producer", - "snakeCase": "producer", - "screamingSnakeCase": "PRODUCER" - }, - "unsafeName": { - "originalValue": "producer", - "camelCase": "producer", - "pascalCase": "Producer", - "snakeCase": "producer", - "screamingSnakeCase": "PRODUCER" - } - } - }, - "valueType": { - "_type": "void" - }, - "shape": { - "_type": "noProperties" - } - }, - { - "docs": "i am docs", - "discriminantValue": { - "originalValue": "cinematographer", - "camelCase": "cinematographer", - "pascalCase": "Cinematographer", - "snakeCase": "cinematographer", - "screamingSnakeCase": "CINEMATOGRAPHER", - "wireValue": "cinematographer" - }, - "discriminantValueV2": { - "wireValue": "cinematographer", - "name": { - "safeName": { - "originalValue": "cinematographer", - "camelCase": "cinematographer", - "pascalCase": "Cinematographer", - "snakeCase": "cinematographer", - "screamingSnakeCase": "CINEMATOGRAPHER" - }, - "unsafeName": { - "originalValue": "cinematographer", - "camelCase": "cinematographer", - "pascalCase": "Cinematographer", - "snakeCase": "cinematographer", - "screamingSnakeCase": "CINEMATOGRAPHER" - } - } - }, - "valueType": { - "_type": "void" - }, - "shape": { - "_type": "noProperties" - } - } - ], - "_type": "union" - }, - "examples": [ - { - "wireDiscriminantValue": "actor", - "properties": { - "singleProperty": { - "typeName": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "ActorId", - "nameV2": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "unsafeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - } - } - }, - "shape": { - "value": { - "primitive": { - "string": "Matt Damon", - "type": "string" - }, - "type": "primitive" - }, - "type": "alias" - }, - "type": "named" - }, - "type": "singleProperty" - }, - "type": "union" - }, - { - "wireDiscriminantValue": "director", - "properties": { - "typeName": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - }, - "shape": { - "properties": [ - { - "wireKey": "name", - "value": { - "primitive": { - "string": "George the Directory", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - } - }, - { - "wireKey": "age", - "value": { - "typeName": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - }, - "shape": { - "value": { - "primitive": { - "integer": 100, - "type": "integer" - }, - "type": "primitive" - }, - "type": "alias" - }, - "type": "named" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - } - } - ], - "type": "object" - }, - "type": "samePropertiesAsObject" - }, - "type": "union" - }, - { - "wireDiscriminantValue": "producer", - "properties": { - "type": "noProperties" - }, - "type": "union" - } - ], - "referencedTypes": [ - { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "ActorId", - "nameV2": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - }, - "unsafeName": { - "originalValue": "ActorId", - "camelCase": "actorId", - "pascalCase": "ActorId", - "snakeCase": "actor_id", - "screamingSnakeCase": "ACTOR_ID" - } - } - }, - { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Director", - "nameV2": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "nameV3": { - "safeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "Director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - }, - { - "fernFilepath": [ - { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - }, - "unsafeName": { - "originalValue": "director", - "camelCase": "director", - "pascalCase": "Director", - "snakeCase": "director", - "screamingSnakeCase": "DIRECTOR" - } - } - ], - "name": "Age", - "nameV2": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "nameV3": { - "safeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - }, - "unsafeName": { - "originalValue": "Age", - "camelCase": "age", - "pascalCase": "Age", - "snakeCase": "age", - "screamingSnakeCase": "AGE" - } - } - } - ] - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - }, - "shape": { - "extends": [ - { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - ], - "properties": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "selfReferencing", - "camelCase": "selfReferencing", - "pascalCase": "SelfReferencing", - "snakeCase": "self_referencing", - "screamingSnakeCase": "SELF_REFERENCING", - "wireValue": "selfReferencing" - }, - "nameV2": { - "wireValue": "selfReferencing", - "name": { - "safeName": { - "originalValue": "selfReferencing", - "camelCase": "selfReferencing", - "pascalCase": "SelfReferencing", - "snakeCase": "self_referencing", - "screamingSnakeCase": "SELF_REFERENCING" - }, - "unsafeName": { - "originalValue": "selfReferencing", - "camelCase": "selfReferencing", - "pascalCase": "SelfReferencing", - "snakeCase": "self_referencing", - "screamingSnakeCase": "SELF_REFERENCING" - } - } - }, - "valueType": { - "container": { - "list": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - }, - "_type": "named" - }, - "_type": "list" - }, - "_type": "container" - } - } - ], - "_type": "object" - }, - "examples": [ - { - "properties": [ - { - "wireKey": "title", - "value": { - "primitive": { - "string": "The Godfather", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "ratings", - "value": { - "container": { - "list": [ - { - "primitive": { - "double": 10, - "type": "double" - }, - "type": "primitive" - }, - { - "primitive": { - "double": 5, - "type": "double" - }, - "type": "primitive" - }, - { - "primitive": { - "double": 9, - "type": "double" - }, - "type": "primitive" - } - ], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "selfReferencing", - "value": { - "container": { - "list": [ - { - "typeName": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - }, - "shape": { - "properties": [ - { - "wireKey": "title", - "value": { - "primitive": { - "string": "The Godfather II", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "ratings", - "value": { - "container": { - "list": [ - { - "primitive": { - "double": 10, - "type": "double" - }, - "type": "primitive" - }, - { - "primitive": { - "double": 11, - "type": "double" - }, - "type": "primitive" - } - ], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "selfReferencing", - "value": { - "container": { - "list": [], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - } - } - ], - "type": "object" - }, - "type": "named" - }, - { - "typeName": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - }, - "shape": { - "properties": [ - { - "wireKey": "title", - "value": { - "primitive": { - "string": "The Godfather III", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "ratings", - "value": { - "container": { - "list": [], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "selfReferencing", - "value": { - "container": { - "list": [], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - } - } - ], - "type": "object" - }, - "type": "named" - } - ], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - } - } - ], - "type": "object" - }, - { - "properties": [ - { - "wireKey": "title", - "value": { - "primitive": { - "string": "Goodfellas", - "type": "string" - }, - "type": "primitive" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "ratings", - "value": { - "container": { - "list": [ - { - "primitive": { - "double": 1, - "type": "double" - }, - "type": "primitive" - }, - { - "primitive": { - "double": 2, - "type": "double" - }, - "type": "primitive" - }, - { - "primitive": { - "double": 3, - "type": "double" - }, - "type": "primitive" - } - ], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - } - }, - { - "wireKey": "selfReferencing", - "value": { - "container": { - "list": [], - "type": "list" - }, - "type": "container" - }, - "originalTypeDeclaration": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - } - } - ], - "type": "object" - } - ], - "referencedTypes": [ - { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - } - }, - { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "RecursiveType", - "nameV2": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "nameV3": { - "safeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - }, - "unsafeName": { - "originalValue": "RecursiveType", - "camelCase": "recursiveType", - "pascalCase": "RecursiveType", - "snakeCase": "recursive_type", - "screamingSnakeCase": "RECURSIVE_TYPE" - } - } - } - ] - } - ], - "services": { - "websocket": [], - "http": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "name": "ImdbService", - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ] - }, - "basePath": "/movies", - "basePathV2": { - "head": "/movies", - "parts": [] - }, - "headers": [], - "pathParameters": [], - "endpoints": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "id": "createMovie", - "name": { - "originalValue": "createMovie", - "camelCase": "createMovie", - "pascalCase": "CreateMovie", - "snakeCase": "create_movie", - "screamingSnakeCase": "CREATE_MOVIE" - }, - "nameV2": { - "safeName": { - "originalValue": "createMovie", - "camelCase": "createMovie", - "pascalCase": "CreateMovie", - "snakeCase": "create_movie", - "screamingSnakeCase": "CREATE_MOVIE" - }, - "unsafeName": { - "originalValue": "createMovie", - "camelCase": "createMovie", - "pascalCase": "CreateMovie", - "snakeCase": "create_movie", - "screamingSnakeCase": "CREATE_MOVIE" - } - }, - "method": "POST", - "headers": [], - "path": { - "head": "", - "parts": [] - }, - "pathParameters": [], - "queryParameters": [], - "request": { - "type": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - }, - "_type": "named" - }, - "typeV2": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "CreateMovieRequest", - "nameV2": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "nameV3": { - "safeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - }, - "unsafeName": { - "originalValue": "CreateMovieRequest", - "camelCase": "createMovieRequest", - "pascalCase": "CreateMovieRequest", - "snakeCase": "create_movie_request", - "screamingSnakeCase": "CREATE_MOVIE_REQUEST" - } - }, - "_type": "named" - } - }, - "response": { - "type": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - }, - "_type": "named" - }, - "typeV2": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - }, - "_type": "named" - } - }, - "errors": [ - { - "error": { - "name": "BadRequestError", - "nameV2": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "nameV3": { - "safeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "unsafeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - } - }, - "fernFilepath": [ - { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - }, - "unsafeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - } - ] - } - } - ], - "errorsV2": { - "discriminant": { - "originalValue": "errorName", - "camelCase": "errorName", - "snakeCase": "error_name", - "pascalCase": "ErrorName", - "screamingSnakeCase": "ERROR_NAME", - "wireValue": "errorName" - }, - "types": [ - { - "discriminantValue": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR", - "wireValue": "BadRequestError" - }, - "shape": { - "type": "noProperties" - } - } - ] - }, - "auth": false - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "id": "getMovie", - "name": { - "originalValue": "getMovie", - "camelCase": "getMovie", - "pascalCase": "GetMovie", - "snakeCase": "get_movie", - "screamingSnakeCase": "GET_MOVIE" - }, - "nameV2": { - "safeName": { - "originalValue": "getMovie", - "camelCase": "getMovie", - "pascalCase": "GetMovie", - "snakeCase": "get_movie", - "screamingSnakeCase": "GET_MOVIE" - }, - "unsafeName": { - "originalValue": "getMovie", - "camelCase": "getMovie", - "pascalCase": "GetMovie", - "snakeCase": "get_movie", - "screamingSnakeCase": "GET_MOVIE" - } - }, - "method": "GET", - "headers": [], - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "movieId", - "tail": "" - } - ] - }, - "pathParameters": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "movieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV2": { - "safeName": { - "originalValue": "movieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "movieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - }, - "valueType": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - }, - "_type": "named" - } - } - ], - "queryParameters": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "movieName", - "camelCase": "movieName", - "pascalCase": "MovieName", - "snakeCase": "movie_name", - "screamingSnakeCase": "MOVIE_NAME", - "wireValue": "movieName" - }, - "nameV2": { - "wireValue": "movieName", - "name": { - "safeName": { - "originalValue": "movieName", - "camelCase": "movieName", - "pascalCase": "MovieName", - "snakeCase": "movie_name", - "screamingSnakeCase": "MOVIE_NAME" - }, - "unsafeName": { - "originalValue": "movieName", - "camelCase": "movieName", - "pascalCase": "MovieName", - "snakeCase": "movie_name", - "screamingSnakeCase": "MOVIE_NAME" - } - } - }, - "valueType": { - "primitive": "STRING", - "_type": "primitive" - }, - "allowMultiple": true - } - ], - "request": { - "type": { - "_type": "void" - } - }, - "response": { - "type": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "Movie", - "nameV2": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "nameV3": { - "safeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "unsafeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - } - }, - "_type": "named" - }, - "typeV2": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "Movie", - "nameV2": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "nameV3": { - "safeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - }, - "unsafeName": { - "originalValue": "Movie", - "camelCase": "movie", - "pascalCase": "Movie", - "snakeCase": "movie", - "screamingSnakeCase": "MOVIE" - } - }, - "_type": "named" - } - }, - "errors": [ - { - "error": { - "name": "NotFoundError", - "nameV2": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "nameV3": { - "safeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "unsafeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - } - }, - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ] - } - }, - { - "error": { - "name": "BadRequestError", - "nameV2": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "nameV3": { - "safeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "unsafeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - } - }, - "fernFilepath": [ - { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - }, - "unsafeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - } - ] - } - } - ], - "errorsV2": { - "discriminant": { - "originalValue": "errorName", - "camelCase": "errorName", - "snakeCase": "error_name", - "pascalCase": "ErrorName", - "screamingSnakeCase": "ERROR_NAME", - "wireValue": "errorName" - }, - "types": [ - { - "discriminantValue": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR", - "wireValue": "NotFoundError" - }, - "shape": { - "name": { - "originalValue": "content", - "camelCase": "content", - "snakeCase": "content", - "pascalCase": "Content", - "screamingSnakeCase": "CONTENT", - "wireValue": "content" - }, - "error": { - "name": "NotFoundError", - "nameV2": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "nameV3": { - "safeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "unsafeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - } - }, - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ] - }, - "type": "singleProperty" - } - }, - { - "discriminantValue": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR", - "wireValue": "BadRequestError" - }, - "shape": { - "type": "noProperties" - } - } - ] - }, - "auth": false - }, - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "id": "delete", - "name": { - "originalValue": "delete", - "camelCase": "delete", - "pascalCase": "Delete", - "snakeCase": "delete", - "screamingSnakeCase": "DELETE" - }, - "nameV2": { - "safeName": { - "originalValue": "delete", - "camelCase": "delete", - "pascalCase": "Delete", - "snakeCase": "delete", - "screamingSnakeCase": "DELETE" - }, - "unsafeName": { - "originalValue": "delete", - "camelCase": "delete", - "pascalCase": "Delete", - "snakeCase": "delete", - "screamingSnakeCase": "DELETE" - } - }, - "method": "DELETE", - "headers": [], - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "movieId", - "tail": "" - } - ] - }, - "pathParameters": [ - { - "availability": { - "status": "GENERAL_AVAILABILITY" - }, - "name": { - "originalValue": "movieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV2": { - "safeName": { - "originalValue": "movieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "movieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - }, - "valueType": { - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ], - "name": "MovieId", - "nameV2": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "nameV3": { - "safeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - }, - "unsafeName": { - "originalValue": "MovieId", - "camelCase": "movieId", - "pascalCase": "MovieId", - "snakeCase": "movie_id", - "screamingSnakeCase": "MOVIE_ID" - } - }, - "_type": "named" - } - } - ], - "queryParameters": [], - "request": { - "type": { - "_type": "void" - } - }, - "response": { - "type": { - "_type": "void" - } - }, - "errors": [ - { - "error": { - "name": "BadRequestError", - "nameV2": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "nameV3": { - "safeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "unsafeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - } - }, - "fernFilepath": [ - { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - }, - "unsafeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - } - ] - } - } - ], - "errorsV2": { - "discriminant": { - "originalValue": "errorName", - "camelCase": "errorName", - "snakeCase": "error_name", - "pascalCase": "ErrorName", - "screamingSnakeCase": "ERROR_NAME", - "wireValue": "errorName" - }, - "types": [ - { - "discriminantValue": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR", - "wireValue": "BadRequestError" - }, - "shape": { - "type": "noProperties" - } - } - ] - }, - "auth": false - } - ] - } - ] - }, - "constants": { - "errorDiscriminant": "_error", - "errorInstanceIdKey": "_errorInstanceId", - "unknownErrorDiscriminantValue": "_unknown" - }, - "constantsV2": { - "errors": { - "errorInstanceIdKey": { - "originalValue": "errorInstanceId", - "camelCase": "errorInstanceId", - "pascalCase": "ErrorInstanceId", - "snakeCase": "error_instance_id", - "screamingSnakeCase": "ERROR_INSTANCE_ID", - "wireValue": "errorInstanceId" - }, - "errorDiscriminant": { - "originalValue": "error", - "camelCase": "error", - "snakeCase": "error", - "pascalCase": "Error", - "screamingSnakeCase": "ERROR", - "wireValue": "error" - }, - "errorContentKey": { - "originalValue": "content", - "camelCase": "content", - "snakeCase": "content", - "pascalCase": "Content", - "screamingSnakeCase": "CONTENT", - "wireValue": "content" - } - }, - "errorsV2": { - "errorInstanceIdKey": { - "wireValue": "errorInstanceId", - "name": { - "safeName": { - "originalValue": "errorInstanceId", - "camelCase": "errorInstanceId", - "pascalCase": "ErrorInstanceId", - "snakeCase": "error_instance_id", - "screamingSnakeCase": "ERROR_INSTANCE_ID" - }, - "unsafeName": { - "originalValue": "errorInstanceId", - "camelCase": "errorInstanceId", - "pascalCase": "ErrorInstanceId", - "snakeCase": "error_instance_id", - "screamingSnakeCase": "ERROR_INSTANCE_ID" - } - } - }, - "errorDiscriminant": { - "name": { - "unsafeName": { - "originalValue": "error", - "camelCase": "error", - "snakeCase": "error", - "pascalCase": "Error", - "screamingSnakeCase": "ERROR" - }, - "safeName": { - "originalValue": "error", - "camelCase": "error", - "snakeCase": "error", - "pascalCase": "Error", - "screamingSnakeCase": "ERROR" - } - }, - "wireValue": "error" - }, - "errorContentKey": { - "name": { - "unsafeName": { - "originalValue": "content", - "camelCase": "content", - "snakeCase": "content", - "pascalCase": "Content", - "screamingSnakeCase": "CONTENT" - }, - "safeName": { - "originalValue": "content", - "camelCase": "content", - "snakeCase": "content", - "pascalCase": "Content", - "screamingSnakeCase": "CONTENT" - } - }, - "wireValue": "content" - } - } - }, - "environments": [], - "errorDiscriminant": { - "safeName": { - "originalValue": "error", - "camelCase": "error", - "pascalCase": "Error", - "snakeCase": "error", - "screamingSnakeCase": "ERROR" - }, - "unsafeName": { - "originalValue": "error", - "camelCase": "error", - "pascalCase": "Error", - "snakeCase": "error", - "screamingSnakeCase": "ERROR" - } - }, - "errorDiscriminationStrategy": { - "discriminant": { - "wireValue": "error", - "name": { - "safeName": { - "originalValue": "error", - "camelCase": "error", - "pascalCase": "Error", - "snakeCase": "error", - "screamingSnakeCase": "ERROR" - }, - "unsafeName": { - "originalValue": "error", - "camelCase": "error", - "pascalCase": "Error", - "snakeCase": "error", - "screamingSnakeCase": "ERROR" - } - } - }, - "contentProperty": { - "wireValue": "content", - "name": { - "safeName": { - "originalValue": "content", - "camelCase": "content", - "pascalCase": "Content", - "snakeCase": "content", - "screamingSnakeCase": "CONTENT" - }, - "unsafeName": { - "originalValue": "content", - "camelCase": "content", - "pascalCase": "Content", - "snakeCase": "content", - "screamingSnakeCase": "CONTENT" - } - } - }, - "type": "property" - }, - "sdkConfig": { - "isAuthMandatory": false, - "hasStreamingEndpoints": false, - "hasPaginatedEndpoints": false, - "hasFileDownloadEndpoints": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version" - } - }, - "errors": [ - { - "name": { - "name": "BadRequestError", - "nameV2": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "nameV3": { - "safeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "unsafeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - } - }, - "fernFilepath": [ - { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - }, - "unsafeName": { - "originalValue": "commons", - "camelCase": "commons", - "pascalCase": "Commons", - "snakeCase": "commons", - "screamingSnakeCase": "COMMONS" - } - } - ] - }, - "discriminantValue": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR", - "wireValue": "BadRequestError" - }, - "discriminantValueV2": { - "wireValue": "BadRequestError", - "name": { - "safeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "unsafeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - } - } - }, - "discriminantValueV3": { - "wireValue": "content", - "name": { - "safeName": { - "originalValue": "content", - "camelCase": "content", - "pascalCase": "Content", - "snakeCase": "content", - "screamingSnakeCase": "CONTENT" - }, - "unsafeName": { - "originalValue": "content", - "camelCase": "content", - "pascalCase": "Content", - "snakeCase": "content", - "screamingSnakeCase": "CONTENT" - } - }, - "type": "property" - }, - "discriminantValueV4": { - "wireValue": "BadRequestError", - "name": { - "safeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - }, - "unsafeName": { - "originalValue": "BadRequestError", - "camelCase": "badRequestError", - "pascalCase": "BadRequestError", - "snakeCase": "bad_request_error", - "screamingSnakeCase": "BAD_REQUEST_ERROR" - } - } - }, - "type": { - "aliasOf": { - "_type": "void" - }, - "resolvedType": { - "_type": "void" - }, - "_type": "alias" - }, - "http": { - "statusCode": 400 - }, - "statusCode": 400 - }, - { - "name": { - "name": "NotFoundError", - "nameV2": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "nameV3": { - "safeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "unsafeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - } - }, - "fernFilepath": [ - { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - ], - "fernFilepathV2": [ - { - "safeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - }, - "unsafeName": { - "originalValue": "imdb", - "camelCase": "imdb", - "pascalCase": "Imdb", - "snakeCase": "imdb", - "screamingSnakeCase": "IMDB" - } - } - ] - }, - "discriminantValue": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR", - "wireValue": "NotFoundError" - }, - "discriminantValueV2": { - "wireValue": "NotFoundError", - "name": { - "safeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "unsafeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - } - } - }, - "discriminantValueV3": { - "wireValue": "content", - "name": { - "safeName": { - "originalValue": "content", - "camelCase": "content", - "pascalCase": "Content", - "snakeCase": "content", - "screamingSnakeCase": "CONTENT" - }, - "unsafeName": { - "originalValue": "content", - "camelCase": "content", - "pascalCase": "Content", - "snakeCase": "content", - "screamingSnakeCase": "CONTENT" - } - }, - "type": "property" - }, - "discriminantValueV4": { - "wireValue": "NotFoundError", - "name": { - "safeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - }, - "unsafeName": { - "originalValue": "NotFoundError", - "camelCase": "notFoundError", - "pascalCase": "NotFoundError", - "snakeCase": "not_found_error", - "screamingSnakeCase": "NOT_FOUND_ERROR" - } - } - }, - "type": { - "aliasOf": { - "primitive": "STRING", - "_type": "primitive" - }, - "resolvedType": { - "primitive": "STRING", - "_type": "primitive" - }, - "_type": "alias" - }, - "typeV2": { - "aliasOf": { - "primitive": "STRING", - "_type": "primitive" - }, - "resolvedType": { - "primitive": "STRING", - "_type": "primitive" - }, - "_type": "alias" - }, - "typeV3": { - "primitive": "STRING", - "_type": "primitive" - }, - "http": { - "statusCode": 404 - }, - "statusCode": 404 - } - ] -}" -`; - -exports[`ir {"name":"multiple-environment-urls"} 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": [], - "docs": null - }, - "headers": [], - "idempotencyHeaders": [], - "types": {}, - "errors": {}, - "services": { - "service_endpoint-urls": { - "availability": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "originalName": "endpoint-urls", - "camelCase": { - "unsafeName": "endpointUrls", - "safeName": "endpointUrls" - }, - "snakeCase": { - "unsafeName": "endpoint_urls", - "safeName": "endpoint_urls" - }, - "screamingSnakeCase": { - "unsafeName": "ENDPOINT_URLS", - "safeName": "ENDPOINT_URLS" - }, - "pascalCase": { - "unsafeName": "EndpointUrls", - "safeName": "EndpointUrls" - } - } - ], - "packagePath": [], - "file": { - "originalName": "endpoint-urls", - "camelCase": { - "unsafeName": "endpointUrls", - "safeName": "endpointUrls" - }, - "snakeCase": { - "unsafeName": "endpoint_urls", - "safeName": "endpoint_urls" - }, - "screamingSnakeCase": { - "unsafeName": "ENDPOINT_URLS", - "safeName": "ENDPOINT_URLS" - }, - "pascalCase": { - "unsafeName": "EndpointUrls", - "safeName": "EndpointUrls" - } - } - } - }, - "displayName": null, - "basePath": { - "head": "/", - "parts": [] - }, - "headers": [], - "pathParameters": [], - "encoding": { - "json": {}, - "proto": null - }, - "transport": { - "type": "http" - }, - "endpoints": [ - { - "id": "endpoint_endpoint-urls.test1", - "name": { - "originalName": "test1", - "camelCase": { - "unsafeName": "test1", - "safeName": "test1" - }, - "snakeCase": { - "unsafeName": "test_1", - "safeName": "test_1" - }, - "screamingSnakeCase": { - "unsafeName": "TEST_1", - "safeName": "TEST_1" - }, - "pascalCase": { - "unsafeName": "Test1", - "safeName": "Test1" - } - }, - "displayName": null, - "auth": false, - "idempotent": false, - "baseUrl": "ServerA", - "method": "GET", - "path": { - "head": "/a", - "parts": [] - }, - "fullPath": { - "head": "/a", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": null, - "sdkRequest": null, - "response": { - "body": null, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "/a", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "972345e0c98c8ef5da199d6a74ce80a26de13be3", - "docs": null - } - } - ], - "pagination": null, - "availability": null, - "docs": null - }, - { - "id": "endpoint_endpoint-urls.test2", - "name": { - "originalName": "test2", - "camelCase": { - "unsafeName": "test2", - "safeName": "test2" - }, - "snakeCase": { - "unsafeName": "test_2", - "safeName": "test_2" - }, - "screamingSnakeCase": { - "unsafeName": "TEST_2", - "safeName": "TEST_2" - }, - "pascalCase": { - "unsafeName": "Test2", - "safeName": "Test2" - } - }, - "displayName": null, - "auth": false, - "idempotent": false, - "baseUrl": "ServerB", - "method": "POST", - "path": { - "head": "/b", - "parts": [] - }, - "fullPath": { - "head": "/b", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": null, - "sdkRequest": null, - "response": { - "body": null, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "/b", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "2ba1284ff6e0ef5f86df327c1836906e3328b8dd", - "docs": null - } - } - ], - "pagination": null, - "availability": null, - "docs": null - } - ] - }, - "service_service-url": { - "availability": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "originalName": "service-url", - "camelCase": { - "unsafeName": "serviceUrl", - "safeName": "serviceUrl" - }, - "snakeCase": { - "unsafeName": "service_url", - "safeName": "service_url" - }, - "screamingSnakeCase": { - "unsafeName": "SERVICE_URL", - "safeName": "SERVICE_URL" - }, - "pascalCase": { - "unsafeName": "ServiceUrl", - "safeName": "ServiceUrl" - } - } - ], - "packagePath": [], - "file": { - "originalName": "service-url", - "camelCase": { - "unsafeName": "serviceUrl", - "safeName": "serviceUrl" - }, - "snakeCase": { - "unsafeName": "service_url", - "safeName": "service_url" - }, - "screamingSnakeCase": { - "unsafeName": "SERVICE_URL", - "safeName": "SERVICE_URL" - }, - "pascalCase": { - "unsafeName": "ServiceUrl", - "safeName": "ServiceUrl" - } - } - } - }, - "displayName": null, - "basePath": { - "head": "/", - "parts": [] - }, - "headers": [], - "pathParameters": [], - "encoding": { - "json": {}, - "proto": null - }, - "transport": { - "type": "http" - }, - "endpoints": [ - { - "id": "endpoint_service-url.test", - "name": { - "originalName": "test", - "camelCase": { - "unsafeName": "test", - "safeName": "test" - }, - "snakeCase": { - "unsafeName": "test", - "safeName": "test" - }, - "screamingSnakeCase": { - "unsafeName": "TEST", - "safeName": "TEST" - }, - "pascalCase": { - "unsafeName": "Test", - "safeName": "Test" - } - }, - "displayName": null, - "auth": false, - "idempotent": false, - "baseUrl": "ServerA", - "method": "GET", - "path": { - "head": "", - "parts": [] - }, - "fullPath": { - "head": "", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": null, - "sdkRequest": null, - "response": { - "body": null, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "d6c6ed9738b2481b8cf22457a7bb62b68d6eedde", - "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": { - "defaultEnvironment": "Production", - "environments": { - "type": "multipleBaseUrls", - "baseUrls": [ - { - "id": "ServerA", - "name": { - "originalName": "ServerA", - "camelCase": { - "unsafeName": "serverA", - "safeName": "serverA" - }, - "snakeCase": { - "unsafeName": "server_a", - "safeName": "server_a" - }, - "screamingSnakeCase": { - "unsafeName": "SERVER_A", - "safeName": "SERVER_A" - }, - "pascalCase": { - "unsafeName": "ServerA", - "safeName": "ServerA" - } - } - }, - { - "id": "ServerB", - "name": { - "originalName": "ServerB", - "camelCase": { - "unsafeName": "serverB", - "safeName": "serverB" - }, - "snakeCase": { - "unsafeName": "server_b", - "safeName": "server_b" - }, - "screamingSnakeCase": { - "unsafeName": "SERVER_B", - "safeName": "SERVER_B" - }, - "pascalCase": { - "unsafeName": "ServerB", - "safeName": "ServerB" - } - } - } - ], - "environments": [ - { - "id": "Production", - "name": { - "originalName": "Production", - "camelCase": { - "unsafeName": "production", - "safeName": "production" - }, - "snakeCase": { - "unsafeName": "production", - "safeName": "production" - }, - "screamingSnakeCase": { - "unsafeName": "PRODUCTION", - "safeName": "PRODUCTION" - }, - "pascalCase": { - "unsafeName": "Production", - "safeName": "Production" - } - }, - "urls": { - "ServerA": "a.prod.com", - "ServerB": "b.prod.com" - }, - "docs": null - }, - { - "id": "Staging", - "name": { - "originalName": "Staging", - "camelCase": { - "unsafeName": "staging", - "safeName": "staging" - }, - "snakeCase": { - "unsafeName": "staging", - "safeName": "staging" - }, - "screamingSnakeCase": { - "unsafeName": "STAGING", - "safeName": "STAGING" - }, - "pascalCase": { - "unsafeName": "Staging", - "safeName": "Staging" - } - }, - "urls": { - "ServerA": "a.staging.com", - "ServerB": "b.staging.com" - }, - "docs": null - } - ] - } - }, - "errorDiscriminationStrategy": { - "type": "statusCode" - }, - "basePath": null, - "pathParameters": [], - "variables": [], - "serviceTypeReferenceInfo": { - "typesReferencedOnlyByService": {}, - "sharedTypes": [] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": null, - "subpackages": { - "subpackage_endpoint-urls": { - "name": { - "originalName": "endpoint-urls", - "camelCase": { - "unsafeName": "endpointUrls", - "safeName": "endpointUrls" - }, - "snakeCase": { - "unsafeName": "endpoint_urls", - "safeName": "endpoint_urls" - }, - "screamingSnakeCase": { - "unsafeName": "ENDPOINT_URLS", - "safeName": "ENDPOINT_URLS" - }, - "pascalCase": { - "unsafeName": "EndpointUrls", - "safeName": "EndpointUrls" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "endpoint-urls", - "camelCase": { - "unsafeName": "endpointUrls", - "safeName": "endpointUrls" - }, - "snakeCase": { - "unsafeName": "endpoint_urls", - "safeName": "endpoint_urls" - }, - "screamingSnakeCase": { - "unsafeName": "ENDPOINT_URLS", - "safeName": "ENDPOINT_URLS" - }, - "pascalCase": { - "unsafeName": "EndpointUrls", - "safeName": "EndpointUrls" - } - } - ], - "packagePath": [], - "file": { - "originalName": "endpoint-urls", - "camelCase": { - "unsafeName": "endpointUrls", - "safeName": "endpointUrls" - }, - "snakeCase": { - "unsafeName": "endpoint_urls", - "safeName": "endpoint_urls" - }, - "screamingSnakeCase": { - "unsafeName": "ENDPOINT_URLS", - "safeName": "ENDPOINT_URLS" - }, - "pascalCase": { - "unsafeName": "EndpointUrls", - "safeName": "EndpointUrls" - } - } - }, - "service": "service_endpoint-urls", - "types": [], - "errors": [], - "subpackages": [], - "navigationConfig": null, - "webhooks": null, - "websocket": null, - "hasEndpointsInTree": true, - "docs": null - }, - "subpackage_service-url": { - "name": { - "originalName": "service-url", - "camelCase": { - "unsafeName": "serviceUrl", - "safeName": "serviceUrl" - }, - "snakeCase": { - "unsafeName": "service_url", - "safeName": "service_url" - }, - "screamingSnakeCase": { - "unsafeName": "SERVICE_URL", - "safeName": "SERVICE_URL" - }, - "pascalCase": { - "unsafeName": "ServiceUrl", - "safeName": "ServiceUrl" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "service-url", - "camelCase": { - "unsafeName": "serviceUrl", - "safeName": "serviceUrl" - }, - "snakeCase": { - "unsafeName": "service_url", - "safeName": "service_url" - }, - "screamingSnakeCase": { - "unsafeName": "SERVICE_URL", - "safeName": "SERVICE_URL" - }, - "pascalCase": { - "unsafeName": "ServiceUrl", - "safeName": "ServiceUrl" - } - } - ], - "packagePath": [], - "file": { - "originalName": "service-url", - "camelCase": { - "unsafeName": "serviceUrl", - "safeName": "serviceUrl" - }, - "snakeCase": { - "unsafeName": "service_url", - "safeName": "service_url" - }, - "screamingSnakeCase": { - "unsafeName": "SERVICE_URL", - "safeName": "SERVICE_URL" - }, - "pascalCase": { - "unsafeName": "ServiceUrl", - "safeName": "ServiceUrl" - } - } - }, - "service": "service_service-url", - "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_endpoint-urls", - "subpackage_service-url" - ], - "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":"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, - "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": { - "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": { - "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": { - "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", - "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": null, - "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": { - "url": "/nested", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": 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" - } - } - } - } - } - } - } - }, - "id": "dbc628efc9741a6d3a6e5d0a140f62613e3acd6e", - "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, - "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": { - "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": { - "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": { - "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": { - "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", - "path": { - "head": "", - "parts": [] - }, - "fullPath": { - "head": "", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": null, - "sdkRequest": null, - "response": { - "body": null, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "d6c6ed9738b2481b8cf22457a7bb62b68d6eedde", - "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, - "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 - } - } -}" -`; - -exports[`ir {"name":"response-property"} 1`] = ` -"{ - "fdrApiDefinitionId": null, - "apiVersion": null, - "apiName": { - "originalName": "response-property", - "camelCase": { - "unsafeName": "responseProperty", - "safeName": "responseProperty" - }, - "snakeCase": { - "unsafeName": "response_property", - "safeName": "response_property" - }, - "screamingSnakeCase": { - "unsafeName": "RESPONSE_PROPERTY", - "safeName": "RESPONSE_PROPERTY" - }, - "pascalCase": { - "unsafeName": "ResponseProperty", - "safeName": "ResponseProperty" - } - }, - "apiDisplayName": null, - "apiDocs": null, - "auth": { - "requirement": "ALL", - "schemes": [], - "docs": null - }, - "headers": [], - "idempotencyHeaders": [], - "types": { - "type_service:WithDocs": { - "name": { - "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" - } - } - }, - "typeId": "type_service:WithDocs" - }, - "shape": { - "_type": "object", - "extends": [], - "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" - }, - "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_service:Movie": { - "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": "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" - } - } - }, - "typeId": "type_service: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": "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_service:Response": { - "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": "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" - } - } - }, - "typeId": "type_service:Response" - }, - "shape": { - "_type": "object", - "extends": [ - { - "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" - } - } - }, - "typeId": "type_service:WithDocs" - } - ], - "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" - }, - "valueType": { - "_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": "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" - } - } - }, - "typeId": "type_service:Movie", - "default": null, - "inline": null - }, - "availability": null, - "docs": null - } - ], - "extra-properties": false, - "extendedProperties": [ - { - "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" - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": null - } - } - }, - "availability": null, - "docs": null - } - ] - }, - "referencedTypes": [ - "type_service:WithDocs", - "type_service:Movie" - ], - "encoding": { - "json": {}, - "proto": null - }, - "source": null, - "userProvidedExamples": [], - "autogeneratedExamples": [], - "availability": null, - "docs": null - } - }, - "errors": {}, - "services": { - "service_service": { - "availability": null, - "name": { - "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" - } - } - } - }, - "displayName": null, - "basePath": { - "head": "", - "parts": [] - }, - "headers": [], - "pathParameters": [], - "encoding": { - "json": {}, - "proto": null - }, - "transport": { - "type": "http" - }, - "endpoints": [ - { - "id": "endpoint_service.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": null, - "auth": false, - "idempotent": false, - "baseUrl": null, - "method": "POST", - "path": { - "head": "/movie", - "parts": [] - }, - "fullPath": { - "head": "movie", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": { - "type": "reference", - "requestBodyType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": null - } - } - }, - "contentType": null, - "docs": null - }, - "sdkRequest": { - "shape": { - "type": "justRequestBody", - "value": { - "type": "typeReference", - "requestBodyType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": 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": "nestedPropertyAsResponse", - "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": "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" - } - } - }, - "typeId": "type_service:Response", - "default": null, - "inline": null - }, - "responseProperty": { - "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" - }, - "valueType": { - "_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": "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" - } - } - }, - "typeId": "type_service:Movie", - "default": null, - "inline": null - }, - "availability": null, - "docs": null - }, - "docs": null - } - }, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "/movie", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": { - "type": "reference", - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - }, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "shape": { - "type": "named", - "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": "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" - } - } - }, - "typeId": "type_service: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": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - }, - "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": "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" - } - } - }, - "typeId": "type_service:Movie" - } - } - ] - } - }, - "jsonExample": { - "id": "string" - } - } - } - }, - "id": "f1f38c86ba842bbc916b5d2b5e3ffbf671a80f71", - "docs": null - } - } - ], - "pagination": null, - "availability": null, - "docs": null - }, - { - "id": "endpoint_service.getMovieDocs", - "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" - } - }, - "displayName": null, - "auth": false, - "idempotent": false, - "baseUrl": null, - "method": "POST", - "path": { - "head": "/movie", - "parts": [] - }, - "fullPath": { - "head": "movie", - "parts": [] - }, - "pathParameters": [], - "allPathParameters": [], - "queryParameters": [], - "headers": [], - "requestBody": { - "type": "reference", - "requestBodyType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": null - } - } - }, - "contentType": null, - "docs": null - }, - "sdkRequest": { - "shape": { - "type": "justRequestBody", - "value": { - "type": "typeReference", - "requestBodyType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": 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": "nestedPropertyAsResponse", - "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": "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" - } - } - }, - "typeId": "type_service:Response", - "default": null, - "inline": null - }, - "responseProperty": { - "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" - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "type": "string", - "default": null, - "validation": null - } - } - }, - "availability": null, - "docs": null - }, - "docs": null - } - }, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "/movie", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": { - "type": "reference", - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - }, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - } - } - }, - "id": "0ff4719dd98db569e10f93de562bf01f7cef0ef1", - "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_service": [ - "type_service:Response" - ] - }, - "sharedTypes": [ - "type_service:WithDocs", - "type_service:Movie" - ] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": null, - "subpackages": { - "subpackage_service": { - "name": { - "originalName": "service", - "camelCase": { - "unsafeName": "service", - "safeName": "service" - }, - "snakeCase": { - "unsafeName": "service", - "safeName": "service" - }, - "screamingSnakeCase": { - "unsafeName": "SERVICE", - "safeName": "SERVICE" - }, - "pascalCase": { - "unsafeName": "Service", - "safeName": "Service" - } - }, - "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" - } - } - }, - "service": "service_service", - "types": [ - "type_service:WithDocs", - "type_service:Movie", - "type_service:Response" - ], - "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_service" - ], - "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":["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": { - "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": { - "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", - "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": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": { - "type": "reference", - "shape": { - "type": "named", - "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" - }, - "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" - }, - "value": { - "shape": { - "type": "unknown", - "unknown": { - "key": "value" - } - }, - "jsonExample": { - "key": "value" - } - }, - "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" - } - } - ] - } - }, - "jsonExample": { - "unknown": { - "key": "value" - } - } - }, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - } - } - }, - "id": "a16b5fde1f41adf2cb5c8aef09c71491b1782ac3", - "docs": null - } - }, - { - "example": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": { - "type": "reference", - "shape": { - "type": "named", - "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" - }, - "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" - }, - "value": { - "shape": { - "type": "unknown", - "unknown": { - "key": "value" - } - }, - "jsonExample": { - "key": "value" - } - }, - "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" - } - } - ] - } - }, - "jsonExample": { - "unknown": { - "key": "value" - } - } - }, - "name": null, - "response": { - "type": "error", - "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" - }, - "body": null - }, - "id": "3e6163938ad55cceb9b6fb6b3d4457481e1194d9", - "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, - "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": { - "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": { - "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": { - "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", - "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": null, - "name": null, - "url": "/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": null, - "name": null, - "url": "/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": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "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 - ] - } - }, - "name": null, - "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" - } - } - }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", - "docs": null - } - }, - { - "example": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "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 - ] - } - }, - "name": null, - "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" - } - } - }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", - "docs": null - } - }, - { - "example": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "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 - ] - } - }, - "name": null, - "response": { - "type": "error", - "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" - }, - "body": null - }, - "id": "7719d117aa55b7a0a06be30825cd95761e68b931", - "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, - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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": { - "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:Person": { - "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 - } - }, - "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" - }, - "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": "noProperties" - }, - "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": "noProperties" - }, - "docs": "i am docs" - } - ] - }, - "referencedTypes": [ - "type_imdb:ActorId", - "type_director:Director", - "type_director:Age" - ], - "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": "noProperties" - } - } - }, - "jsonExample": { - "type": "producer" - }, - "docs": null - } - ], - "autogeneratedExamples": [], - "availability": null, - "docs": null - }, - "type_imdb:UnknownRequest": { - "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": { - "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", - "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": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": { - "type": "reference", - "shape": { - "type": "named", - "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" - }, - "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" - }, - "value": { - "shape": { - "type": "unknown", - "unknown": { - "key": "value" - } - }, - "jsonExample": { - "key": "value" - } - }, - "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" - } - } - ] - } - }, - "jsonExample": { - "unknown": { - "key": "value" - } - } - }, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - } - } - }, - "id": "a16b5fde1f41adf2cb5c8aef09c71491b1782ac3", - "docs": null - } - }, - { - "example": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": { - "type": "reference", - "shape": { - "type": "named", - "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" - }, - "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" - }, - "value": { - "shape": { - "type": "unknown", - "unknown": { - "key": "value" - } - }, - "jsonExample": { - "key": "value" - } - }, - "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" - } - } - ] - } - }, - "jsonExample": { - "unknown": { - "key": "value" - } - } - }, - "name": null, - "response": { - "type": "error", - "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" - }, - "body": null - }, - "id": "3e6163938ad55cceb9b6fb6b3d4457481e1194d9", - "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", - "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": null, - "name": null, - "url": "/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": null, - "name": null, - "url": "/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": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "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 - ] - } - }, - "name": null, - "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" - } - } - }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", - "docs": null - } - }, - { - "example": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "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 - ] - } - }, - "name": null, - "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" - } - } - }, - "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", - "docs": null - } - }, - { - "example": { - "url": "/test/string/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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "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 - ] - } - }, - "name": null, - "response": { - "type": "error", - "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" - }, - "body": null - }, - "id": "7719d117aa55b7a0a06be30825cd95761e68b931", - "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", - "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": null, - "name": null, - "url": "/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" - } - } - ], - "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": null, - "name": null, - "url": "/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" - } - } - ], - "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": { - "url": "/test/string/movies/id1", - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "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": { - "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", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "id1" - } - } - }, - "jsonExample": "id1" - } - } - }, - "jsonExample": "id1" - } - } - ], - "serviceHeaders": [], - "endpointHeaders": [], - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "request": null, - "name": 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 - } - } - } - }, - "id": "c31d0a00f664df9938064fde5ab39352e548bd05", - "docs": null - } - }, - { - "example": { - "url": "/test/string/movies/id1", - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "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": { - "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", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "id1" - } - } - }, - "jsonExample": "id1" - } - } - }, - "jsonExample": "id1" - } - } - ], - "serviceHeaders": [], - "endpointHeaders": [], - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "shape": { - "type": "named", - "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" - }, - "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 - } - } - } - }, - "id": "1be4f34f8b77401ebd38f067fb5e87c0c4053a6e", - "docs": null - } - }, - { - "example": { - "url": "/test/string/movies/id1", - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "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": { - "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", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "id1" - } - } - }, - "jsonExample": "id1" - } - } - }, - "jsonExample": "id1" - } - } - ], - "serviceHeaders": [], - "endpointHeaders": [], - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "request": null, - "name": 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": null - }, - "id": "b1abc4b36c6b66836558d64000446b6bb9f3a8bd", - "docs": null - } - }, - { - "example": { - "url": "/test/string/movies/id1", - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "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": { - "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", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "id1" - } - } - }, - "jsonExample": "id1" - } - } - }, - "jsonExample": "id1" - } - } - ], - "serviceHeaders": [], - "endpointHeaders": [], - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "request": null, - "name": null, - "response": { - "type": "error", - "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" - }, - "body": null - }, - "id": "0a1b7d4c2ef7232675d53dd288caf70cdd8fbb23", - "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", - "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": { - "url": "/test/string/movies/id1", - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "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": { - "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", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "id1" - } - } - }, - "jsonExample": "id1" - } - } - }, - "jsonExample": "id1" - } - } - ], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "bce9a848a5f585213943006d1ff84e3ee794eb7b", - "docs": null - } - }, - { - "example": { - "url": "/test/string/movies/id1", - "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": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "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": { - "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", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "id1" - } - } - }, - "jsonExample": "id1" - } - } - }, - "jsonExample": "id1" - } - } - ], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "error", - "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" - }, - "body": null - }, - "id": "d3b0bcb695d15a97459cd0cbff875b2c73a87657", - "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:Person", - "type_imdb:RecursiveType" - ] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": 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: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", - "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": [ - { - "example": { - "url": "/movies/streaming", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "stream", - "value": [ - { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - }, - { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - } - ] - } - }, - "id": "28aec953dfec1f2528cfffd051a0dd52a94babf7", - "docs": null - } - } - ], - "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", - "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 - } - }, - "docs": null - } - ], - "extra-properties": false, - "extendedProperties": [] - }, - "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": [ - { - "example": { - "url": "/movies/maybe-streaming", - "rootPathParameters": [], - "servicePathParameters": [], - "endpointPathParameters": [], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": { - "type": "inlinedRequestBody", - "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" - }, - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "boolean", - "boolean": true - } - }, - "jsonExample": true - }, - "originalTypeDeclaration": null - } - ], - "jsonExample": { - "stream": true - } - }, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "stream", - "value": [ - { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - }, - { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - } - ] - } - }, - "id": "971e543e8647d0710fbcc981703bc932529d4af9", - "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": {}, - "sharedTypes": [] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": 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 - } - } -}" -`; - -exports[`ir {"name":"variables"} 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": { - "type_commons:StringAlias": { - "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": "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: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": [], - "autogeneratedExamples": [], - "availability": null, - "docs": null - } - }, - "errors": {}, - "services": { - "service_service": { - "availability": null, - "name": { - "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" - } - } - } - }, - "displayName": null, - "basePath": { - "head": "/movies", - "parts": [] - }, - "headers": [], - "pathParameters": [], - "encoding": { - "json": {}, - "proto": null - }, - "transport": { - "type": "http" - }, - "endpoints": [ - { - "id": "endpoint_service.test", - "name": { - "originalName": "test", - "camelCase": { - "unsafeName": "test", - "safeName": "test" - }, - "snakeCase": { - "unsafeName": "test", - "safeName": "test" - }, - "screamingSnakeCase": { - "unsafeName": "TEST", - "safeName": "TEST" - }, - "pascalCase": { - "unsafeName": "Test", - "safeName": "Test" - } - }, - "displayName": null, - "auth": false, - "idempotent": false, - "baseUrl": null, - "method": "POST", - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "foo", - "tail": "" - } - ] - }, - "fullPath": { - "head": "/", - "parts": [ - { - "pathParameter": "root", - "tail": "/movies/" - }, - { - "pathParameter": "foo", - "tail": "" - } - ] - }, - "pathParameters": [ - { - "name": { - "originalName": "foo", - "camelCase": { - "unsafeName": "foo", - "safeName": "foo" - }, - "snakeCase": { - "unsafeName": "foo", - "safeName": "foo" - }, - "screamingSnakeCase": { - "unsafeName": "FOO", - "safeName": "FOO" - }, - "pascalCase": { - "unsafeName": "Foo", - "safeName": "Foo" - } - }, - "valueType": { - "_type": "named", - "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": "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:StringAlias", - "default": null, - "inline": null - }, - "location": "ENDPOINT", - "variable": "my-variable", - "docs": null - } - ], - "allPathParameters": [ - { - "name": { - "originalName": "root", - "camelCase": { - "unsafeName": "root", - "safeName": "root" - }, - "snakeCase": { - "unsafeName": "root", - "safeName": "root" - }, - "screamingSnakeCase": { - "unsafeName": "ROOT", - "safeName": "ROOT" - }, - "pascalCase": { - "unsafeName": "Root", - "safeName": "Root" - } - }, - "valueType": { - "_type": "named", - "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": "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:StringAlias", - "default": null, - "inline": null - }, - "location": "ROOT", - "variable": "my-variable", - "docs": null - }, - { - "name": { - "originalName": "foo", - "camelCase": { - "unsafeName": "foo", - "safeName": "foo" - }, - "snakeCase": { - "unsafeName": "foo", - "safeName": "foo" - }, - "screamingSnakeCase": { - "unsafeName": "FOO", - "safeName": "FOO" - }, - "pascalCase": { - "unsafeName": "Foo", - "safeName": "Foo" - } - }, - "valueType": { - "_type": "named", - "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": "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:StringAlias", - "default": null, - "inline": null - }, - "location": "ENDPOINT", - "variable": "my-variable", - "docs": null - } - ], - "queryParameters": [], - "headers": [], - "requestBody": null, - "sdkRequest": null, - "response": { - "body": null, - "status-code": null - }, - "errors": [], - "userSpecifiedExamples": [], - "autogeneratedExamples": [ - { - "example": { - "url": "/string/movies/string", - "rootPathParameters": [ - { - "name": { - "originalName": "root", - "camelCase": { - "unsafeName": "root", - "safeName": "root" - }, - "snakeCase": { - "unsafeName": "root", - "safeName": "root" - }, - "screamingSnakeCase": { - "unsafeName": "ROOT", - "safeName": "ROOT" - }, - "pascalCase": { - "unsafeName": "Root", - "safeName": "Root" - } - }, - "value": { - "shape": { - "type": "named", - "typeName": { - "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": "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:StringAlias" - }, - "shape": { - "type": "alias", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "servicePathParameters": [], - "endpointPathParameters": [ - { - "name": { - "originalName": "foo", - "camelCase": { - "unsafeName": "foo", - "safeName": "foo" - }, - "snakeCase": { - "unsafeName": "foo", - "safeName": "foo" - }, - "screamingSnakeCase": { - "unsafeName": "FOO", - "safeName": "FOO" - }, - "pascalCase": { - "unsafeName": "Foo", - "safeName": "Foo" - } - }, - "value": { - "shape": { - "type": "named", - "typeName": { - "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": "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:StringAlias" - }, - "shape": { - "type": "alias", - "value": { - "shape": { - "type": "primitive", - "primitive": { - "type": "string", - "string": { - "original": "string" - } - } - }, - "jsonExample": "string" - } - } - }, - "jsonExample": "string" - } - } - ], - "serviceHeaders": [], - "endpointHeaders": [], - "queryParameters": [], - "request": null, - "name": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null - } - }, - "id": "382cb8d2bcec5a9757159c7febf6c28785994c8d", - "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": { - "head": "/", - "parts": [ - { - "pathParameter": "root", - "tail": "" - } - ] - }, - "pathParameters": [ - { - "name": { - "originalName": "root", - "camelCase": { - "unsafeName": "root", - "safeName": "root" - }, - "snakeCase": { - "unsafeName": "root", - "safeName": "root" - }, - "screamingSnakeCase": { - "unsafeName": "ROOT", - "safeName": "ROOT" - }, - "pascalCase": { - "unsafeName": "Root", - "safeName": "Root" - } - }, - "valueType": { - "_type": "named", - "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": "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:StringAlias", - "default": null, - "inline": null - }, - "location": "ROOT", - "variable": "my-variable", - "docs": null - } - ], - "variables": [ - { - "id": "my-variable", - "name": { - "originalName": "my-variable", - "camelCase": { - "unsafeName": "myVariable", - "safeName": "myVariable" - }, - "snakeCase": { - "unsafeName": "my_variable", - "safeName": "my_variable" - }, - "screamingSnakeCase": { - "unsafeName": "MY_VARIABLE", - "safeName": "MY_VARIABLE" - }, - "pascalCase": { - "unsafeName": "MyVariable", - "safeName": "MyVariable" - } - }, - "type": { - "_type": "named", - "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": "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:StringAlias", - "default": null, - "inline": null - }, - "docs": "I am a variable" - } - ], - "serviceTypeReferenceInfo": { - "typesReferencedOnlyByService": { - "service_service": [ - "type_commons:StringAlias" - ] - }, - "sharedTypes": [] - }, - "webhookGroups": {}, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": 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:StringAlias" - ], - "errors": [], - "subpackages": [], - "navigationConfig": null, - "webhooks": null, - "websocket": null, - "hasEndpointsInTree": false, - "docs": null - }, - "subpackage_service": { - "name": { - "originalName": "service", - "camelCase": { - "unsafeName": "service", - "safeName": "service" - }, - "snakeCase": { - "unsafeName": "service", - "safeName": "service" - }, - "screamingSnakeCase": { - "unsafeName": "SERVICE", - "safeName": "SERVICE" - }, - "pascalCase": { - "unsafeName": "Service", - "safeName": "Service" - } - }, - "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" - } - } - }, - "service": "service_service", - "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_commons", - "subpackage_service" - ], - "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":"webhooks"} 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": { - "webhooks_webhooks": [ - { - "id": "webhooks_webhooks.sendNotification", - "displayName": null, - "method": "POST", - "name": { - "originalName": "sendNotification", - "camelCase": { - "unsafeName": "sendNotification", - "safeName": "sendNotification" - }, - "snakeCase": { - "unsafeName": "send_notification", - "safeName": "send_notification" - }, - "screamingSnakeCase": { - "unsafeName": "SEND_NOTIFICATION", - "safeName": "SEND_NOTIFICATION" - }, - "pascalCase": { - "unsafeName": "SendNotification", - "safeName": "SendNotification" - } - }, - "headers": [], - "payload": { - "type": "inlinedPayload", - "name": { - "originalName": "NotificationPayload", - "camelCase": { - "unsafeName": "notificationPayload", - "safeName": "notificationPayload" - }, - "snakeCase": { - "unsafeName": "notification_payload", - "safeName": "notification_payload" - }, - "screamingSnakeCase": { - "unsafeName": "NOTIFICATION_PAYLOAD", - "safeName": "NOTIFICATION_PAYLOAD" - }, - "pascalCase": { - "unsafeName": "NotificationPayload", - "safeName": "NotificationPayload" - } - }, - "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 - } - } - }, - "docs": null - }, - { - "name": { - "name": { - "originalName": "urgent", - "camelCase": { - "unsafeName": "urgent", - "safeName": "urgent" - }, - "snakeCase": { - "unsafeName": "urgent", - "safeName": "urgent" - }, - "screamingSnakeCase": { - "unsafeName": "URGENT", - "safeName": "URGENT" - }, - "pascalCase": { - "unsafeName": "Urgent", - "safeName": "Urgent" - } - }, - "wireValue": "urgent" - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "BOOLEAN", - "v2": null - } - }, - "docs": "Some docs about urgency" - } - ] - }, - "examples": null, - "availability": null, - "docs": "This is a webhook to receive notifications." - } - ] - }, - "websocketChannels": {}, - "readmeConfig": null, - "sourceConfig": null, - "subpackages": { - "subpackage_webhooks": { - "name": { - "originalName": "webhooks", - "camelCase": { - "unsafeName": "webhooks", - "safeName": "webhooks" - }, - "snakeCase": { - "unsafeName": "webhooks", - "safeName": "webhooks" - }, - "screamingSnakeCase": { - "unsafeName": "WEBHOOKS", - "safeName": "WEBHOOKS" - }, - "pascalCase": { - "unsafeName": "Webhooks", - "safeName": "Webhooks" - } - }, - "fernFilepath": { - "allParts": [ - { - "originalName": "webhooks", - "camelCase": { - "unsafeName": "webhooks", - "safeName": "webhooks" - }, - "snakeCase": { - "unsafeName": "webhooks", - "safeName": "webhooks" - }, - "screamingSnakeCase": { - "unsafeName": "WEBHOOKS", - "safeName": "WEBHOOKS" - }, - "pascalCase": { - "unsafeName": "Webhooks", - "safeName": "Webhooks" - } - } - ], - "packagePath": [], - "file": { - "originalName": "webhooks", - "camelCase": { - "unsafeName": "webhooks", - "safeName": "webhooks" - }, - "snakeCase": { - "unsafeName": "webhooks", - "safeName": "webhooks" - }, - "screamingSnakeCase": { - "unsafeName": "WEBHOOKS", - "safeName": "WEBHOOKS" - }, - "pascalCase": { - "unsafeName": "Webhooks", - "safeName": "Webhooks" - } - } - }, - "service": null, - "types": [], - "errors": [], - "subpackages": [], - "navigationConfig": null, - "webhooks": "webhooks_webhooks", - "websocket": null, - "hasEndpointsInTree": false, - "docs": null - } - }, - "rootPackage": { - "fernFilepath": { - "allParts": [], - "packagePath": [], - "file": null - }, - "websocket": null, - "service": null, - "types": [], - "errors": [], - "subpackages": [ - "subpackage_webhooks" - ], - "webhooks": null, - "navigationConfig": null, - "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 - } - } -}" -`; diff --git a/packages/cli/ete-tests/src/tests/update-api-unioned/__snapshots__/update-api.test.ts.snap b/packages/cli/ete-tests/src/tests/update-api-unioned/__snapshots__/update-api.test.ts.snap index a571aa67a70..1a7f41a12f6 100644 --- a/packages/cli/ete-tests/src/tests/update-api-unioned/__snapshots__/update-api.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/update-api-unioned/__snapshots__/update-api.test.ts.snap @@ -795,799 +795,3 @@ api: }, ] `; - -exports[`fern api update unioned fern api update unioned 1`] = ` -[ - { - "contents": "default-group: local -api: - path: ./openapi.json - origin: https://bump.sh/bump-examples/doc/train-travel-api.json -", - "name": "generators.yml", - "type": "file", - }, - { - "contents": "{ - "info": { - "contact": { - "name": "Train Support", - "url": "https://example.com/support", - "email": "support@example.com" - }, - "license": { - "name": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", - "identifier": "CC-BY-NC-SA-4.0" - } - }, - "servers": [ - { - "url": "https://api.example.com", - "description": "Production" - } - ], - "security": [ - { - "OAuth2": [ - "read" - ] - } - ], - "x-topics": [ - { - "title": "Getting started", - "content": { - "$ref": "./docs/getting-started.md" - } - } - ], - "tags": [ - { - "name": "Stations", - "description": "Find and filter train stations across Europe, including their location\\nand local timezone.\\n" - }, - { - "name": "Train Tracks", - "description": "Find and filter all the different rail roads available across Europe, including their location\\nand local timezone.\\n" - }, - { - "name": "Trips", - "description": "Timetables and routes for train trips between stations, including pricing\\nand availability.\\n" - }, - { - "name": "Bookings", - "description": "Create and manage bookings for train trips, including passenger details\\nand optional extras.\\n" - }, - { - "name": "Payments", - "description": "Pay for bookings using a card or bank account, and view payment\\nstatus and history.\\n\\n> warn\\n> Bookings usually expire within 1 hour so you'll need to make your payment\\n> before the expiry date \\n" - } - ], - "webhooks": { - "newBooking": { - "post": { - "operationId": "new-booking", - "summary": "New Booking", - "description": "Subscribe to new bookings being created, to update integrations for your users. Related data is available via the links provided in the request.\\n", - "tags": [ - "Bookings" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Booking" - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - }, - "example": { - "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "passenger_name": "John Doe", - "has_bicycle": true, - "has_dog": true, - "links": { - "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" - } - } - } - } - }, - "responses": { - "200": { - "description": "Return a 200 status to indicate that the data was received successfully." - } - } - } - } - }, - "components": { - "securitySchemes": { - "OAuth2": { - "type": "oauth2", - "description": "OAuth 2.0 authorization code following RFC8725 best practices.", - "flows": { - "authorizationCode": { - "authorizationUrl": "https://example.com/oauth/authorize", - "tokenUrl": "https://example.com/oauth/token", - "scopes": { - "read": "Read access", - "write": "Write access" - } - } - } - } - }, - "schemas": { - "Station": { - "type": "object", - "xml": { - "name": "station" - }, - "required": [ - "id", - "name", - "address", - "country_code" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the station.", - "examples": [ - "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "b2e783e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "name": { - "type": "string", - "description": "The name of the station", - "examples": [ - "Berlin Hauptbahnhof", - "Paris Gare du Nord" - ] - }, - "address": { - "type": "string", - "description": "The address of the station.", - "examples": [ - "Invalidenstraße 10557 Berlin, Germany", - "18 Rue de Dunkerque 75010 Paris, France" - ] - }, - "country_code": { - "type": "string", - "description": "The country code of the station.", - "format": "iso-country-code", - "examples": [ - "DE", - "FR" - ] - }, - "timezone": { - "type": "string", - "description": "The timezone of the station in the [IANA Time Zone Database format](https://www.iana.org/time-zones).", - "examples": [ - "Europe/Berlin", - "Europe/Paris" - ] - } - } - }, - "Links-Self": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri" - } - } - }, - "Links-Pagination": { - "type": "object", - "properties": { - "next": { - "type": "string", - "format": "uri" - }, - "prev": { - "type": "string", - "format": "uri" - } - } - }, - "Trip": { - "type": "object", - "xml": { - "name": "trip" - }, - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the trip", - "examples": [ - "4f4e4e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "origin": { - "type": "string", - "description": "The starting station of the trip", - "examples": [ - "Berlin Hauptbahnhof", - "Paris Gare du Nord" - ] - }, - "destination": { - "type": "string", - "description": "The destination station of the trip", - "examples": [ - "Paris Gare du Nord", - "Berlin Hauptbahnhof" - ] - }, - "departure_time": { - "type": "string", - "format": "date-time", - "description": "The date and time when the trip departs", - "examples": [ - "2024-02-01T10:00:00Z" - ] - }, - "arrival_time": { - "type": "string", - "format": "date-time", - "description": "The date and time when the trip arrives", - "examples": [ - "2024-02-01T16:00:00Z" - ] - }, - "operator": { - "type": "string", - "description": "The name of the operator of the trip", - "examples": [ - "Deutsche Bahn", - "SNCF" - ] - }, - "price": { - "type": "number", - "description": "The cost of the trip", - "examples": [ - 50 - ] - }, - "bicycles_allowed": { - "type": "boolean", - "description": "Indicates whether bicycles are allowed on the trip" - }, - "dogs_allowed": { - "type": "boolean", - "description": "Indicates whether dogs are allowed on the trip" - } - } - }, - "Booking": { - "type": "object", - "xml": { - "name": "booking" - }, - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the booking", - "readOnly": true, - "examples": [ - "3f3e3e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "trip_id": { - "type": "string", - "format": "uuid", - "description": "Identifier of the booked trip", - "examples": [ - "4f4e4e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "passenger_name": { - "type": "string", - "description": "Name of the passenger", - "examples": [ - "John Doe" - ] - }, - "has_bicycle": { - "type": "boolean", - "description": "Indicates whether the passenger has a bicycle." - }, - "has_dog": { - "type": "boolean", - "description": "Indicates whether the passenger has a dog." - } - } - }, - "Wrapper-Collection": { - "description": "This is a generic request/response wrapper which contains both data and links which serve as hypermedia controls (HATEOAS).", - "type": "object", - "properties": { - "data": { - "description": "The wrapper for a collection is an array of objects.", - "type": "array", - "items": { - "type": "object" - } - }, - "links": { - "description": "A set of hypermedia links which serve as controls for the client.", - "type": "object", - "readOnly": true - } - }, - "xml": { - "name": "data" - } - }, - "BookingPayment": { - "type": "object", - "properties": { - "id": { - "description": "Unique identifier for the payment. This will be a unique identifier for the payment, and is used to reference the payment in other objects.", - "type": "string", - "format": "uuid", - "readOnly": true - }, - "amount": { - "description": "Amount intended to be collected by this payment. A positive decimal figure describing the amount to be collected.", - "type": "number", - "exclusiveMinimum": 0, - "examples": [ - 49.99 - ] - }, - "currency": { - "description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.", - "type": "string", - "enum": [ - "bam", - "bgn", - "chf", - "eur", - "gbp", - "nok", - "sek", - "try" - ] - }, - "source": { - "unevaluatedProperties": false, - "description": "The payment source to take the payment from. This can be a card or a bank account. Some of these properties will be hidden on read to protect PII leaking.", - "anyOf": [ - { - "title": "Card", - "description": "A card (debit or credit) to take payment from.", - "properties": { - "object": { - "type": "string", - "const": "card" - }, - "name": { - "type": "string", - "description": "Cardholder's full name as it appears on the card.", - "examples": [ - "Francis Bourgeois" - ] - }, - "number": { - "type": "string", - "description": "The card number, as a string without any separators. On read all but the last four digits will be masked for security.", - "examples": [ - "4242424242424242" - ] - }, - "cvc": { - "type": "integer", - "description": "Card security code, 3 or 4 digits usually found on the back of the card.", - "minLength": 3, - "maxLength": 4, - "writeOnly": true, - "example": 123 - }, - "exp_month": { - "type": "integer", - "format": "int64", - "description": "Two-digit number representing the card's expiration month.", - "examples": [ - 12 - ] - }, - "exp_year": { - "type": "integer", - "format": "int64", - "description": "Four-digit number representing the card's expiration year.", - "examples": [ - 2025 - ] - }, - "address_line1": { - "type": "string", - "writeOnly": true - }, - "address_line2": { - "type": "string", - "writeOnly": true - }, - "address_city": { - "type": "string" - }, - "address_country": { - "type": "string" - }, - "address_post_code": { - "type": "string" - } - }, - "required": [ - "name", - "number", - "cvc", - "exp_month", - "exp_year", - "address_country" - ] - }, - { - "title": "Bank Account", - "description": "A bank account to take payment from. Must be able to make payments in the currency specified in the payment.", - "type": "object", - "properties": { - "object": { - "const": "bank_account", - "type": "string" - }, - "name": { - "type": "string" - }, - "number": { - "type": "string", - "description": "The account number for the bank account, in string form. Must be a current account." - }, - "sort_code": { - "type": "string", - "description": "The sort code for the bank account, in string form. Must be a six-digit number." - }, - "account_type": { - "enum": [ - "individual", - "company" - ], - "type": "string", - "description": "The type of entity that holds the account. This can be either \`individual\` or \`company\`." - }, - "bank_name": { - "type": "string", - "description": "The name of the bank associated with the routing number.", - "examples": [ - "Starling Bank" - ] - }, - "country": { - "type": "string", - "description": "Two-letter country code (ISO 3166-1 alpha-2)." - } - }, - "required": [ - "name", - "number", - "account_type", - "bank_name", - "country" - ] - } - ] - }, - "status": { - "description": "The status of the payment, one of \`pending\`, \`succeeded\`, or \`failed\`.", - "type": "string", - "enum": [ - "pending", - "succeeded", - "failed" - ], - "readOnly": true - } - } - }, - "Links-Booking": { - "type": "object", - "properties": { - "booking": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" - ] - } - } - } - }, - "headers": { - "RateLimit": { - "description": "The RateLimit header communicates quota policies. It contains a \`limit\` to\\nconvey the expiring limit, \`remaining\` to convey the remaining quota units,\\nand \`reset\` to convey the time window reset time.\\n", - "schema": { - "type": "string", - "examples": [ - "limit=10, remaining=0, reset=10" - ] - } - }, - "Retry-After": { - "description": "The Retry-After header indicates how long the user agent should wait before making a follow-up request. \\nThe value is in seconds and can be an integer or a date in the future. \\nIf the value is an integer, it indicates the number of seconds to wait. \\nIf the value is a date, it indicates the time at which the user agent should make a follow-up request. \\n", - "schema": { - "type": "string" - }, - "examples": { - "integer": { - "value": "120", - "summary": "Retry after 120 seconds" - }, - "date": { - "value": "Fri, 31 Dec 2021 23:59:59 GMT", - "summary": "Retry after the specified date" - } - } - } - }, - "responses": { - "BadRequest": { - "description": "Bad Request", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/bad-request", - "title": "Bad Request", - "status": 400, - "detail": "The request is invalid or missing required parameters." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/bad-request", - "title": "Bad Request", - "status": 400, - "detail": "The request is invalid or missing required parameters." - } - } - } - }, - "Conflict": { - "description": "Conflict", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/conflict", - "title": "Conflict", - "status": 409, - "detail": "There is a conflict with an existing resource." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/conflict", - "title": "Conflict", - "status": 409, - "detail": "There is a conflict with an existing resource." - } - } - } - }, - "Forbidden": { - "description": "Forbidden", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/forbidden", - "title": "Forbidden", - "status": 403, - "detail": "Access is forbidden with the provided credentials." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/forbidden", - "title": "Forbidden", - "status": 403, - "detail": "Access is forbidden with the provided credentials." - } - } - } - }, - "InternalServerError": { - "description": "Internal Server Error", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/internal-server-error", - "title": "Internal Server Error", - "status": 500, - "detail": "An unexpected error occurred." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/internal-server-error", - "title": "Internal Server Error", - "status": 500, - "detail": "An unexpected error occurred." - } - } - } - }, - "NotFound": { - "description": "Not Found", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/not-found", - "title": "Not Found", - "status": 404, - "detail": "The requested resource was not found." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/not-found", - "title": "Not Found", - "status": 404, - "detail": "The requested resource was not found." - } - } - } - }, - "TooManyRequests": { - "description": "Too Many Requests", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "Retry-After": { - "$ref": "#/components/headers/Retry-After" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/too-many-requests", - "title": "Too Many Requests", - "status": 429, - "detail": "You have exceeded the rate limit." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/too-many-requests", - "title": "Too Many Requests", - "status": 429, - "detail": "You have exceeded the rate limit." - } - } - } - }, - "Unauthorized": { - "description": "Unauthorized", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/unauthorized", - "title": "Unauthorized", - "status": 401, - "detail": "You do not have the necessary permissions." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/unauthorized", - "title": "Unauthorized", - "status": 401, - "detail": "You do not have the necessary permissions." - } - } - } - } - } - } -}", - "name": "openapi.json", - "type": "file", - }, -] -`; diff --git a/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap b/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap index 56263f67e44..12305d53872 100644 --- a/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap @@ -1661,1665 +1661,3 @@ exports[`fern api update > fern api update 1`] = ` }, ] `; - -exports[`fern api update fern api update 1`] = ` -[ - { - "contents": "{ - "openapi": "3.1.0", - "info": { - "title": "Train Travel API", - "description": "API for finding and booking train trips across Europe.\\n\\n## Run in Postman\\n\\nExperiment with this API in Postman, using our Postman Collection.\\n\\n[\\"Run](https://app.getpostman.com/run-collection/9265903-7a75a0d0-b108-4436-ba54-c6139698dc08?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D9265903-7a75a0d0-b108-4436-ba54-c6139698dc08%26entityType%3Dcollection%26workspaceId%3Df507f69d-9564-419c-89a2-cb8e4c8c7b8f)\\n\\n## Run in Insomnia\\n\\nExperiment with this API in Insomnia, using our Insomnia Collection.\\n\\n[![Run in Insomnia}](https://insomnia.rest/images/run.svg)](https://insomnia.rest/run/?label=Train%20Travel%20API&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fbump-sh-examples%2Ftrain-travel-api%2Fmain%2Finsomnia%2FInsomnia_2024-05-27.json)\\n", - "version": "1.0.0", - "contact": { - "name": "Train Support", - "url": "https://example.com/support", - "email": "support@example.com" - }, - "license": { - "name": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", - "identifier": "CC-BY-NC-SA-4.0" - } - }, - "servers": [ - { - "url": "https://api.example.com", - "description": "Production" - } - ], - "security": [ - { - "OAuth2": [ - "read" - ] - } - ], - "x-topics": [ - { - "title": "Getting started", - "content": { - "$ref": "./docs/getting-started.md" - } - } - ], - "tags": [ - { - "name": "Stations", - "description": "Find and filter train stations across Europe, including their location\\nand local timezone.\\n" - }, - { - "name": "Trips", - "description": "Timetables and routes for train trips between stations, including pricing\\nand availability.\\n" - }, - { - "name": "Bookings", - "description": "Create and manage bookings for train trips, including passenger details\\nand optional extras.\\n" - }, - { - "name": "Payments", - "description": "Pay for bookings using a card or bank account, and view payment\\nstatus and history.\\n\\n> warn\\n> Bookings usually expire within 1 hour so you'll need to make your payment\\n> before the expiry date \\n" - } - ], - "paths": { - "/stations": { - "get": { - "summary": "Get a list of train stations", - "description": "Returns a list of all train stations in the system.", - "operationId": "get-stations", - "tags": [ - "Stations" - ], - "responses": { - "200": { - "description": "A list of train stations", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Wrapper-Collection" - }, - { - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Station" - } - } - } - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - }, - "example": { - "data": [ - { - "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "name": "Berlin Hauptbahnhof", - "address": "Invalidenstraße 10557 Berlin, Germany", - "country_code": "DE", - "timezone": "Europe/Berlin" - }, - { - "id": "b2e783e1-c824-4d63-b37a-d8d698862f1d", - "name": "Paris Gare du Nord", - "address": "18 Rue de Dunkerque 75010 Paris, France", - "country_code": "FR", - "timezone": "Europe/Paris" - } - ], - "links": { - "self": "https://api.example.com/stations&page=2", - "next": "https://api.example.com/stations?page=3", - "prev": "https://api.example.com/stations?page=1" - } - } - }, - "application/xml": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Wrapper-Collection" - }, - { - "properties": { - "data": { - "type": "array", - "xml": { - "name": "stations", - "wrapped": true - }, - "items": { - "$ref": "#/components/schemas/Station" - } - } - } - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/Unauthorized" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalServerError" - } - } - } - }, - "/trips": { - "get": { - "summary": "Get available train trips", - "description": "Returns a list of available train trips between the specified origin and destination stations on the given date, and allows for filtering by bicycle and dog allowances.", - "operationId": "get-trips", - "tags": [ - "Trips" - ], - "parameters": [ - { - "name": "origin", - "in": "query", - "description": "The ID of the origin station", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "example": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e" - }, - { - "name": "destination", - "in": "query", - "description": "The ID of the destination station", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "example": "b2e783e1-c824-4d63-b37a-d8d698862f1d" - }, - { - "name": "date", - "in": "query", - "description": "The date and time of the trip in ISO 8601 format in origin station's timezone.", - "required": true, - "schema": { - "type": "string", - "format": "date-time" - }, - "example": "2024-02-01T09:00:00Z" - }, - { - "name": "bicycles", - "in": "query", - "description": "Only return trips where bicycles are known to be allowed", - "required": false, - "schema": { - "type": "boolean", - "default": false - } - }, - { - "name": "dogs", - "in": "query", - "description": "Only return trips where dogs are known to be allowed", - "required": false, - "schema": { - "type": "boolean", - "default": false - } - } - ], - "responses": { - "200": { - "description": "A list of available train trips", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Wrapper-Collection" - }, - { - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Trip" - } - } - } - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - }, - "example": { - "data": [ - { - "id": "ea399ba1-6d95-433f-92d1-83f67b775594", - "origin": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "destination": "b2e783e1-c824-4d63-b37a-d8d698862f1d", - "departure_time": "2024-02-01T10:00:00Z", - "arrival_time": "2024-02-01T16:00:00Z", - "price": 50, - "operator": "Deutsche Bahn", - "bicycles_allowed": true, - "dogs_allowed": true - }, - { - "id": "4d67459c-af07-40bb-bb12-178dbb88e09f", - "origin": "b2e783e1-c824-4d63-b37a-d8d698862f1d", - "destination": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "departure_time": "2024-02-01T12:00:00Z", - "arrival_time": "2024-02-01T18:00:00Z", - "price": 50, - "operator": "SNCF", - "bicycles_allowed": true, - "dogs_allowed": true - } - ], - "links": { - "self": "https://api.example.com/trips?origin=efdbb9d1-02c2-4bc3-afb7-6788d8782b1e&destination=b2e783e1-c824-4d63-b37a-d8d698862f1d&date=2024-02-01", - "next": "https://api.example.com/trips?origin=efdbb9d1-02c2-4bc3-afb7-6788d8782b1e&destination=b2e783e1-c824-4d63-b37a-d8d698862f1d&date=2024-02-01&page=2" - } - } - }, - "application/xml": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Wrapper-Collection" - }, - { - "properties": { - "data": { - "type": "array", - "xml": { - "name": "trips", - "wrapped": true - }, - "items": { - "$ref": "#/components/schemas/Trip" - } - } - } - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/Unauthorized" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalServerError" - } - } - } - }, - "/bookings": { - "get": { - "operationId": "get-bookings", - "summary": "List existing bookings", - "description": "Returns a list of all trip bookings by the authenticated user.", - "tags": [ - "Bookings" - ], - "responses": { - "200": { - "description": "A list of bookings", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Wrapper-Collection" - }, - { - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Booking" - } - } - } - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - }, - "example": { - "data": [ - { - "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "passenger_name": "John Doe", - "has_bicycle": true, - "has_dog": true - }, - { - "id": "b2e783e1-c824-4d63-b37a-d8d698862f1d", - "trip_id": "b2e783e1-c824-4d63-b37a-d8d698862f1d", - "passenger_name": "Jane Smith", - "has_bicycle": false, - "has_dog": false - } - ], - "links": { - "self": "https://api.example.com/bookings", - "next": "https://api.example.com/bookings?page=2" - } - } - }, - "application/xml": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Wrapper-Collection" - }, - { - "properties": { - "data": { - "type": "array", - "xml": { - "name": "bookings", - "wrapped": true - }, - "items": { - "$ref": "#/components/schemas/Booking" - } - } - } - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/Unauthorized" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalServerError" - } - } - }, - "post": { - "operationId": "create-booking", - "summary": "Create a booking", - "description": "A booking is a temporary hold on a trip. It is not confirmed until the payment is processed.", - "tags": [ - "Bookings" - ], - "security": [ - { - "OAuth2": [ - "write" - ] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Booking" - } - }, - "application/xml": { - "schema": { - "$ref": "#/components/schemas/Booking" - } - } - } - }, - "responses": { - "201": { - "description": "Booking successful", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Booking" - }, - { - "properties": { - "links": { - "$ref": "#/components/schemas/Links-Self" - } - } - } - ] - }, - "example": { - "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "passenger_name": "John Doe", - "has_bicycle": true, - "has_dog": true, - "links": { - "self": "https://api.example.com/bookings/efdbb9d1-02c2-4bc3-afb7-6788d8782b1e" - } - } - }, - "application/xml": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Booking" - }, - { - "properties": { - "links": { - "$ref": "#/components/schemas/Links-Self" - } - } - } - ] - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/Unauthorized" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "409": { - "$ref": "#/components/responses/Conflict" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalServerError" - } - } - } - }, - "/bookings/{bookingId}": { - "parameters": [ - { - "name": "bookingId", - "in": "path", - "required": true, - "description": "The ID of the booking to retrieve.", - "schema": { - "type": "string", - "format": "uuid" - }, - "example": "1725ff48-ab45-4bb5-9d02-88745177dedb" - } - ], - "get": { - "summary": "Get a booking", - "description": "Returns the details of a specific booking.", - "operationId": "get-booking", - "tags": [ - "Bookings" - ], - "responses": { - "200": { - "description": "The booking details", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Booking" - }, - { - "properties": { - "links": { - "$ref": "#/components/schemas/Links-Self" - } - } - } - ] - }, - "example": { - "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "passenger_name": "John Doe", - "has_bicycle": true, - "has_dog": true, - "links": { - "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" - } - } - }, - "application/xml": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Booking" - }, - { - "properties": { - "links": { - "$ref": "#/components/schemas/Links-Self" - } - } - } - ] - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/Unauthorized" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalServerError" - } - } - }, - "delete": { - "summary": "Delete a booking", - "description": "Deletes a booking, cancelling the hold on the trip.", - "operationId": "delete-booking", - "security": [ - { - "OAuth2": [ - "write" - ] - } - ], - "tags": [ - "Bookings" - ], - "responses": { - "204": { - "description": "Booking deleted" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/Unauthorized" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalServerError" - } - } - } - }, - "/bookings/{bookingId}/payment": { - "parameters": [ - { - "name": "bookingId", - "in": "path", - "required": true, - "description": "The ID of the booking to pay for.", - "schema": { - "type": "string", - "format": "uuid" - }, - "example": "1725ff48-ab45-4bb5-9d02-88745177dedb" - } - ], - "post": { - "summary": "Pay for a Booking", - "description": "A payment is an attempt to pay for the booking, which will confirm the booking for the user and enable them to get their tickets.", - "operationId": "create-booking-payment", - "tags": [ - "Payments" - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BookingPayment" - }, - "examples": { - "Card": { - "summary": "Card Payment", - "value": { - "amount": 49.99, - "currency": "gbp", - "source": { - "object": "card", - "name": "J. Doe", - "number": "4242424242424242", - "cvc": 123, - "exp_month": 12, - "exp_year": 2025, - "address_line1": "123 Fake Street", - "address_line2": "4th Floor", - "address_city": "London", - "address_country": "gb", - "address_post_code": "N12 9XX" - } - } - }, - "Bank": { - "summary": "Bank Account Payment", - "value": { - "amount": 100.5, - "currency": "gbp", - "source": { - "object": "bank_account", - "name": "J. Doe", - "number": "00012345", - "sort_code": "000123", - "account_type": "individual", - "bank_name": "Starling Bank", - "country": "gb" - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Payment successful", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BookingPayment" - }, - { - "properties": { - "links": { - "$ref": "#/components/schemas/Links-Booking" - } - } - } - ] - }, - "examples": { - "Card": { - "summary": "Card Payment", - "value": { - "id": "2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a", - "amount": 49.99, - "currency": "gbp", - "source": { - "object": "card", - "name": "J. Doe", - "number": "************4242", - "cvc": 123, - "exp_month": 12, - "exp_year": 2025, - "address_country": "gb", - "address_post_code": "N12 9XX" - }, - "status": "succeeded", - "links": { - "booking": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb/payment" - } - } - }, - "Bank": { - "summary": "Bank Account Payment", - "value": { - "id": "2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a", - "amount": 100.5, - "currency": "gbp", - "source": { - "object": "bank_account", - "name": "J. Doe", - "account_type": "individual", - "number": "*********2345", - "sort_code": "000123", - "bank_name": "Starling Bank", - "country": "gb" - }, - "status": "succeeded", - "links": { - "booking": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" - } - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/Unauthorized" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalServerError" - } - } - } - } - }, - "webhooks": { - "newBooking": { - "post": { - "operationId": "new-booking", - "summary": "New Booking", - "description": "Subscribe to new bookings being created, to update integrations for your users. Related data is available via the links provided in the request.\\n", - "tags": [ - "Bookings" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Booking" - }, - { - "properties": { - "links": { - "allOf": [ - { - "$ref": "#/components/schemas/Links-Self" - }, - { - "$ref": "#/components/schemas/Links-Pagination" - } - ] - } - } - } - ] - }, - "example": { - "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "passenger_name": "John Doe", - "has_bicycle": true, - "has_dog": true, - "links": { - "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" - } - } - } - } - }, - "responses": { - "200": { - "description": "Return a 200 status to indicate that the data was received successfully." - } - } - } - } - }, - "components": { - "securitySchemes": { - "OAuth2": { - "type": "oauth2", - "description": "OAuth 2.0 authorization code following RFC8725 best practices.", - "flows": { - "authorizationCode": { - "authorizationUrl": "https://example.com/oauth/authorize", - "tokenUrl": "https://example.com/oauth/token", - "scopes": { - "read": "Read access", - "write": "Write access" - } - } - } - } - }, - "schemas": { - "Station": { - "type": "object", - "xml": { - "name": "station" - }, - "required": [ - "id", - "name", - "address", - "country_code" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the station.", - "examples": [ - "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", - "b2e783e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "name": { - "type": "string", - "description": "The name of the station", - "examples": [ - "Berlin Hauptbahnhof", - "Paris Gare du Nord" - ] - }, - "address": { - "type": "string", - "description": "The address of the station.", - "examples": [ - "Invalidenstraße 10557 Berlin, Germany", - "18 Rue de Dunkerque 75010 Paris, France" - ] - }, - "country_code": { - "type": "string", - "description": "The country code of the station.", - "format": "iso-country-code", - "examples": [ - "DE", - "FR" - ] - }, - "timezone": { - "type": "string", - "description": "The timezone of the station in the [IANA Time Zone Database format](https://www.iana.org/time-zones).", - "examples": [ - "Europe/Berlin", - "Europe/Paris" - ] - } - } - }, - "Links-Self": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri" - } - } - }, - "Links-Pagination": { - "type": "object", - "properties": { - "next": { - "type": "string", - "format": "uri" - }, - "prev": { - "type": "string", - "format": "uri" - } - } - }, - "Problem": { - "xml": { - "name": "problem", - "namespace": "urn:ietf:rfc:7807" - }, - "properties": { - "type": { - "type": "string", - "description": "A URI reference that identifies the problem type", - "example": "https://example.com/probs/out-of-credit" - }, - "title": { - "type": "string", - "description": "A short, human-readable summary of the problem type", - "example": "You do not have enough credit." - }, - "detail": { - "type": "string", - "description": "A human-readable explanation specific to this occurrence of the problem", - "example": "Your current balance is 30, but that costs 50." - }, - "instance": { - "type": "string", - "description": "A URI reference that identifies the specific occurrence of the problem", - "example": "/account/12345/msgs/abc" - }, - "status": { - "type": "integer", - "description": "The HTTP status code", - "example": 400 - } - } - }, - "Trip": { - "type": "object", - "xml": { - "name": "trip" - }, - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the trip", - "examples": [ - "4f4e4e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "origin": { - "type": "string", - "description": "The starting station of the trip", - "examples": [ - "Berlin Hauptbahnhof", - "Paris Gare du Nord" - ] - }, - "destination": { - "type": "string", - "description": "The destination station of the trip", - "examples": [ - "Paris Gare du Nord", - "Berlin Hauptbahnhof" - ] - }, - "departure_time": { - "type": "string", - "format": "date-time", - "description": "The date and time when the trip departs", - "examples": [ - "2024-02-01T10:00:00Z" - ] - }, - "arrival_time": { - "type": "string", - "format": "date-time", - "description": "The date and time when the trip arrives", - "examples": [ - "2024-02-01T16:00:00Z" - ] - }, - "operator": { - "type": "string", - "description": "The name of the operator of the trip", - "examples": [ - "Deutsche Bahn", - "SNCF" - ] - }, - "price": { - "type": "number", - "description": "The cost of the trip", - "examples": [ - 50 - ] - }, - "bicycles_allowed": { - "type": "boolean", - "description": "Indicates whether bicycles are allowed on the trip" - }, - "dogs_allowed": { - "type": "boolean", - "description": "Indicates whether dogs are allowed on the trip" - } - } - }, - "Booking": { - "type": "object", - "xml": { - "name": "booking" - }, - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the booking", - "readOnly": true, - "examples": [ - "3f3e3e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "trip_id": { - "type": "string", - "format": "uuid", - "description": "Identifier of the booked trip", - "examples": [ - "4f4e4e1-c824-4d63-b37a-d8d698862f1d" - ] - }, - "passenger_name": { - "type": "string", - "description": "Name of the passenger", - "examples": [ - "John Doe" - ] - }, - "has_bicycle": { - "type": "boolean", - "description": "Indicates whether the passenger has a bicycle." - }, - "has_dog": { - "type": "boolean", - "description": "Indicates whether the passenger has a dog." - } - } - }, - "Wrapper-Collection": { - "description": "This is a generic request/response wrapper which contains both data and links which serve as hypermedia controls (HATEOAS).", - "type": "object", - "properties": { - "data": { - "description": "The wrapper for a collection is an array of objects.", - "type": "array", - "items": { - "type": "object" - } - }, - "links": { - "description": "A set of hypermedia links which serve as controls for the client.", - "type": "object", - "readOnly": true - } - }, - "xml": { - "name": "data" - } - }, - "BookingPayment": { - "type": "object", - "properties": { - "id": { - "description": "Unique identifier for the payment. This will be a unique identifier for the payment, and is used to reference the payment in other objects.", - "type": "string", - "format": "uuid", - "readOnly": true - }, - "amount": { - "description": "Amount intended to be collected by this payment. A positive decimal figure describing the amount to be collected.", - "type": "number", - "exclusiveMinimum": 0, - "examples": [ - 49.99 - ] - }, - "currency": { - "description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.", - "type": "string", - "enum": [ - "bam", - "bgn", - "chf", - "eur", - "gbp", - "nok", - "sek", - "try" - ] - }, - "source": { - "unevaluatedProperties": false, - "description": "The payment source to take the payment from. This can be a card or a bank account. Some of these properties will be hidden on read to protect PII leaking.", - "anyOf": [ - { - "title": "Card", - "description": "A card (debit or credit) to take payment from.", - "properties": { - "object": { - "type": "string", - "const": "card" - }, - "name": { - "type": "string", - "description": "Cardholder's full name as it appears on the card.", - "examples": [ - "Francis Bourgeois" - ] - }, - "number": { - "type": "string", - "description": "The card number, as a string without any separators. On read all but the last four digits will be masked for security.", - "examples": [ - "4242424242424242" - ] - }, - "cvc": { - "type": "integer", - "description": "Card security code, 3 or 4 digits usually found on the back of the card.", - "minLength": 3, - "maxLength": 4, - "writeOnly": true, - "example": 123 - }, - "exp_month": { - "type": "integer", - "format": "int64", - "description": "Two-digit number representing the card's expiration month.", - "examples": [ - 12 - ] - }, - "exp_year": { - "type": "integer", - "format": "int64", - "description": "Four-digit number representing the card's expiration year.", - "examples": [ - 2025 - ] - }, - "address_line1": { - "type": "string", - "writeOnly": true - }, - "address_line2": { - "type": "string", - "writeOnly": true - }, - "address_city": { - "type": "string" - }, - "address_country": { - "type": "string" - }, - "address_post_code": { - "type": "string" - } - }, - "required": [ - "name", - "number", - "cvc", - "exp_month", - "exp_year", - "address_country" - ] - }, - { - "title": "Bank Account", - "description": "A bank account to take payment from. Must be able to make payments in the currency specified in the payment.", - "type": "object", - "properties": { - "object": { - "const": "bank_account", - "type": "string" - }, - "name": { - "type": "string" - }, - "number": { - "type": "string", - "description": "The account number for the bank account, in string form. Must be a current account." - }, - "sort_code": { - "type": "string", - "description": "The sort code for the bank account, in string form. Must be a six-digit number." - }, - "account_type": { - "enum": [ - "individual", - "company" - ], - "type": "string", - "description": "The type of entity that holds the account. This can be either \`individual\` or \`company\`." - }, - "bank_name": { - "type": "string", - "description": "The name of the bank associated with the routing number.", - "examples": [ - "Starling Bank" - ] - }, - "country": { - "type": "string", - "description": "Two-letter country code (ISO 3166-1 alpha-2)." - } - }, - "required": [ - "name", - "number", - "account_type", - "bank_name", - "country" - ] - } - ] - }, - "status": { - "description": "The status of the payment, one of \`pending\`, \`succeeded\`, or \`failed\`.", - "type": "string", - "enum": [ - "pending", - "succeeded", - "failed" - ], - "readOnly": true - } - } - }, - "Links-Booking": { - "type": "object", - "properties": { - "booking": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" - ] - } - } - } - }, - "headers": { - "RateLimit": { - "description": "The RateLimit header communicates quota policies. It contains a \`limit\` to\\nconvey the expiring limit, \`remaining\` to convey the remaining quota units,\\nand \`reset\` to convey the time window reset time.\\n", - "schema": { - "type": "string", - "examples": [ - "limit=10, remaining=0, reset=10" - ] - } - }, - "Retry-After": { - "description": "The Retry-After header indicates how long the user agent should wait before making a follow-up request. \\nThe value is in seconds and can be an integer or a date in the future. \\nIf the value is an integer, it indicates the number of seconds to wait. \\nIf the value is a date, it indicates the time at which the user agent should make a follow-up request. \\n", - "schema": { - "type": "string" - }, - "examples": { - "integer": { - "value": "120", - "summary": "Retry after 120 seconds" - }, - "date": { - "value": "Fri, 31 Dec 2021 23:59:59 GMT", - "summary": "Retry after the specified date" - } - } - } - }, - "responses": { - "BadRequest": { - "description": "Bad Request", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/bad-request", - "title": "Bad Request", - "status": 400, - "detail": "The request is invalid or missing required parameters." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/bad-request", - "title": "Bad Request", - "status": 400, - "detail": "The request is invalid or missing required parameters." - } - } - } - }, - "Conflict": { - "description": "Conflict", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/conflict", - "title": "Conflict", - "status": 409, - "detail": "There is a conflict with an existing resource." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/conflict", - "title": "Conflict", - "status": 409, - "detail": "There is a conflict with an existing resource." - } - } - } - }, - "Forbidden": { - "description": "Forbidden", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/forbidden", - "title": "Forbidden", - "status": 403, - "detail": "Access is forbidden with the provided credentials." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/forbidden", - "title": "Forbidden", - "status": 403, - "detail": "Access is forbidden with the provided credentials." - } - } - } - }, - "InternalServerError": { - "description": "Internal Server Error", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/internal-server-error", - "title": "Internal Server Error", - "status": 500, - "detail": "An unexpected error occurred." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/internal-server-error", - "title": "Internal Server Error", - "status": 500, - "detail": "An unexpected error occurred." - } - } - } - }, - "NotFound": { - "description": "Not Found", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/not-found", - "title": "Not Found", - "status": 404, - "detail": "The requested resource was not found." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/not-found", - "title": "Not Found", - "status": 404, - "detail": "The requested resource was not found." - } - } - } - }, - "TooManyRequests": { - "description": "Too Many Requests", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - }, - "Retry-After": { - "$ref": "#/components/headers/Retry-After" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/too-many-requests", - "title": "Too Many Requests", - "status": 429, - "detail": "You have exceeded the rate limit." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/too-many-requests", - "title": "Too Many Requests", - "status": 429, - "detail": "You have exceeded the rate limit." - } - } - } - }, - "Unauthorized": { - "description": "Unauthorized", - "headers": { - "RateLimit": { - "$ref": "#/components/headers/RateLimit" - } - }, - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/unauthorized", - "title": "Unauthorized", - "status": 401, - "detail": "You do not have the necessary permissions." - } - }, - "application/problem+xml": { - "schema": { - "$ref": "#/components/schemas/Problem" - }, - "example": { - "type": "https://example.com/errors/unauthorized", - "title": "Unauthorized", - "status": 401, - "detail": "You do not have the necessary permissions." - } - } - } - } - } - } -}", - "name": "openapi.json", - "type": "file", - }, -] -`; diff --git a/packages/cli/ete-tests/src/tests/upgrade/__snapshots__/upgrade.test.ts.snap b/packages/cli/ete-tests/src/tests/upgrade/__snapshots__/upgrade.test.ts.snap index d47e303dadf..a3c14c011f7 100644 --- a/packages/cli/ete-tests/src/tests/upgrade/__snapshots__/upgrade.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/upgrade/__snapshots__/upgrade.test.ts.snap @@ -52,56 +52,3 @@ exports[`fern upgrade > upgrades generators 1`] = ` package-name: '' " `; - -exports[`fern upgrade upgrades generators 1`] = ` -"groups: - internal: - generators: - - name: fernapi/fern-postman - version: 0.0.15 - output: - location: local-file-system - path: ./generated-postman - - name: fernapi/fern-openapi - version: 0.0.3 - output: - location: local-file-system - path: ./generated-openapi - config: - format: yaml - - name: fernapi/fern-java-sdk - version: 0.0.50 - output: - location: maven - coordinate: '' - - name: fernapi/fern-typescript-sdk - version: 0.0.11 - output: - location: npm - package-name: '' - external: - generators: - - name: fernapi/fern-postman - version: 0.0.20 - output: - location: local-file-system - path: ./generated-postman - - name: fernapi/fern-openapi - version: 0.0.2 - output: - location: local-file-system - path: ./generated-openapi - config: - format: yaml - - name: fernapi/fern-java-sdk - version: 0.0.81 - output: - location: maven - coordinate: '' - - name: fernapi/fern-typescript-sdk - version: 0.0.14 - output: - location: npm - package-name: '' -" -`; diff --git a/packages/cli/ete-tests/src/tests/validate/__snapshots__/validate.test.ts.snap b/packages/cli/ete-tests/src/tests/validate/__snapshots__/validate.test.ts.snap index 91437e88e0f..fb8356a1239 100644 --- a/packages/cli/ete-tests/src/tests/validate/__snapshots__/validate.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/validate/__snapshots__/validate.test.ts.snap @@ -19,23 +19,3 @@ exports[`validate > simple 1`] = ` [api]: other.yml -> types -> MyType Type MissingType is not defined." `; - -exports[`validate docs 1`] = ` -"Misconfigured fern directory: please see the docs at https://buildwithfern.com/learn/api-definition/introduction/what-is-the-fern-folder -[docs]: ✓ All checks passed" -`; - -exports[`validate no-api 1`] = ` -"[docs]:✓ All checks passed -[api]: Missing file: api.yml" -`; - -exports[`validate no-generator 1`] = `"Misconfigured fern directory: please see the docs at https://buildwithfern.com/learn/api-definition/introduction/what-is-the-fern-folder"`; - -exports[`validate simple 1`] = ` -"[api]: Found 2 errors and 0 warnings. Run fern check --warnings to print out the warnings. -[api]: api.yml -> error-discrimination - error-discrimination is required because this API has declared errors. -[api]: other.yml -> types -> MyType - Type MissingType is not defined." -`; diff --git a/packages/cli/ete-tests/src/tests/write-definition/__snapshots__/writeDefinition.test.ts.snap b/packages/cli/ete-tests/src/tests/write-definition/__snapshots__/writeDefinition.test.ts.snap index a08285d71cc..19acc9aaa73 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/__snapshots__/writeDefinition.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/write-definition/__snapshots__/writeDefinition.test.ts.snap @@ -96,100 +96,3 @@ service: }, ] `; - -exports[`validate petstore 1`] = ` -[ - { - "contents": "types: - Pet: - properties: - id: long - name: string - tag: optional - source: - openapi: openapi/openapi.yml - Pets: list - Error: - properties: - code: integer - message: string - source: - openapi: openapi/openapi.yml -", - "name": "__package__.yml", - "type": "file", - }, - { - "contents": "name: api -error-discrimination: - strategy: status-code -display-name: Swagger Petstore -environments: - Default: http://petstore.swagger.io/v1 -default-environment: Default -", - "name": "api.yml", - "type": "file", - }, - { - "contents": "imports: - root: __package__.yml -service: - auth: false - base-path: '' - endpoints: - listPets: - path: /pets - method: GET - auth: false - display-name: List all pets - request: - name: ListPetsRequest - query-parameters: - limit: - type: optional - docs: How many items to return at one time (max 100) - response: - docs: A paged array of pets - type: root.Pets - examples: - - response: - body: - - id: 1000000 - name: name - tag: tag - createPets: - path: /pets - method: POST - auth: false - display-name: Create a pet - examples: - - {} - showPetById: - path: /pets/{petId} - method: GET - auth: false - path-parameters: - petId: - type: string - docs: The id of the pet to retrieve - display-name: Info for a specific pet - response: - docs: Expected response to a valid request - type: root.Pet - examples: - - path-parameters: - petId: petId - response: - body: - id: 1000000 - name: name - tag: tag - source: - openapi: openapi/openapi.yml -", - "name": "pets.yml", - "type": "file", - }, -] -`; diff --git a/packages/cli/ete-tests/src/tests/write-overrides/__snapshots__/writeOverrides.test.ts.snap b/packages/cli/ete-tests/src/tests/write-overrides/__snapshots__/writeOverrides.test.ts.snap index b85dc27dacc..6b173da2f19 100644 --- a/packages/cli/ete-tests/src/tests/write-overrides/__snapshots__/writeOverrides.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/write-overrides/__snapshots__/writeOverrides.test.ts.snap @@ -26,30 +26,3 @@ components: x-fern-type-name: Error " `; - -exports[`overrides petstore 1`] = ` -"paths: - /pets: - get: - x-fern-sdk-group-name: - - pets - x-fern-sdk-method-name: listPets - post: - x-fern-sdk-group-name: - - pets - x-fern-sdk-method-name: createPets - /pets/{petId}: - get: - x-fern-sdk-group-name: - - pets - x-fern-sdk-method-name: showPetById -components: - schemas: - Pet: - x-fern-type-name: Pet - Pets: - x-fern-type-name: Pets - Error: - x-fern-type-name: Error -" -`; diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json index 4fa421475d8..3f91885fa5d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json @@ -2425,7 +2425,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "1a0bea08b783bd21407a830ddbfc675ca14b3769b65ad0aefbd97a3b2da36772", "name": null, "url": "/movies/tt0111161", "rootPathParameters": [], @@ -3010,7 +3010,7 @@ }, { "example": { - "id": null, + "id": "f3eabd4e7bc34c1e9b2ea99ffbf275d00fe11c2f7a8202309767ad09d0b292db", "name": null, "url": "/movies/tt1234", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json index 9b3b4e387a2..611122caa13 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json @@ -1962,7 +1962,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "1a0bea08b783bd21407a830ddbfc675ca14b3769b65ad0aefbd97a3b2da36772", "name": null, "url": "/movies/tt0111161", "rootPathParameters": [], @@ -2547,7 +2547,7 @@ }, { "example": { - "id": null, + "id": "f3eabd4e7bc34c1e9b2ea99ffbf275d00fe11c2f7a8202309767ad09d0b292db", "name": null, "url": "/movies/tt1234", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json index 2e168661102..09992966d67 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json @@ -626,7 +626,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "cac3b9bdbb00fd2646e858928e97c9da4d1534711bdfd188ace396470014a02b", "name": null, "url": "/telemetry", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json index 2d13f79e36f..b397a4f45f7 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json @@ -549,7 +549,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "b75dae91cda6443a7af21872119f98d9068c2851073b33e67cabb8c0b6a5d392", "name": null, "url": "/example", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json index 5b96f7a9163..d0deab82362 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json @@ -644,7 +644,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "31a7f125b757ecb88c3de1e90f768cd1d886a61a082744712200711bff86f040", "name": null, "url": "/example", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json index 0766039084d..412aa250866 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json @@ -894,7 +894,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "b18041c93d7db8d0b3e7c3189ee4e1a9aefdc09e57918cdd1ea0fa92e347ed4e", "name": null, "url": "/telemetry", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json index c04f94145f2..fd8d4c670c6 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json @@ -1029,7 +1029,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "02b080f8bb218384f1790c480339df5c3016381505d6fcfd65cbf71845cb5255", "name": null, "url": "/inlined", "rootPathParameters": [], @@ -2105,7 +2105,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "8bd0cc2d491bc2532b8eaa5a1d28f4cf40f9fdb334d002b09fcdf3028c0176f0", "name": null, "url": "/path/>/less_than/red/red", "rootPathParameters": [], @@ -3508,7 +3508,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "ed39485557124634e66adc5d4345386634392549b0be3651f45fa1d7b053725d", "name": null, "url": "/query", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json index 22c218689bc..9bd48dbdfa7 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json @@ -20175,7 +20175,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "c293c869a577775dcee38fb71fc91be9a51fa4eb8b998d34de4f40c44f315c8f", "name": null, "url": "/", "rootPathParameters": [], @@ -20616,7 +20616,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "c350dcf828e0a94b5486f95f50d1c03e945db08bff95ded6227a5c8a87b22115", "name": null, "url": "/file/notification/notification-hsy129x", "rootPathParameters": [], @@ -22081,7 +22081,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "eecea8b883858a43d2af237faf86f4756c61c396737760502aab20cc30eedcc0", "name": null, "url": "/file/file.txt", "rootPathParameters": [], @@ -23014,7 +23014,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "Example0", "name": { "originalName": "Example0", "camelCase": { @@ -23089,7 +23089,7 @@ }, { "example": { - "id": null, + "id": "Example2", "name": { "originalName": "Example2", "camelCase": { @@ -23342,7 +23342,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "Example0", "name": { "originalName": "Example0", "camelCase": { @@ -23810,7 +23810,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "be5fe4d88a10dfd95a20c663cbd57dd0ea1d6b18c75bb0bc1964f689851098f0", "name": null, "url": "//movie/movie-c06a4ad7", "rootPathParameters": [], @@ -27053,7 +27053,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "5a5abe5021232c731e06b744b5266299cb3ef06b8f68fb10cc9bdb788ed8aaa8", "name": null, "url": "//movie", "rootPathParameters": [], @@ -30269,7 +30269,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "e0cbcdd7637c6a2b3595576bc13d41ce2d0bc39417262fe629b8614f92568e99", "name": null, "url": "//metadata", "rootPathParameters": [], @@ -31015,7 +31015,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "5bc59be6d9bde2b4e8a6298553112bb20b86780eae6e71ae9ee28795e968f224", "name": null, "url": "//response", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc-proto.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc-proto.json index 93707d5ff96..a182dc422e7 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc-proto.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/grpc-proto.json @@ -949,7 +949,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "934b7e422254bcbda95a1c9f10e211ff16897c50141bc46473291f8319b8d1bc", "name": null, "url": "/users", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json index 6f3e718e20b..31621edb6da 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json @@ -1201,7 +1201,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "6d0a9c5737aa902875d5d924a905ece8994557d4e0d3566ae27b49e98ddec95b", "name": null, "url": "/headers", "rootPathParameters": [], @@ -2569,7 +2569,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "9f3971bb6ec43b6e5c733eb3690907ef68af0d8d6d3958e92233e5c602cfc7a4", "name": null, "url": "/inlined", "rootPathParameters": [], @@ -4399,7 +4399,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "dd252617730e8943b3c64efe59a54461bf566c68339330ad2b2c820e103934cb", "name": null, "url": "/path/123", "rootPathParameters": [], @@ -5304,7 +5304,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "34175d6b3be4f97692eff1ea38b28c122c71047a88c84f3635b650b9b1f70c80", "name": null, "url": "/query", "rootPathParameters": [], @@ -6355,7 +6355,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "0b21117fd3b45836fd5a4194efa1114bce6bb4ec40c8f92856c06f20a67303c2", "name": null, "url": "/reference", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json index bce9115f46d..a670d32225e 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json @@ -3191,7 +3191,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "625e8d23ceadb5d4efb47ccef83f3feebb7acd8051c753945c49f3c20f3dc769", "name": null, "url": "/resource/rsc-xyz", "rootPathParameters": [], @@ -4680,7 +4680,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "One", "name": { "originalName": "One", "camelCase": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json index c621978ee6f..4af2dc51582 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json @@ -377,7 +377,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "0cac54025d268eb1640f255e93d7e1528007ae3ce7931de6d1c5699da66af4d1", "name": null, "url": "/", "rootPathParameters": [ @@ -1080,7 +1080,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "7c20f2e4ee05e0f9f96a9d824fd47f991dc6b563d45f4c99c8248c68dc7afdd0", "name": null, "url": "//id-219xca8", "rootPathParameters": [ diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json index 3fbe2af22d7..6eab987e0fb 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json @@ -508,7 +508,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "Stream completions", "name": { "originalName": "Stream completions", "camelCase": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json index c9edf4a55ae..4735f7ce313 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json @@ -816,7 +816,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "Default", "name": { "originalName": "Default", "camelCase": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json index e17b9cada7c..b4289bcbef3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json @@ -1535,7 +1535,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "Default", "name": { "originalName": "Default", "camelCase": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json index db2994e888c..acbd578bf5b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json @@ -2040,7 +2040,7 @@ "userSpecifiedExamples": [ { "example": { - "id": null, + "id": "564738b375c4ef4b6e1ca28c14350c4ee4433a16cf0e2f2505e979bf34126709", "name": null, "url": "//metadata", "rootPathParameters": [], diff --git a/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts b/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts index ffaa4c4046d..5674553967c 100644 --- a/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts +++ b/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts @@ -7,8 +7,7 @@ import { ExamplePathParameter, ExampleRequestBody, ExampleResponse, - Name, - SupportedSdkLanguage + Name } from "@fern-api/ir-sdk"; import { FernWorkspace } from "@fern-api/workspace-loader"; import { @@ -18,6 +17,7 @@ import { RawSchemas, visitExampleResponseSchema } from "@fern-api/yaml-schema"; +import crypto from 'crypto'; import { FernFileContext } from "../../FernFileContext"; import { ErrorResolver } from "../../resolvers/ErrorResolver"; import { ExampleResolver } from "../../resolvers/ExampleResolver"; @@ -32,6 +32,11 @@ import { getPropertyName } from "../type-declarations/convertObjectTypeDeclarati import { getHeaderName, resolvePathParameterOrThrow } from "./convertHttpService"; import { getQueryParameterName } from "./convertQueryParameter"; +function hashJSON(obj: any): string { + const jsonString = JSON.stringify(obj); + return crypto.createHash('sha256').update(jsonString).digest('hex'); +} + export function convertExampleEndpointCall({ service, endpoint, @@ -64,7 +69,7 @@ export function convertExampleEndpointCall({ workspace }); return { - id: example.id, + id: example.name ?? hashJSON(example), name: example.name != null ? file.casingsGenerator.generateName(example.name) : undefined, docs: example.docs, url: buildUrl({ service, endpoint, example, pathParams: convertedPathParameters }), From 2faf05db47b679cddccc52997bb1a9e1f848336f Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Mon, 12 Aug 2024 14:17:04 -0400 Subject: [PATCH 2/3] fix snap --- .../src/converters/services/convertExampleEndpointCall.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts b/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts index 5674553967c..71c5b36d2dc 100644 --- a/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts +++ b/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts @@ -17,7 +17,7 @@ import { RawSchemas, visitExampleResponseSchema } from "@fern-api/yaml-schema"; -import crypto from 'crypto'; +import crypto from "crypto"; import { FernFileContext } from "../../FernFileContext"; import { ErrorResolver } from "../../resolvers/ErrorResolver"; import { ExampleResolver } from "../../resolvers/ExampleResolver"; @@ -34,7 +34,7 @@ import { getQueryParameterName } from "./convertQueryParameter"; function hashJSON(obj: any): string { const jsonString = JSON.stringify(obj); - return crypto.createHash('sha256').update(jsonString).digest('hex'); + return crypto.createHash("sha256").update(jsonString).digest("hex"); } export function convertExampleEndpointCall({ From d8692e3ce2a698e51cc5d08a14468b4cf6369bf1 Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Mon, 12 Aug 2024 14:34:19 -0400 Subject: [PATCH 3/3] fix snapshots --- .../services/convertExampleEndpointCall.ts | 2 +- .../migrateFromV23ToV22.test.ts.snap | 15755 ---------------- .../migrateFromV28ToV27.test.ts.snap | 636 - .../migrateFromV29ToV28.test.ts.snap | 1135 -- .../migrateFromV30ToV29.test.ts.snap | 1875 -- .../migrateFromV33ToV32.test.ts.snap | 1021 - .../migrateFromV34ToV33.test.ts.snap | 536 - .../migrateFromV35ToV34.test.ts.snap | 775 - .../migrateFromV36ToV35.test.ts.snap | 905 - .../migrateFromV37ToV36.test.ts.snap | 1544 -- .../migrateFromV38ToV37.test.ts.snap | 609 - .../migrateFromV39ToV38.test.ts.snap | 5568 ------ .../migrateFromV40ToV39.test.ts.snap | 823 - .../migrateFromV42ToV41.test.ts.snap | 5818 ------ .../migrateFromV43ToV42.test.ts.snap | 999 - .../migrateFromV44ToV43.test.ts.snap | 2515 --- .../migrateFromV45ToV44.test.ts.snap | 4049 ---- .../migrateFromV46ToV45.test.ts.snap | 4940 ----- .../migrateFromV47ToV46.test.ts.snap | 3008 +-- .../migrateFromV48ToV47.test.ts.snap | 3348 ---- .../migrateFromV49ToV48.test.ts.snap | 562 - .../migrateFromV5ToV4.test.ts.snap | 316 - .../migrateFromV50ToV49.test.ts.snap | 1087 -- .../migrateFromV51ToV50.test.ts.snap | 3016 +-- .../migrateFromV52ToV51.test.ts.snap | 1996 -- .../migrateFromV53ToV52.test.ts.snap | 2141 --- .../migrateFromV9ToV8.test.ts.snap | 267 - 27 files changed, 5 insertions(+), 65241 deletions(-) diff --git a/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts b/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts index 71c5b36d2dc..7a622d479aa 100644 --- a/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts +++ b/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts @@ -32,7 +32,7 @@ import { getPropertyName } from "../type-declarations/convertObjectTypeDeclarati import { getHeaderName, resolvePathParameterOrThrow } from "./convertHttpService"; import { getQueryParameterName } from "./convertQueryParameter"; -function hashJSON(obj: any): string { +function hashJSON(obj: unknown): string { const jsonString = JSON.stringify(obj); return crypto.createHash("sha256").update(jsonString).digest("hex"); } diff --git a/packages/cli/generation/ir-migrations/src/migrations/v23-to-v22/__test__/__snapshots__/migrateFromV23ToV22.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v23-to-v22/__test__/__snapshots__/migrateFromV23ToV22.test.ts.snap index b2d20b85e84..8f38590ae3f 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v23-to-v22/__test__/__snapshots__/migrateFromV23ToV22.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v23-to-v22/__test__/__snapshots__/migrateFromV23ToV22.test.ts.snap @@ -15754,15758 +15754,3 @@ exports[`migrateFromV23ToV22 > migrates extensive 1`] = ` "webhookGroups": {}, } `; - -exports[`migrateFromV23ToV22 migrates extensive 1`] = ` -{ - "apiDisplayName": undefined, - "apiDocs": undefined, - "apiName": { - "camelCase": { - "safeName": "api", - "unsafeName": "api", - }, - "originalName": "api", - "pascalCase": { - "safeName": "API", - "unsafeName": "API", - }, - "screamingSnakeCase": { - "safeName": "API", - "unsafeName": "API", - }, - "snakeCase": { - "safeName": "api", - "unsafeName": "api", - }, - }, - "auth": { - "docs": undefined, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "_visit": [Function], - "docs": undefined, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": undefined, - "type": "bearer", - }, - ], - }, - "basePath": undefined, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": undefined, - "errorDiscriminationStrategy": { - "_visit": [Function], - "type": "statusCode", - }, - "errors": { - "error_general-errors:BadRequestBody": { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "badRequestBody", - "unsafeName": "badRequestBody", - }, - "originalName": "BadRequestBody", - "pascalCase": { - "safeName": "BadRequestBody", - "unsafeName": "BadRequestBody", - }, - "screamingSnakeCase": { - "safeName": "BAD_REQUEST_BODY", - "unsafeName": "BAD_REQUEST_BODY", - }, - "snakeCase": { - "safeName": "bad_request_body", - "unsafeName": "bad_request_body", - }, - }, - "wireValue": "BadRequestBody", - }, - "docs": undefined, - "name": { - "errorId": "error_general-errors:BadRequestBody", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "badRequestBody", - "unsafeName": "badRequestBody", - }, - "originalName": "BadRequestBody", - "pascalCase": { - "safeName": "BadRequestBody", - "unsafeName": "BadRequestBody", - }, - "screamingSnakeCase": { - "safeName": "BAD_REQUEST_BODY", - "unsafeName": "BAD_REQUEST_BODY", - }, - "snakeCase": { - "safeName": "bad_request_body", - "unsafeName": "bad_request_body", - }, - }, - }, - "statusCode": 400, - "type": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - "packagePath": [], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "badObjectRequestInfo", - "unsafeName": "badObjectRequestInfo", - }, - "originalName": "BadObjectRequestInfo", - "pascalCase": { - "safeName": "BadObjectRequestInfo", - "unsafeName": "BadObjectRequestInfo", - }, - "screamingSnakeCase": { - "safeName": "BAD_OBJECT_REQUEST_INFO", - "unsafeName": "BAD_OBJECT_REQUEST_INFO", - }, - "snakeCase": { - "safeName": "bad_object_request_info", - "unsafeName": "bad_object_request_info", - }, - }, - "type": "named", - "typeId": "type_general-errors:BadObjectRequestInfo", - }, - }, - "error_types/enum:ErrorWithEnumBody": { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "errorWithEnumBody", - "unsafeName": "errorWithEnumBody", - }, - "originalName": "ErrorWithEnumBody", - "pascalCase": { - "safeName": "ErrorWithEnumBody", - "unsafeName": "ErrorWithEnumBody", - }, - "screamingSnakeCase": { - "safeName": "ERROR_WITH_ENUM_BODY", - "unsafeName": "ERROR_WITH_ENUM_BODY", - }, - "snakeCase": { - "safeName": "error_with_enum_body", - "unsafeName": "error_with_enum_body", - }, - }, - "wireValue": "ErrorWithEnumBody", - }, - "docs": undefined, - "name": { - "errorId": "error_types/enum:ErrorWithEnumBody", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "errorWithEnumBody", - "unsafeName": "errorWithEnumBody", - }, - "originalName": "ErrorWithEnumBody", - "pascalCase": { - "safeName": "ErrorWithEnumBody", - "unsafeName": "ErrorWithEnumBody", - }, - "screamingSnakeCase": { - "safeName": "ERROR_WITH_ENUM_BODY", - "unsafeName": "ERROR_WITH_ENUM_BODY", - }, - "snakeCase": { - "safeName": "error_with_enum_body", - "unsafeName": "error_with_enum_body", - }, - }, - }, - "statusCode": 400, - "type": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "weatherReport", - "unsafeName": "weatherReport", - }, - "originalName": "WeatherReport", - "pascalCase": { - "safeName": "WeatherReport", - "unsafeName": "WeatherReport", - }, - "screamingSnakeCase": { - "safeName": "WEATHER_REPORT", - "unsafeName": "WEATHER_REPORT", - }, - "snakeCase": { - "safeName": "weather_report", - "unsafeName": "weather_report", - }, - }, - "type": "named", - "typeId": "type_types/enum:WeatherReport", - }, - }, - "error_types/object:NestedObjectWithOptionalFieldError": { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "nestedObjectWithOptionalFieldError", - "unsafeName": "nestedObjectWithOptionalFieldError", - }, - "originalName": "NestedObjectWithOptionalFieldError", - "pascalCase": { - "safeName": "NestedObjectWithOptionalFieldError", - "unsafeName": "NestedObjectWithOptionalFieldError", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD_ERROR", - "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "nested_object_with_optional_field_error", - "unsafeName": "nested_object_with_optional_field_error", - }, - }, - "wireValue": "NestedObjectWithOptionalFieldError", - }, - "docs": undefined, - "name": { - "errorId": "error_types/object:NestedObjectWithOptionalFieldError", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "nestedObjectWithOptionalFieldError", - "unsafeName": "nestedObjectWithOptionalFieldError", - }, - "originalName": "NestedObjectWithOptionalFieldError", - "pascalCase": { - "safeName": "NestedObjectWithOptionalFieldError", - "unsafeName": "NestedObjectWithOptionalFieldError", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD_ERROR", - "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "nested_object_with_optional_field_error", - "unsafeName": "nested_object_with_optional_field_error", - }, - }, - }, - "statusCode": 400, - "type": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithOptionalField", - "unsafeName": "nestedObjectWithOptionalField", - }, - "originalName": "NestedObjectWithOptionalField", - "pascalCase": { - "safeName": "NestedObjectWithOptionalField", - "unsafeName": "NestedObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_optional_field", - "unsafeName": "nested_object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithOptionalField", - }, - }, - "error_types/object:NestedObjectWithRequiredFieldError": { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "nestedObjectWithRequiredFieldError", - "unsafeName": "nestedObjectWithRequiredFieldError", - }, - "originalName": "NestedObjectWithRequiredFieldError", - "pascalCase": { - "safeName": "NestedObjectWithRequiredFieldError", - "unsafeName": "NestedObjectWithRequiredFieldError", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD_ERROR", - "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "nested_object_with_required_field_error", - "unsafeName": "nested_object_with_required_field_error", - }, - }, - "wireValue": "NestedObjectWithRequiredFieldError", - }, - "docs": undefined, - "name": { - "errorId": "error_types/object:NestedObjectWithRequiredFieldError", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "nestedObjectWithRequiredFieldError", - "unsafeName": "nestedObjectWithRequiredFieldError", - }, - "originalName": "NestedObjectWithRequiredFieldError", - "pascalCase": { - "safeName": "NestedObjectWithRequiredFieldError", - "unsafeName": "NestedObjectWithRequiredFieldError", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD_ERROR", - "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "nested_object_with_required_field_error", - "unsafeName": "nested_object_with_required_field_error", - }, - }, - }, - "statusCode": 400, - "type": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithRequiredField", - "unsafeName": "nestedObjectWithRequiredField", - }, - "originalName": "NestedObjectWithRequiredField", - "pascalCase": { - "safeName": "NestedObjectWithRequiredField", - "unsafeName": "NestedObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_required_field", - "unsafeName": "nested_object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithRequiredField", - }, - }, - "error_types/object:ObjectWithOptionalFieldError": { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "objectWithOptionalFieldError", - "unsafeName": "objectWithOptionalFieldError", - }, - "originalName": "ObjectWithOptionalFieldError", - "pascalCase": { - "safeName": "ObjectWithOptionalFieldError", - "unsafeName": "ObjectWithOptionalFieldError", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD_ERROR", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "object_with_optional_field_error", - "unsafeName": "object_with_optional_field_error", - }, - }, - "wireValue": "ObjectWithOptionalFieldError", - }, - "docs": undefined, - "name": { - "errorId": "error_types/object:ObjectWithOptionalFieldError", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "objectWithOptionalFieldError", - "unsafeName": "objectWithOptionalFieldError", - }, - "originalName": "ObjectWithOptionalFieldError", - "pascalCase": { - "safeName": "ObjectWithOptionalFieldError", - "unsafeName": "ObjectWithOptionalFieldError", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD_ERROR", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "object_with_optional_field_error", - "unsafeName": "object_with_optional_field_error", - }, - }, - }, - "statusCode": 400, - "type": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - }, - "error_types/object:ObjectWithRequiredFieldError": { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "objectWithRequiredFieldError", - "unsafeName": "objectWithRequiredFieldError", - }, - "originalName": "ObjectWithRequiredFieldError", - "pascalCase": { - "safeName": "ObjectWithRequiredFieldError", - "unsafeName": "ObjectWithRequiredFieldError", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD_ERROR", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "object_with_required_field_error", - "unsafeName": "object_with_required_field_error", - }, - }, - "wireValue": "ObjectWithRequiredFieldError", - }, - "docs": undefined, - "name": { - "errorId": "error_types/object:ObjectWithRequiredFieldError", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "objectWithRequiredFieldError", - "unsafeName": "objectWithRequiredFieldError", - }, - "originalName": "ObjectWithRequiredFieldError", - "pascalCase": { - "safeName": "ObjectWithRequiredFieldError", - "unsafeName": "ObjectWithRequiredFieldError", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD_ERROR", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD_ERROR", - }, - "snakeCase": { - "safeName": "object_with_required_field_error", - "unsafeName": "object_with_required_field_error", - }, - }, - }, - "statusCode": 400, - "type": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - "error_types/union:ErrorWithUnionBody": { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "errorWithUnionBody", - "unsafeName": "errorWithUnionBody", - }, - "originalName": "ErrorWithUnionBody", - "pascalCase": { - "safeName": "ErrorWithUnionBody", - "unsafeName": "ErrorWithUnionBody", - }, - "screamingSnakeCase": { - "safeName": "ERROR_WITH_UNION_BODY", - "unsafeName": "ERROR_WITH_UNION_BODY", - }, - "snakeCase": { - "safeName": "error_with_union_body", - "unsafeName": "error_with_union_body", - }, - }, - "wireValue": "ErrorWithUnionBody", - }, - "docs": undefined, - "name": { - "errorId": "error_types/union:ErrorWithUnionBody", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "errorWithUnionBody", - "unsafeName": "errorWithUnionBody", - }, - "originalName": "ErrorWithUnionBody", - "pascalCase": { - "safeName": "ErrorWithUnionBody", - "unsafeName": "ErrorWithUnionBody", - }, - "screamingSnakeCase": { - "safeName": "ERROR_WITH_UNION_BODY", - "unsafeName": "ERROR_WITH_UNION_BODY", - }, - "snakeCase": { - "safeName": "error_with_union_body", - "unsafeName": "error_with_union_body", - }, - }, - }, - "statusCode": 400, - "type": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - "originalName": "Animal", - "pascalCase": { - "safeName": "Animal", - "unsafeName": "Animal", - }, - "screamingSnakeCase": { - "safeName": "ANIMAL", - "unsafeName": "ANIMAL", - }, - "snakeCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - }, - "type": "named", - "typeId": "type_types/union:Animal", - }, - }, - }, - "headers": [], - "pathParameters": [], - "rootPackage": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": undefined, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [ - "subpackage_endpoints", - "subpackage_general-errors", - "subpackage_inlined-requests", - "subpackage_no-auth", - "subpackage_no-req-body", - "subpackage_req-with-headers", - "subpackage_types", - ], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - "userAgent": undefined, - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_types/object:ObjectWithRequiredField", - "type_types/enum:WeatherReport", - "type_types/object:ObjectWithOptionalField", - "type_types/object:NestedObjectWithOptionalField", - "type_types/object:NestedObjectWithRequiredField", - "type_types/union:Animal", - "type_general-errors:BadObjectRequestInfo", - "type_types/union:Dog", - "type_types/union:Cat", - ], - "typesReferencedOnlyByService": {}, - }, - "services": { - "service_endpoints/container": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/container", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/container/list-of-primitives", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/container.getAndReturnListOfPrimitives", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnListOfPrimitives", - "unsafeName": "getAndReturnListOfPrimitives", - }, - "originalName": "getAndReturnListOfPrimitives", - "pascalCase": { - "safeName": "GetAndReturnListOfPrimitives", - "unsafeName": "GetAndReturnListOfPrimitives", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_LIST_OF_PRIMITIVES", - "unsafeName": "GET_AND_RETURN_LIST_OF_PRIMITIVES", - }, - "snakeCase": { - "safeName": "get_and_return_list_of_primitives", - "unsafeName": "get_and_return_list_of_primitives", - }, - }, - "path": { - "head": "/list-of-primitives", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/container/list-of-objects", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/container.getAndReturnListOfObjects", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnListOfObjects", - "unsafeName": "getAndReturnListOfObjects", - }, - "originalName": "getAndReturnListOfObjects", - "pascalCase": { - "safeName": "GetAndReturnListOfObjects", - "unsafeName": "GetAndReturnListOfObjects", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_LIST_OF_OBJECTS", - "unsafeName": "GET_AND_RETURN_LIST_OF_OBJECTS", - }, - "snakeCase": { - "safeName": "get_and_return_list_of_objects", - "unsafeName": "get_and_return_list_of_objects", - }, - }, - "path": { - "head": "/list-of-objects", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/container/set-of-primitives", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/container.getAndReturnSetOfPrimitives", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnSetOfPrimitives", - "unsafeName": "getAndReturnSetOfPrimitives", - }, - "originalName": "getAndReturnSetOfPrimitives", - "pascalCase": { - "safeName": "GetAndReturnSetOfPrimitives", - "unsafeName": "GetAndReturnSetOfPrimitives", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_SET_OF_PRIMITIVES", - "unsafeName": "GET_AND_RETURN_SET_OF_PRIMITIVES", - }, - "snakeCase": { - "safeName": "get_and_return_set_of_primitives", - "unsafeName": "get_and_return_set_of_primitives", - }, - }, - "path": { - "head": "/set-of-primitives", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/container/set-of-objects", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/container.getAndReturnSetOfObjects", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnSetOfObjects", - "unsafeName": "getAndReturnSetOfObjects", - }, - "originalName": "getAndReturnSetOfObjects", - "pascalCase": { - "safeName": "GetAndReturnSetOfObjects", - "unsafeName": "GetAndReturnSetOfObjects", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_SET_OF_OBJECTS", - "unsafeName": "GET_AND_RETURN_SET_OF_OBJECTS", - }, - "snakeCase": { - "safeName": "get_and_return_set_of_objects", - "unsafeName": "get_and_return_set_of_objects", - }, - }, - "path": { - "head": "/set-of-objects", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/container/map-prim-to-prim", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/container.getAndReturnMapPrimToPrim", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnMapPrimToPrim", - "unsafeName": "getAndReturnMapPrimToPrim", - }, - "originalName": "getAndReturnMapPrimToPrim", - "pascalCase": { - "safeName": "GetAndReturnMapPrimToPrim", - "unsafeName": "GetAndReturnMapPrimToPrim", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_MAP_PRIM_TO_PRIM", - "unsafeName": "GET_AND_RETURN_MAP_PRIM_TO_PRIM", - }, - "snakeCase": { - "safeName": "get_and_return_map_prim_to_prim", - "unsafeName": "get_and_return_map_prim_to_prim", - }, - }, - "path": { - "head": "/map-prim-to-prim", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/container/map-prim-to-object", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/container.getAndReturnMapOfPrimToObject", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnMapOfPrimToObject", - "unsafeName": "getAndReturnMapOfPrimToObject", - }, - "originalName": "getAndReturnMapOfPrimToObject", - "pascalCase": { - "safeName": "GetAndReturnMapOfPrimToObject", - "unsafeName": "GetAndReturnMapOfPrimToObject", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_MAP_OF_PRIM_TO_OBJECT", - "unsafeName": "GET_AND_RETURN_MAP_OF_PRIM_TO_OBJECT", - }, - "snakeCase": { - "safeName": "get_and_return_map_of_prim_to_object", - "unsafeName": "get_and_return_map_of_prim_to_object", - }, - }, - "path": { - "head": "/map-prim-to-object", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - }, - }, - "type": "justRequestBody", - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "container", - "unsafeName": "container", - }, - "originalName": "container", - "pascalCase": { - "safeName": "Container", - "unsafeName": "Container", - }, - "screamingSnakeCase": { - "safeName": "CONTAINER", - "unsafeName": "CONTAINER", - }, - "snakeCase": { - "safeName": "container", - "unsafeName": "container", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "container", - "unsafeName": "container", - }, - "originalName": "container", - "pascalCase": { - "safeName": "Container", - "unsafeName": "Container", - }, - "screamingSnakeCase": { - "safeName": "CONTAINER", - "unsafeName": "CONTAINER", - }, - "snakeCase": { - "safeName": "container", - "unsafeName": "container", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - }, - "pathParameters": [], - }, - "service_endpoints/enum": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/enum", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/enum", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/enum.getAndReturnEnum", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnEnum", - "unsafeName": "getAndReturnEnum", - }, - "originalName": "getAndReturnEnum", - "pascalCase": { - "safeName": "GetAndReturnEnum", - "unsafeName": "GetAndReturnEnum", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_ENUM", - "unsafeName": "GET_AND_RETURN_ENUM", - }, - "snakeCase": { - "safeName": "get_and_return_enum", - "unsafeName": "get_and_return_enum", - }, - }, - "path": { - "head": "", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "weatherReport", - "unsafeName": "weatherReport", - }, - "originalName": "WeatherReport", - "pascalCase": { - "safeName": "WeatherReport", - "unsafeName": "WeatherReport", - }, - "screamingSnakeCase": { - "safeName": "WEATHER_REPORT", - "unsafeName": "WEATHER_REPORT", - }, - "snakeCase": { - "safeName": "weather_report", - "unsafeName": "weather_report", - }, - }, - "type": "named", - "typeId": "type_types/enum:WeatherReport", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "weatherReport", - "unsafeName": "weatherReport", - }, - "originalName": "WeatherReport", - "pascalCase": { - "safeName": "WeatherReport", - "unsafeName": "WeatherReport", - }, - "screamingSnakeCase": { - "safeName": "WEATHER_REPORT", - "unsafeName": "WEATHER_REPORT", - }, - "snakeCase": { - "safeName": "weather_report", - "unsafeName": "weather_report", - }, - }, - "type": "named", - "typeId": "type_types/enum:WeatherReport", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "weatherReport", - "unsafeName": "weatherReport", - }, - "originalName": "WeatherReport", - "pascalCase": { - "safeName": "WeatherReport", - "unsafeName": "WeatherReport", - }, - "screamingSnakeCase": { - "safeName": "WEATHER_REPORT", - "unsafeName": "WEATHER_REPORT", - }, - "snakeCase": { - "safeName": "weather_report", - "unsafeName": "weather_report", - }, - }, - "type": "named", - "typeId": "type_types/enum:WeatherReport", - }, - "type": "justRequestBody", - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - }, - "pathParameters": [], - }, - "service_endpoints/http-methods": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/http-methods", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/http-methods/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_endpoints/http-methods.testGet", - "method": "GET", - "name": { - "camelCase": { - "safeName": "testGet", - "unsafeName": "testGet", - }, - "originalName": "testGet", - "pascalCase": { - "safeName": "TestGet", - "unsafeName": "TestGet", - }, - "screamingSnakeCase": { - "safeName": "TEST_GET", - "unsafeName": "TEST_GET", - }, - "snakeCase": { - "safeName": "test_get", - "unsafeName": "test_get", - }, - }, - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "queryParameters": [], - "requestBody": undefined, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "json", - }, - "sdkRequest": undefined, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/http-methods", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/http-methods.testPost", - "method": "POST", - "name": { - "camelCase": { - "safeName": "testPost", - "unsafeName": "testPost", - }, - "originalName": "testPost", - "pascalCase": { - "safeName": "TestPost", - "unsafeName": "TestPost", - }, - "screamingSnakeCase": { - "safeName": "TEST_POST", - "unsafeName": "TEST_POST", - }, - "snakeCase": { - "safeName": "test_post", - "unsafeName": "test_post", - }, - }, - "path": { - "head": "", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/http-methods/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_endpoints/http-methods.testPut", - "method": "PUT", - "name": { - "camelCase": { - "safeName": "testPut", - "unsafeName": "testPut", - }, - "originalName": "testPut", - "pascalCase": { - "safeName": "TestPut", - "unsafeName": "TestPut", - }, - "screamingSnakeCase": { - "safeName": "TEST_PUT", - "unsafeName": "TEST_PUT", - }, - "snakeCase": { - "safeName": "test_put", - "unsafeName": "test_put", - }, - }, - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/http-methods/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_endpoints/http-methods.testPatch", - "method": "PATCH", - "name": { - "camelCase": { - "safeName": "testPatch", - "unsafeName": "testPatch", - }, - "originalName": "testPatch", - "pascalCase": { - "safeName": "TestPatch", - "unsafeName": "TestPatch", - }, - "screamingSnakeCase": { - "safeName": "TEST_PATCH", - "unsafeName": "TEST_PATCH", - }, - "snakeCase": { - "safeName": "test_patch", - "unsafeName": "test_patch", - }, - }, - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/http-methods/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_endpoints/http-methods.testDelete", - "method": "DELETE", - "name": { - "camelCase": { - "safeName": "testDelete", - "unsafeName": "testDelete", - }, - "originalName": "testDelete", - "pascalCase": { - "safeName": "TestDelete", - "unsafeName": "TestDelete", - }, - "screamingSnakeCase": { - "safeName": "TEST_DELETE", - "unsafeName": "TEST_DELETE", - }, - "snakeCase": { - "safeName": "test_delete", - "unsafeName": "test_delete", - }, - }, - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "queryParameters": [], - "requestBody": undefined, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - "type": "json", - }, - "sdkRequest": undefined, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "httpMethods", - "unsafeName": "httpMethods", - }, - "originalName": "http-methods", - "pascalCase": { - "safeName": "HTTPMethods", - "unsafeName": "HTTPMethods", - }, - "screamingSnakeCase": { - "safeName": "HTTP_METHODS", - "unsafeName": "HTTP_METHODS", - }, - "snakeCase": { - "safeName": "http_methods", - "unsafeName": "http_methods", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "httpMethods", - "unsafeName": "httpMethods", - }, - "originalName": "http-methods", - "pascalCase": { - "safeName": "HTTPMethods", - "unsafeName": "HTTPMethods", - }, - "screamingSnakeCase": { - "safeName": "HTTP_METHODS", - "unsafeName": "HTTP_METHODS", - }, - "snakeCase": { - "safeName": "http_methods", - "unsafeName": "http_methods", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - }, - "pathParameters": [], - }, - "service_endpoints/object": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/object", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/object/get-and-return-with-optional-field", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/object.getAndReturnWithOptionalField", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnWithOptionalField", - "unsafeName": "getAndReturnWithOptionalField", - }, - "originalName": "getAndReturnWithOptionalField", - "pascalCase": { - "safeName": "GetAndReturnWithOptionalField", - "unsafeName": "GetAndReturnWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_WITH_OPTIONAL_FIELD", - "unsafeName": "GET_AND_RETURN_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "get_and_return_with_optional_field", - "unsafeName": "get_and_return_with_optional_field", - }, - }, - "path": { - "head": "/get-and-return-with-optional-field", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/object/get-and-return-with-required-field", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/object.getAndReturnWithRequiredField", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnWithRequiredField", - "unsafeName": "getAndReturnWithRequiredField", - }, - "originalName": "getAndReturnWithRequiredField", - "pascalCase": { - "safeName": "GetAndReturnWithRequiredField", - "unsafeName": "GetAndReturnWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_WITH_REQUIRED_FIELD", - "unsafeName": "GET_AND_RETURN_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "get_and_return_with_required_field", - "unsafeName": "get_and_return_with_required_field", - }, - }, - "path": { - "head": "/get-and-return-with-required-field", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/object/get-and-return-nested-with-optional-field", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/object.getAndReturnNestedWithOptionalField", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnNestedWithOptionalField", - "unsafeName": "getAndReturnNestedWithOptionalField", - }, - "originalName": "getAndReturnNestedWithOptionalField", - "pascalCase": { - "safeName": "GetAndReturnNestedWithOptionalField", - "unsafeName": "GetAndReturnNestedWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_NESTED_WITH_OPTIONAL_FIELD", - "unsafeName": "GET_AND_RETURN_NESTED_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "get_and_return_nested_with_optional_field", - "unsafeName": "get_and_return_nested_with_optional_field", - }, - }, - "path": { - "head": "/get-and-return-nested-with-optional-field", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithOptionalField", - "unsafeName": "nestedObjectWithOptionalField", - }, - "originalName": "NestedObjectWithOptionalField", - "pascalCase": { - "safeName": "NestedObjectWithOptionalField", - "unsafeName": "NestedObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_optional_field", - "unsafeName": "nested_object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithOptionalField", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithOptionalField", - "unsafeName": "nestedObjectWithOptionalField", - }, - "originalName": "NestedObjectWithOptionalField", - "pascalCase": { - "safeName": "NestedObjectWithOptionalField", - "unsafeName": "NestedObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_optional_field", - "unsafeName": "nested_object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithOptionalField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithOptionalField", - "unsafeName": "nestedObjectWithOptionalField", - }, - "originalName": "NestedObjectWithOptionalField", - "pascalCase": { - "safeName": "NestedObjectWithOptionalField", - "unsafeName": "NestedObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_optional_field", - "unsafeName": "nested_object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithOptionalField", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/object/get-and-return-nested-with-required-field", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/object.getAndReturnNestedWithRequiredField", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnNestedWithRequiredField", - "unsafeName": "getAndReturnNestedWithRequiredField", - }, - "originalName": "getAndReturnNestedWithRequiredField", - "pascalCase": { - "safeName": "GetAndReturnNestedWithRequiredField", - "unsafeName": "GetAndReturnNestedWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD", - "unsafeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "get_and_return_nested_with_required_field", - "unsafeName": "get_and_return_nested_with_required_field", - }, - }, - "path": { - "head": "/get-and-return-nested-with-required-field", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithRequiredField", - "unsafeName": "nestedObjectWithRequiredField", - }, - "originalName": "NestedObjectWithRequiredField", - "pascalCase": { - "safeName": "NestedObjectWithRequiredField", - "unsafeName": "NestedObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_required_field", - "unsafeName": "nested_object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithRequiredField", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithRequiredField", - "unsafeName": "nestedObjectWithRequiredField", - }, - "originalName": "NestedObjectWithRequiredField", - "pascalCase": { - "safeName": "NestedObjectWithRequiredField", - "unsafeName": "NestedObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_required_field", - "unsafeName": "nested_object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithRequiredField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "nestedObjectWithRequiredField", - "unsafeName": "nestedObjectWithRequiredField", - }, - "originalName": "NestedObjectWithRequiredField", - "pascalCase": { - "safeName": "NestedObjectWithRequiredField", - "unsafeName": "NestedObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_required_field", - "unsafeName": "nested_object_with_required_field", - }, - }, - "type": "named", - "typeId": "type_types/object:NestedObjectWithRequiredField", - }, - "type": "justRequestBody", - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - }, - "pathParameters": [], - }, - "service_endpoints/params": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/params", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "param", - "unsafeName": "param", - }, - "originalName": "param", - "pascalCase": { - "safeName": "Param", - "unsafeName": "Param", - }, - "screamingSnakeCase": { - "safeName": "PARAM", - "unsafeName": "PARAM", - }, - "snakeCase": { - "safeName": "param", - "unsafeName": "param", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": "GET with path param", - "errors": [], - "examples": [], - "fullPath": { - "head": "/params/path/", - "parts": [ - { - "pathParameter": "param", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_endpoints/params.getWithPath", - "method": "GET", - "name": { - "camelCase": { - "safeName": "getWithPath", - "unsafeName": "getWithPath", - }, - "originalName": "getWithPath", - "pascalCase": { - "safeName": "GetWithPath", - "unsafeName": "GetWithPath", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_PATH", - "unsafeName": "GET_WITH_PATH", - }, - "snakeCase": { - "safeName": "get_with_path", - "unsafeName": "get_with_path", - }, - }, - "path": { - "head": "/path/", - "parts": [ - { - "pathParameter": "param", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "param", - "unsafeName": "param", - }, - "originalName": "param", - "pascalCase": { - "safeName": "Param", - "unsafeName": "Param", - }, - "screamingSnakeCase": { - "safeName": "PARAM", - "unsafeName": "PARAM", - }, - "snakeCase": { - "safeName": "param", - "unsafeName": "param", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "queryParameters": [], - "requestBody": undefined, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "json", - }, - "sdkRequest": undefined, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": "GET with query param", - "errors": [], - "examples": [], - "fullPath": { - "head": "/params", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/params.getWithQuery", - "method": "GET", - "name": { - "camelCase": { - "safeName": "getWithQuery", - "unsafeName": "getWithQuery", - }, - "originalName": "getWithQuery", - "pascalCase": { - "safeName": "GetWithQuery", - "unsafeName": "GetWithQuery", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_QUERY", - "unsafeName": "GET_WITH_QUERY", - }, - "snakeCase": { - "safeName": "get_with_query", - "unsafeName": "get_with_query", - }, - }, - "path": { - "head": "", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "query", - "unsafeName": "query", - }, - "originalName": "query", - "pascalCase": { - "safeName": "Query", - "unsafeName": "Query", - }, - "screamingSnakeCase": { - "safeName": "QUERY", - "unsafeName": "QUERY", - }, - "snakeCase": { - "safeName": "query", - "unsafeName": "query", - }, - }, - "wireValue": "query", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "allowMultiple": false, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "number", - "unsafeName": "number", - }, - "originalName": "number", - "pascalCase": { - "safeName": "Number", - "unsafeName": "Number", - }, - "screamingSnakeCase": { - "safeName": "NUMBER", - "unsafeName": "NUMBER", - }, - "snakeCase": { - "safeName": "number", - "unsafeName": "number", - }, - }, - "wireValue": "number", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": undefined, - "response": undefined, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "getWithQuery", - "unsafeName": "getWithQuery", - }, - "originalName": "GetWithQuery", - "pascalCase": { - "safeName": "GetWithQuery", - "unsafeName": "GetWithQuery", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_QUERY", - "unsafeName": "GET_WITH_QUERY", - }, - "snakeCase": { - "safeName": "get_with_query", - "unsafeName": "get_with_query", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": "GET with multiple of same query param", - "errors": [], - "examples": [], - "fullPath": { - "head": "/params", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/params.getWithAllowMultipleQuery", - "method": "GET", - "name": { - "camelCase": { - "safeName": "getWithAllowMultipleQuery", - "unsafeName": "getWithAllowMultipleQuery", - }, - "originalName": "getWithAllowMultipleQuery", - "pascalCase": { - "safeName": "GetWithAllowMultipleQuery", - "unsafeName": "GetWithAllowMultipleQuery", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_ALLOW_MULTIPLE_QUERY", - "unsafeName": "GET_WITH_ALLOW_MULTIPLE_QUERY", - }, - "snakeCase": { - "safeName": "get_with_allow_multiple_query", - "unsafeName": "get_with_allow_multiple_query", - }, - }, - "path": { - "head": "", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "query", - "unsafeName": "query", - }, - "originalName": "query", - "pascalCase": { - "safeName": "Query", - "unsafeName": "Query", - }, - "screamingSnakeCase": { - "safeName": "QUERY", - "unsafeName": "QUERY", - }, - "snakeCase": { - "safeName": "query", - "unsafeName": "query", - }, - }, - "wireValue": "query", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "allowMultiple": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "numer", - "unsafeName": "numer", - }, - "originalName": "numer", - "pascalCase": { - "safeName": "Numer", - "unsafeName": "Numer", - }, - "screamingSnakeCase": { - "safeName": "NUMER", - "unsafeName": "NUMER", - }, - "snakeCase": { - "safeName": "numer", - "unsafeName": "numer", - }, - }, - "wireValue": "numer", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": undefined, - "response": undefined, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "getWithMultipleQuery", - "unsafeName": "getWithMultipleQuery", - }, - "originalName": "GetWithMultipleQuery", - "pascalCase": { - "safeName": "GetWithMultipleQuery", - "unsafeName": "GetWithMultipleQuery", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_MULTIPLE_QUERY", - "unsafeName": "GET_WITH_MULTIPLE_QUERY", - }, - "snakeCase": { - "safeName": "get_with_multiple_query", - "unsafeName": "get_with_multiple_query", - }, - }, - }, - }, - }, - { - "allPathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "param", - "unsafeName": "param", - }, - "originalName": "param", - "pascalCase": { - "safeName": "Param", - "unsafeName": "Param", - }, - "screamingSnakeCase": { - "safeName": "PARAM", - "unsafeName": "PARAM", - }, - "snakeCase": { - "safeName": "param", - "unsafeName": "param", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": "GET with path and query params", - "errors": [], - "examples": [], - "fullPath": { - "head": "/params/path/", - "parts": [ - { - "pathParameter": "param", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_endpoints/params.getWithPathAndQuery", - "method": "GET", - "name": { - "camelCase": { - "safeName": "getWithPathAndQuery", - "unsafeName": "getWithPathAndQuery", - }, - "originalName": "getWithPathAndQuery", - "pascalCase": { - "safeName": "GetWithPathAndQuery", - "unsafeName": "GetWithPathAndQuery", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_PATH_AND_QUERY", - "unsafeName": "GET_WITH_PATH_AND_QUERY", - }, - "snakeCase": { - "safeName": "get_with_path_and_query", - "unsafeName": "get_with_path_and_query", - }, - }, - "path": { - "head": "/path/", - "parts": [ - { - "pathParameter": "param", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "param", - "unsafeName": "param", - }, - "originalName": "param", - "pascalCase": { - "safeName": "Param", - "unsafeName": "Param", - }, - "screamingSnakeCase": { - "safeName": "PARAM", - "unsafeName": "PARAM", - }, - "snakeCase": { - "safeName": "param", - "unsafeName": "param", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "queryParameters": [ - { - "allowMultiple": false, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "query", - "unsafeName": "query", - }, - "originalName": "query", - "pascalCase": { - "safeName": "Query", - "unsafeName": "Query", - }, - "screamingSnakeCase": { - "safeName": "QUERY", - "unsafeName": "QUERY", - }, - "snakeCase": { - "safeName": "query", - "unsafeName": "query", - }, - }, - "wireValue": "query", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "requestBody": undefined, - "response": undefined, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "getWithPathAndQuery", - "unsafeName": "getWithPathAndQuery", - }, - "originalName": "GetWithPathAndQuery", - "pascalCase": { - "safeName": "GetWithPathAndQuery", - "unsafeName": "GetWithPathAndQuery", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_PATH_AND_QUERY", - "unsafeName": "GET_WITH_PATH_AND_QUERY", - }, - "snakeCase": { - "safeName": "get_with_path_and_query", - "unsafeName": "get_with_path_and_query", - }, - }, - }, - }, - }, - { - "allPathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "param", - "unsafeName": "param", - }, - "originalName": "param", - "pascalCase": { - "safeName": "Param", - "unsafeName": "Param", - }, - "screamingSnakeCase": { - "safeName": "PARAM", - "unsafeName": "PARAM", - }, - "snakeCase": { - "safeName": "param", - "unsafeName": "param", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": "PUT to update with path param", - "errors": [], - "examples": [], - "fullPath": { - "head": "/params/path/", - "parts": [ - { - "pathParameter": "param", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_endpoints/params.modifyWithPath", - "method": "PUT", - "name": { - "camelCase": { - "safeName": "modifyWithPath", - "unsafeName": "modifyWithPath", - }, - "originalName": "modifyWithPath", - "pascalCase": { - "safeName": "ModifyWithPath", - "unsafeName": "ModifyWithPath", - }, - "screamingSnakeCase": { - "safeName": "MODIFY_WITH_PATH", - "unsafeName": "MODIFY_WITH_PATH", - }, - "snakeCase": { - "safeName": "modify_with_path", - "unsafeName": "modify_with_path", - }, - }, - "path": { - "head": "/path/", - "parts": [ - { - "pathParameter": "param", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "availability": undefined, - "docs": undefined, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "param", - "unsafeName": "param", - }, - "originalName": "param", - "pascalCase": { - "safeName": "Param", - "unsafeName": "Param", - }, - "screamingSnakeCase": { - "safeName": "PARAM", - "unsafeName": "PARAM", - }, - "snakeCase": { - "safeName": "param", - "unsafeName": "param", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": undefined, - }, - ], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "justRequestBody", - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "params", - "unsafeName": "params", - }, - "originalName": "params", - "pascalCase": { - "safeName": "Params", - "unsafeName": "Params", - }, - "screamingSnakeCase": { - "safeName": "PARAMS", - "unsafeName": "PARAMS", - }, - "snakeCase": { - "safeName": "params", - "unsafeName": "params", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "params", - "unsafeName": "params", - }, - "originalName": "params", - "pascalCase": { - "safeName": "Params", - "unsafeName": "Params", - }, - "screamingSnakeCase": { - "safeName": "PARAMS", - "unsafeName": "PARAMS", - }, - "snakeCase": { - "safeName": "params", - "unsafeName": "params", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - }, - "pathParameters": [], - }, - "service_endpoints/primitive": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/primitive", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/string", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnString", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnString", - "unsafeName": "getAndReturnString", - }, - "originalName": "getAndReturnString", - "pascalCase": { - "safeName": "GetAndReturnString", - "unsafeName": "GetAndReturnString", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_STRING", - "unsafeName": "GET_AND_RETURN_STRING", - }, - "snakeCase": { - "safeName": "get_and_return_string", - "unsafeName": "get_and_return_string", - }, - }, - "path": { - "head": "/string", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/integer", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnInt", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnInt", - "unsafeName": "getAndReturnInt", - }, - "originalName": "getAndReturnInt", - "pascalCase": { - "safeName": "GetAndReturnInt", - "unsafeName": "GetAndReturnInt", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_INT", - "unsafeName": "GET_AND_RETURN_INT", - }, - "snakeCase": { - "safeName": "get_and_return_int", - "unsafeName": "get_and_return_int", - }, - }, - "path": { - "head": "/integer", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/long", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnLong", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnLong", - "unsafeName": "getAndReturnLong", - }, - "originalName": "getAndReturnLong", - "pascalCase": { - "safeName": "GetAndReturnLong", - "unsafeName": "GetAndReturnLong", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_LONG", - "unsafeName": "GET_AND_RETURN_LONG", - }, - "snakeCase": { - "safeName": "get_and_return_long", - "unsafeName": "get_and_return_long", - }, - }, - "path": { - "head": "/long", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "LONG", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "LONG", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "LONG", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/double", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnDouble", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnDouble", - "unsafeName": "getAndReturnDouble", - }, - "originalName": "getAndReturnDouble", - "pascalCase": { - "safeName": "GetAndReturnDouble", - "unsafeName": "GetAndReturnDouble", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_DOUBLE", - "unsafeName": "GET_AND_RETURN_DOUBLE", - }, - "snakeCase": { - "safeName": "get_and_return_double", - "unsafeName": "get_and_return_double", - }, - }, - "path": { - "head": "/double", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "DOUBLE", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "DOUBLE", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "DOUBLE", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/boolean", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnBool", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnBool", - "unsafeName": "getAndReturnBool", - }, - "originalName": "getAndReturnBool", - "pascalCase": { - "safeName": "GetAndReturnBool", - "unsafeName": "GetAndReturnBool", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_BOOL", - "unsafeName": "GET_AND_RETURN_BOOL", - }, - "snakeCase": { - "safeName": "get_and_return_bool", - "unsafeName": "get_and_return_bool", - }, - }, - "path": { - "head": "/boolean", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/datetime", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnDatetime", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnDatetime", - "unsafeName": "getAndReturnDatetime", - }, - "originalName": "getAndReturnDatetime", - "pascalCase": { - "safeName": "GetAndReturnDatetime", - "unsafeName": "GetAndReturnDatetime", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_DATETIME", - "unsafeName": "GET_AND_RETURN_DATETIME", - }, - "snakeCase": { - "safeName": "get_and_return_datetime", - "unsafeName": "get_and_return_datetime", - }, - }, - "path": { - "head": "/datetime", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "DATE_TIME", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "DATE_TIME", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "DATE_TIME", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/date", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnDate", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnDate", - "unsafeName": "getAndReturnDate", - }, - "originalName": "getAndReturnDate", - "pascalCase": { - "safeName": "GetAndReturnDate", - "unsafeName": "GetAndReturnDate", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_DATE", - "unsafeName": "GET_AND_RETURN_DATE", - }, - "snakeCase": { - "safeName": "get_and_return_date", - "unsafeName": "get_and_return_date", - }, - }, - "path": { - "head": "/date", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "DATE", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "DATE", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "DATE", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/uuid", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnUUID", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnUUID", - "unsafeName": "getAndReturnUUID", - }, - "originalName": "getAndReturnUUID", - "pascalCase": { - "safeName": "GetAndReturnUUID", - "unsafeName": "GetAndReturnUUID", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_UUID", - "unsafeName": "GET_AND_RETURN_UUID", - }, - "snakeCase": { - "safeName": "get_and_return_uuid", - "unsafeName": "get_and_return_uuid", - }, - }, - "path": { - "head": "/uuid", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "UUID", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "UUID", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "UUID", - }, - "type": "justRequestBody", - }, - }, - }, - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/primitive/base64", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/primitive.getAndReturnBase64", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnBase64", - "unsafeName": "getAndReturnBase64", - }, - "originalName": "getAndReturnBase64", - "pascalCase": { - "safeName": "GetAndReturnBase64", - "unsafeName": "GetAndReturnBase64", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_BASE64", - "unsafeName": "GET_AND_RETURN_BASE64", - }, - "snakeCase": { - "safeName": "get_and_return_base64", - "unsafeName": "get_and_return_base64", - }, - }, - "path": { - "head": "/base64", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "BASE_64", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "BASE_64", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "BASE_64", - }, - "type": "justRequestBody", - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - "originalName": "primitive", - "pascalCase": { - "safeName": "Primitive", - "unsafeName": "Primitive", - }, - "screamingSnakeCase": { - "safeName": "PRIMITIVE", - "unsafeName": "PRIMITIVE", - }, - "snakeCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - "originalName": "primitive", - "pascalCase": { - "safeName": "Primitive", - "unsafeName": "Primitive", - }, - "screamingSnakeCase": { - "safeName": "PRIMITIVE", - "unsafeName": "PRIMITIVE", - }, - "snakeCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - }, - "pathParameters": [], - }, - "service_endpoints/union": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/union", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/union", - "parts": [], - }, - "headers": [], - "id": "endpoint_endpoints/union.getAndReturnUnion", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getAndReturnUnion", - "unsafeName": "getAndReturnUnion", - }, - "originalName": "getAndReturnUnion", - "pascalCase": { - "safeName": "GetAndReturnUnion", - "unsafeName": "GetAndReturnUnion", - }, - "screamingSnakeCase": { - "safeName": "GET_AND_RETURN_UNION", - "unsafeName": "GET_AND_RETURN_UNION", - }, - "snakeCase": { - "safeName": "get_and_return_union", - "unsafeName": "get_and_return_union", - }, - }, - "path": { - "head": "", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - "originalName": "Animal", - "pascalCase": { - "safeName": "Animal", - "unsafeName": "Animal", - }, - "screamingSnakeCase": { - "safeName": "ANIMAL", - "unsafeName": "ANIMAL", - }, - "snakeCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - }, - "type": "named", - "typeId": "type_types/union:Animal", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - "originalName": "Animal", - "pascalCase": { - "safeName": "Animal", - "unsafeName": "Animal", - }, - "screamingSnakeCase": { - "safeName": "ANIMAL", - "unsafeName": "ANIMAL", - }, - "snakeCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - }, - "type": "named", - "typeId": "type_types/union:Animal", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - "originalName": "Animal", - "pascalCase": { - "safeName": "Animal", - "unsafeName": "Animal", - }, - "screamingSnakeCase": { - "safeName": "ANIMAL", - "unsafeName": "ANIMAL", - }, - "snakeCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - }, - "type": "named", - "typeId": "type_types/union:Animal", - }, - "type": "justRequestBody", - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - }, - "pathParameters": [], - }, - "service_inlined-requests": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/req-bodies", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": "POST with custom object in request body, response is an object", - "errors": [ - { - "docs": undefined, - "error": { - "errorId": "error_general-errors:BadRequestBody", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "badRequestBody", - "unsafeName": "badRequestBody", - }, - "originalName": "BadRequestBody", - "pascalCase": { - "safeName": "BadRequestBody", - "unsafeName": "BadRequestBody", - }, - "screamingSnakeCase": { - "safeName": "BAD_REQUEST_BODY", - "unsafeName": "BAD_REQUEST_BODY", - }, - "snakeCase": { - "safeName": "bad_request_body", - "unsafeName": "bad_request_body", - }, - }, - }, - }, - ], - "examples": [], - "fullPath": { - "head": "/req-bodies/object", - "parts": [], - }, - "headers": [], - "id": "endpoint_inlined-requests.postWithObjectBodyandResponse", - "method": "POST", - "name": { - "camelCase": { - "safeName": "postWithObjectBodyandResponse", - "unsafeName": "postWithObjectBodyandResponse", - }, - "originalName": "postWithObjectBodyandResponse", - "pascalCase": { - "safeName": "PostWithObjectBodyandResponse", - "unsafeName": "PostWithObjectBodyandResponse", - }, - "screamingSnakeCase": { - "safeName": "POST_WITH_OBJECT_BODYAND_RESPONSE", - "unsafeName": "POST_WITH_OBJECT_BODYAND_RESPONSE", - }, - "snakeCase": { - "safeName": "post_with_object_bodyand_response", - "unsafeName": "post_with_object_bodyand_response", - }, - }, - "path": { - "head": "/object", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "name": { - "camelCase": { - "safeName": "postWithObjectBody", - "unsafeName": "postWithObjectBody", - }, - "originalName": "PostWithObjectBody", - "pascalCase": { - "safeName": "PostWithObjectBody", - "unsafeName": "PostWithObjectBody", - }, - "screamingSnakeCase": { - "safeName": "POST_WITH_OBJECT_BODY", - "unsafeName": "POST_WITH_OBJECT_BODY", - }, - "snakeCase": { - "safeName": "post_with_object_body", - "unsafeName": "post_with_object_body", - }, - }, - "properties": [ - { - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "string", - "unsafeName": "string", - }, - "originalName": "string", - "pascalCase": { - "safeName": "String", - "unsafeName": "String", - }, - "screamingSnakeCase": { - "safeName": "STRING", - "unsafeName": "STRING", - }, - "snakeCase": { - "safeName": "string", - "unsafeName": "string", - }, - }, - "wireValue": "string", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "integer", - "unsafeName": "integer", - }, - "originalName": "integer", - "pascalCase": { - "safeName": "Integer", - "unsafeName": "Integer", - }, - "screamingSnakeCase": { - "safeName": "INTEGER", - "unsafeName": "INTEGER", - }, - "snakeCase": { - "safeName": "integer", - "unsafeName": "integer", - }, - }, - "wireValue": "integer", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "nestedObject", - "unsafeName": "nestedObject", - }, - "originalName": "NestedObject", - "pascalCase": { - "safeName": "NestedObject", - "unsafeName": "NestedObject", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT", - "unsafeName": "NESTED_OBJECT", - }, - "snakeCase": { - "safeName": "nested_object", - "unsafeName": "nested_object", - }, - }, - "wireValue": "NestedObject", - }, - "valueType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "postWithObjectBody", - "unsafeName": "postWithObjectBody", - }, - "originalName": "PostWithObjectBody", - "pascalCase": { - "safeName": "PostWithObjectBody", - "unsafeName": "PostWithObjectBody", - }, - "screamingSnakeCase": { - "safeName": "POST_WITH_OBJECT_BODY", - "unsafeName": "POST_WITH_OBJECT_BODY", - }, - "snakeCase": { - "safeName": "post_with_object_body", - "unsafeName": "post_with_object_body", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "inlinedRequests", - "unsafeName": "inlinedRequests", - }, - "originalName": "inlined-requests", - "pascalCase": { - "safeName": "InlinedRequests", - "unsafeName": "InlinedRequests", - }, - "screamingSnakeCase": { - "safeName": "INLINED_REQUESTS", - "unsafeName": "INLINED_REQUESTS", - }, - "snakeCase": { - "safeName": "inlined_requests", - "unsafeName": "inlined_requests", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "inlinedRequests", - "unsafeName": "inlinedRequests", - }, - "originalName": "inlined-requests", - "pascalCase": { - "safeName": "InlinedRequests", - "unsafeName": "InlinedRequests", - }, - "screamingSnakeCase": { - "safeName": "INLINED_REQUESTS", - "unsafeName": "INLINED_REQUESTS", - }, - "snakeCase": { - "safeName": "inlined_requests", - "unsafeName": "inlined_requests", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - "service_no-auth": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/no-auth", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": "POST request with no auth", - "errors": [ - { - "docs": undefined, - "error": { - "errorId": "error_general-errors:BadRequestBody", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "badRequestBody", - "unsafeName": "badRequestBody", - }, - "originalName": "BadRequestBody", - "pascalCase": { - "safeName": "BadRequestBody", - "unsafeName": "BadRequestBody", - }, - "screamingSnakeCase": { - "safeName": "BAD_REQUEST_BODY", - "unsafeName": "BAD_REQUEST_BODY", - }, - "snakeCase": { - "safeName": "bad_request_body", - "unsafeName": "bad_request_body", - }, - }, - }, - }, - ], - "examples": [], - "fullPath": { - "head": "/no-auth", - "parts": [], - }, - "headers": [], - "id": "endpoint_no-auth.postWithNoAuth", - "method": "POST", - "name": { - "camelCase": { - "safeName": "postWithNoAuth", - "unsafeName": "postWithNoAuth", - }, - "originalName": "postWithNoAuth", - "pascalCase": { - "safeName": "PostWithNoAuth", - "unsafeName": "PostWithNoAuth", - }, - "screamingSnakeCase": { - "safeName": "POST_WITH_NO_AUTH", - "unsafeName": "POST_WITH_NO_AUTH", - }, - "snakeCase": { - "safeName": "post_with_no_auth", - "unsafeName": "post_with_no_auth", - }, - }, - "path": { - "head": "", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "unknown", - }, - "type": "reference", - }, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - "type": "json", - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "unknown", - }, - "type": "justRequestBody", - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "noAuth", - "unsafeName": "noAuth", - }, - "originalName": "no-auth", - "pascalCase": { - "safeName": "NoAuth", - "unsafeName": "NoAuth", - }, - "screamingSnakeCase": { - "safeName": "NO_AUTH", - "unsafeName": "NO_AUTH", - }, - "snakeCase": { - "safeName": "no_auth", - "unsafeName": "no_auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "noAuth", - "unsafeName": "noAuth", - }, - "originalName": "no-auth", - "pascalCase": { - "safeName": "NoAuth", - "unsafeName": "NoAuth", - }, - "screamingSnakeCase": { - "safeName": "NO_AUTH", - "unsafeName": "NO_AUTH", - }, - "snakeCase": { - "safeName": "no_auth", - "unsafeName": "no_auth", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - "service_no-req-body": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/no-req-body", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/no-req-body", - "parts": [], - }, - "headers": [], - "id": "endpoint_no-req-body.getWithNoRequestBody", - "method": "GET", - "name": { - "camelCase": { - "safeName": "getWithNoRequestBody", - "unsafeName": "getWithNoRequestBody", - }, - "originalName": "getWithNoRequestBody", - "pascalCase": { - "safeName": "GetWithNoRequestBody", - "unsafeName": "GetWithNoRequestBody", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_NO_REQUEST_BODY", - "unsafeName": "GET_WITH_NO_REQUEST_BODY", - }, - "snakeCase": { - "safeName": "get_with_no_request_body", - "unsafeName": "get_with_no_request_body", - }, - }, - "path": { - "head": "", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": undefined, - "response": { - "_visit": [Function], - "docs": undefined, - "responseBodyType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "type": "json", - }, - "sdkRequest": undefined, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "noReqBody", - "unsafeName": "noReqBody", - }, - "originalName": "no-req-body", - "pascalCase": { - "safeName": "NoReqBody", - "unsafeName": "NoReqBody", - }, - "screamingSnakeCase": { - "safeName": "NO_REQ_BODY", - "unsafeName": "NO_REQ_BODY", - }, - "snakeCase": { - "safeName": "no_req_body", - "unsafeName": "no_req_body", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "noReqBody", - "unsafeName": "noReqBody", - }, - "originalName": "no-req-body", - "pascalCase": { - "safeName": "NoReqBody", - "unsafeName": "NoReqBody", - }, - "screamingSnakeCase": { - "safeName": "NO_REQ_BODY", - "unsafeName": "NO_REQ_BODY", - }, - "snakeCase": { - "safeName": "no_req_body", - "unsafeName": "no_req_body", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - "service_req-with-headers": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "basePath": { - "head": "/test-headers", - "parts": [], - }, - "displayName": undefined, - "endpoints": [ - { - "allPathParameters": [], - "auth": true, - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "baseUrl": undefined, - "displayName": undefined, - "docs": undefined, - "errors": [], - "examples": [], - "fullPath": { - "head": "/test-headers/custom-header", - "parts": [], - }, - "headers": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "env": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "xTestEndpointHeader", - "unsafeName": "xTestEndpointHeader", - }, - "originalName": "X-TEST-ENDPOINT-HEADER", - "pascalCase": { - "safeName": "XTestEndpointHeader", - "unsafeName": "XTestEndpointHeader", - }, - "screamingSnakeCase": { - "safeName": "X_TEST_ENDPOINT_HEADER", - "unsafeName": "X_TEST_ENDPOINT_HEADER", - }, - "snakeCase": { - "safeName": "x_test_endpoint_header", - "unsafeName": "x_test_endpoint_header", - }, - }, - "wireValue": "X-TEST-ENDPOINT-HEADER", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "id": "endpoint_req-with-headers.getWithCustomHeader", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getWithCustomHeader", - "unsafeName": "getWithCustomHeader", - }, - "originalName": "getWithCustomHeader", - "pascalCase": { - "safeName": "GetWithCustomHeader", - "unsafeName": "GetWithCustomHeader", - }, - "screamingSnakeCase": { - "safeName": "GET_WITH_CUSTOM_HEADER", - "unsafeName": "GET_WITH_CUSTOM_HEADER", - }, - "snakeCase": { - "safeName": "get_with_custom_header", - "unsafeName": "get_with_custom_header", - }, - }, - "path": { - "head": "/custom-header", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "_visit": [Function], - "contentType": undefined, - "docs": undefined, - "requestBodyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "type": "reference", - }, - "response": undefined, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "_visit": [Function], - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "reqWithHeaders", - "unsafeName": "reqWithHeaders", - }, - "originalName": "ReqWithHeaders", - "pascalCase": { - "safeName": "ReqWithHeaders", - "unsafeName": "ReqWithHeaders", - }, - "screamingSnakeCase": { - "safeName": "REQ_WITH_HEADERS", - "unsafeName": "REQ_WITH_HEADERS", - }, - "snakeCase": { - "safeName": "req_with_headers", - "unsafeName": "req_with_headers", - }, - }, - }, - }, - }, - ], - "headers": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "env": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "xTestServiceHeader", - "unsafeName": "xTestServiceHeader", - }, - "originalName": "X-TEST-SERVICE-HEADER", - "pascalCase": { - "safeName": "XTestServiceHeader", - "unsafeName": "XTestServiceHeader", - }, - "screamingSnakeCase": { - "safeName": "X_TEST_SERVICE_HEADER", - "unsafeName": "X_TEST_SERVICE_HEADER", - }, - "snakeCase": { - "safeName": "x_test_service_header", - "unsafeName": "x_test_service_header", - }, - }, - "wireValue": "X-TEST-SERVICE-HEADER", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "reqWithHeaders", - "unsafeName": "reqWithHeaders", - }, - "originalName": "req-with-headers", - "pascalCase": { - "safeName": "ReqWithHeaders", - "unsafeName": "ReqWithHeaders", - }, - "screamingSnakeCase": { - "safeName": "REQ_WITH_HEADERS", - "unsafeName": "REQ_WITH_HEADERS", - }, - "snakeCase": { - "safeName": "req_with_headers", - "unsafeName": "req_with_headers", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "reqWithHeaders", - "unsafeName": "reqWithHeaders", - }, - "originalName": "req-with-headers", - "pascalCase": { - "safeName": "ReqWithHeaders", - "unsafeName": "ReqWithHeaders", - }, - "screamingSnakeCase": { - "safeName": "REQ_WITH_HEADERS", - "unsafeName": "REQ_WITH_HEADERS", - }, - "snakeCase": { - "safeName": "req_with_headers", - "unsafeName": "req_with_headers", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_endpoints": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - "file": undefined, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [ - "subpackage_endpoints/container", - "subpackage_endpoints/enum", - "subpackage_endpoints/http-methods", - "subpackage_endpoints/object", - "subpackage_endpoints/params", - "subpackage_endpoints/primitive", - "subpackage_endpoints/union", - ], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_endpoints/container": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "container", - "unsafeName": "container", - }, - "originalName": "container", - "pascalCase": { - "safeName": "Container", - "unsafeName": "Container", - }, - "screamingSnakeCase": { - "safeName": "CONTAINER", - "unsafeName": "CONTAINER", - }, - "snakeCase": { - "safeName": "container", - "unsafeName": "container", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "container", - "unsafeName": "container", - }, - "originalName": "container", - "pascalCase": { - "safeName": "Container", - "unsafeName": "Container", - }, - "screamingSnakeCase": { - "safeName": "CONTAINER", - "unsafeName": "CONTAINER", - }, - "snakeCase": { - "safeName": "container", - "unsafeName": "container", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "container", - "unsafeName": "container", - }, - "originalName": "container", - "pascalCase": { - "safeName": "Container", - "unsafeName": "Container", - }, - "screamingSnakeCase": { - "safeName": "CONTAINER", - "unsafeName": "CONTAINER", - }, - "snakeCase": { - "safeName": "container", - "unsafeName": "container", - }, - }, - "navigationConfig": undefined, - "service": "service_endpoints/container", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_endpoints/enum": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "navigationConfig": undefined, - "service": "service_endpoints/enum", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_endpoints/http-methods": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "httpMethods", - "unsafeName": "httpMethods", - }, - "originalName": "http-methods", - "pascalCase": { - "safeName": "HTTPMethods", - "unsafeName": "HTTPMethods", - }, - "screamingSnakeCase": { - "safeName": "HTTP_METHODS", - "unsafeName": "HTTP_METHODS", - }, - "snakeCase": { - "safeName": "http_methods", - "unsafeName": "http_methods", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "httpMethods", - "unsafeName": "httpMethods", - }, - "originalName": "http-methods", - "pascalCase": { - "safeName": "HTTPMethods", - "unsafeName": "HTTPMethods", - }, - "screamingSnakeCase": { - "safeName": "HTTP_METHODS", - "unsafeName": "HTTP_METHODS", - }, - "snakeCase": { - "safeName": "http_methods", - "unsafeName": "http_methods", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "httpMethods", - "unsafeName": "httpMethods", - }, - "originalName": "http-methods", - "pascalCase": { - "safeName": "HTTPMethods", - "unsafeName": "HTTPMethods", - }, - "screamingSnakeCase": { - "safeName": "HTTP_METHODS", - "unsafeName": "HTTP_METHODS", - }, - "snakeCase": { - "safeName": "http_methods", - "unsafeName": "http_methods", - }, - }, - "navigationConfig": undefined, - "service": "service_endpoints/http-methods", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_endpoints/object": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "navigationConfig": undefined, - "service": "service_endpoints/object", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_endpoints/params": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "params", - "unsafeName": "params", - }, - "originalName": "params", - "pascalCase": { - "safeName": "Params", - "unsafeName": "Params", - }, - "screamingSnakeCase": { - "safeName": "PARAMS", - "unsafeName": "PARAMS", - }, - "snakeCase": { - "safeName": "params", - "unsafeName": "params", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "params", - "unsafeName": "params", - }, - "originalName": "params", - "pascalCase": { - "safeName": "Params", - "unsafeName": "Params", - }, - "screamingSnakeCase": { - "safeName": "PARAMS", - "unsafeName": "PARAMS", - }, - "snakeCase": { - "safeName": "params", - "unsafeName": "params", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "params", - "unsafeName": "params", - }, - "originalName": "params", - "pascalCase": { - "safeName": "Params", - "unsafeName": "Params", - }, - "screamingSnakeCase": { - "safeName": "PARAMS", - "unsafeName": "PARAMS", - }, - "snakeCase": { - "safeName": "params", - "unsafeName": "params", - }, - }, - "navigationConfig": undefined, - "service": "service_endpoints/params", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_endpoints/primitive": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - "originalName": "primitive", - "pascalCase": { - "safeName": "Primitive", - "unsafeName": "Primitive", - }, - "screamingSnakeCase": { - "safeName": "PRIMITIVE", - "unsafeName": "PRIMITIVE", - }, - "snakeCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - "originalName": "primitive", - "pascalCase": { - "safeName": "Primitive", - "unsafeName": "Primitive", - }, - "screamingSnakeCase": { - "safeName": "PRIMITIVE", - "unsafeName": "PRIMITIVE", - }, - "snakeCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - "originalName": "primitive", - "pascalCase": { - "safeName": "Primitive", - "unsafeName": "Primitive", - }, - "screamingSnakeCase": { - "safeName": "PRIMITIVE", - "unsafeName": "PRIMITIVE", - }, - "snakeCase": { - "safeName": "primitive", - "unsafeName": "primitive", - }, - }, - "navigationConfig": undefined, - "service": "service_endpoints/primitive", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_endpoints/union": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - "originalName": "endpoints", - "pascalCase": { - "safeName": "Endpoints", - "unsafeName": "Endpoints", - }, - "screamingSnakeCase": { - "safeName": "ENDPOINTS", - "unsafeName": "ENDPOINTS", - }, - "snakeCase": { - "safeName": "endpoints", - "unsafeName": "endpoints", - }, - }, - ], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "navigationConfig": undefined, - "service": "service_endpoints/union", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_general-errors": { - "docs": undefined, - "errors": [ - "error_general-errors:BadRequestBody", - ], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [], - "types": [ - "type_general-errors:BadObjectRequestInfo", - ], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_inlined-requests": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "inlinedRequests", - "unsafeName": "inlinedRequests", - }, - "originalName": "inlined-requests", - "pascalCase": { - "safeName": "InlinedRequests", - "unsafeName": "InlinedRequests", - }, - "screamingSnakeCase": { - "safeName": "INLINED_REQUESTS", - "unsafeName": "INLINED_REQUESTS", - }, - "snakeCase": { - "safeName": "inlined_requests", - "unsafeName": "inlined_requests", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "inlinedRequests", - "unsafeName": "inlinedRequests", - }, - "originalName": "inlined-requests", - "pascalCase": { - "safeName": "InlinedRequests", - "unsafeName": "InlinedRequests", - }, - "screamingSnakeCase": { - "safeName": "INLINED_REQUESTS", - "unsafeName": "INLINED_REQUESTS", - }, - "snakeCase": { - "safeName": "inlined_requests", - "unsafeName": "inlined_requests", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "inlinedRequests", - "unsafeName": "inlinedRequests", - }, - "originalName": "inlined-requests", - "pascalCase": { - "safeName": "InlinedRequests", - "unsafeName": "InlinedRequests", - }, - "screamingSnakeCase": { - "safeName": "INLINED_REQUESTS", - "unsafeName": "INLINED_REQUESTS", - }, - "snakeCase": { - "safeName": "inlined_requests", - "unsafeName": "inlined_requests", - }, - }, - "navigationConfig": undefined, - "service": "service_inlined-requests", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_no-auth": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "noAuth", - "unsafeName": "noAuth", - }, - "originalName": "no-auth", - "pascalCase": { - "safeName": "NoAuth", - "unsafeName": "NoAuth", - }, - "screamingSnakeCase": { - "safeName": "NO_AUTH", - "unsafeName": "NO_AUTH", - }, - "snakeCase": { - "safeName": "no_auth", - "unsafeName": "no_auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "noAuth", - "unsafeName": "noAuth", - }, - "originalName": "no-auth", - "pascalCase": { - "safeName": "NoAuth", - "unsafeName": "NoAuth", - }, - "screamingSnakeCase": { - "safeName": "NO_AUTH", - "unsafeName": "NO_AUTH", - }, - "snakeCase": { - "safeName": "no_auth", - "unsafeName": "no_auth", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "noAuth", - "unsafeName": "noAuth", - }, - "originalName": "no-auth", - "pascalCase": { - "safeName": "NoAuth", - "unsafeName": "NoAuth", - }, - "screamingSnakeCase": { - "safeName": "NO_AUTH", - "unsafeName": "NO_AUTH", - }, - "snakeCase": { - "safeName": "no_auth", - "unsafeName": "no_auth", - }, - }, - "navigationConfig": undefined, - "service": "service_no-auth", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_no-req-body": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "noReqBody", - "unsafeName": "noReqBody", - }, - "originalName": "no-req-body", - "pascalCase": { - "safeName": "NoReqBody", - "unsafeName": "NoReqBody", - }, - "screamingSnakeCase": { - "safeName": "NO_REQ_BODY", - "unsafeName": "NO_REQ_BODY", - }, - "snakeCase": { - "safeName": "no_req_body", - "unsafeName": "no_req_body", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "noReqBody", - "unsafeName": "noReqBody", - }, - "originalName": "no-req-body", - "pascalCase": { - "safeName": "NoReqBody", - "unsafeName": "NoReqBody", - }, - "screamingSnakeCase": { - "safeName": "NO_REQ_BODY", - "unsafeName": "NO_REQ_BODY", - }, - "snakeCase": { - "safeName": "no_req_body", - "unsafeName": "no_req_body", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "noReqBody", - "unsafeName": "noReqBody", - }, - "originalName": "no-req-body", - "pascalCase": { - "safeName": "NoReqBody", - "unsafeName": "NoReqBody", - }, - "screamingSnakeCase": { - "safeName": "NO_REQ_BODY", - "unsafeName": "NO_REQ_BODY", - }, - "snakeCase": { - "safeName": "no_req_body", - "unsafeName": "no_req_body", - }, - }, - "navigationConfig": undefined, - "service": "service_no-req-body", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_req-with-headers": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "reqWithHeaders", - "unsafeName": "reqWithHeaders", - }, - "originalName": "req-with-headers", - "pascalCase": { - "safeName": "ReqWithHeaders", - "unsafeName": "ReqWithHeaders", - }, - "screamingSnakeCase": { - "safeName": "REQ_WITH_HEADERS", - "unsafeName": "REQ_WITH_HEADERS", - }, - "snakeCase": { - "safeName": "req_with_headers", - "unsafeName": "req_with_headers", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "reqWithHeaders", - "unsafeName": "reqWithHeaders", - }, - "originalName": "req-with-headers", - "pascalCase": { - "safeName": "ReqWithHeaders", - "unsafeName": "ReqWithHeaders", - }, - "screamingSnakeCase": { - "safeName": "REQ_WITH_HEADERS", - "unsafeName": "REQ_WITH_HEADERS", - }, - "snakeCase": { - "safeName": "req_with_headers", - "unsafeName": "req_with_headers", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "reqWithHeaders", - "unsafeName": "reqWithHeaders", - }, - "originalName": "req-with-headers", - "pascalCase": { - "safeName": "ReqWithHeaders", - "unsafeName": "ReqWithHeaders", - }, - "screamingSnakeCase": { - "safeName": "REQ_WITH_HEADERS", - "unsafeName": "REQ_WITH_HEADERS", - }, - "snakeCase": { - "safeName": "req_with_headers", - "unsafeName": "req_with_headers", - }, - }, - "navigationConfig": undefined, - "service": "service_req-with-headers", - "subpackages": [], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_types": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": undefined, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [ - "subpackage_types/enum", - "subpackage_types/object", - "subpackage_types/union", - ], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_types/enum": { - "docs": undefined, - "errors": [ - "error_types/enum:ErrorWithEnumBody", - ], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [], - "types": [ - "type_types/enum:WeatherReport", - ], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_types/object": { - "docs": undefined, - "errors": [ - "error_types/object:ObjectWithOptionalFieldError", - "error_types/object:ObjectWithRequiredFieldError", - "error_types/object:NestedObjectWithOptionalFieldError", - "error_types/object:NestedObjectWithRequiredFieldError", - ], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [], - "types": [ - "type_types/object:ObjectWithOptionalField", - "type_types/object:ObjectWithRequiredField", - "type_types/object:NestedObjectWithOptionalField", - "type_types/object:NestedObjectWithRequiredField", - ], - "webhooks": undefined, - "websocket": undefined, - }, - "subpackage_types/union": { - "docs": undefined, - "errors": [ - "error_types/union:ErrorWithUnionBody", - ], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [], - "types": [ - "type_types/union:Animal", - "type_types/union:Dog", - "type_types/union:Cat", - ], - "webhooks": undefined, - "websocket": undefined, - }, - }, - "types": { - "type_general-errors:BadObjectRequestInfo": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "generalErrors", - "unsafeName": "generalErrors", - }, - "originalName": "general-errors", - "pascalCase": { - "safeName": "GeneralErrors", - "unsafeName": "GeneralErrors", - }, - "screamingSnakeCase": { - "safeName": "GENERAL_ERRORS", - "unsafeName": "GENERAL_ERRORS", - }, - "snakeCase": { - "safeName": "general_errors", - "unsafeName": "general_errors", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "badObjectRequestInfo", - "unsafeName": "badObjectRequestInfo", - }, - "originalName": "BadObjectRequestInfo", - "pascalCase": { - "safeName": "BadObjectRequestInfo", - "unsafeName": "BadObjectRequestInfo", - }, - "screamingSnakeCase": { - "safeName": "BAD_OBJECT_REQUEST_INFO", - "unsafeName": "BAD_OBJECT_REQUEST_INFO", - }, - "snakeCase": { - "safeName": "bad_object_request_info", - "unsafeName": "bad_object_request_info", - }, - }, - "typeId": "type_general-errors:BadObjectRequestInfo", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "_visit": [Function], - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "message", - "unsafeName": "message", - }, - "originalName": "message", - "pascalCase": { - "safeName": "Message", - "unsafeName": "Message", - }, - "screamingSnakeCase": { - "safeName": "MESSAGE", - "unsafeName": "MESSAGE", - }, - "snakeCase": { - "safeName": "message", - "unsafeName": "message", - }, - }, - "wireValue": "message", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "type": "object", - }, - }, - "type_types/enum:WeatherReport": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - "originalName": "enum", - "pascalCase": { - "safeName": "Enum", - "unsafeName": "Enum", - }, - "screamingSnakeCase": { - "safeName": "ENUM", - "unsafeName": "ENUM", - }, - "snakeCase": { - "safeName": "enum", - "unsafeName": "enum", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "weatherReport", - "unsafeName": "weatherReport", - }, - "originalName": "WeatherReport", - "pascalCase": { - "safeName": "WeatherReport", - "unsafeName": "WeatherReport", - }, - "screamingSnakeCase": { - "safeName": "WEATHER_REPORT", - "unsafeName": "WEATHER_REPORT", - }, - "snakeCase": { - "safeName": "weather_report", - "unsafeName": "weather_report", - }, - }, - "typeId": "type_types/enum:WeatherReport", - }, - "referencedTypes": [], - "shape": { - "_type": "enum", - "_visit": [Function], - "default": undefined, - "type": "enum", - "values": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "sunny", - "unsafeName": "sunny", - }, - "originalName": "SUNNY", - "pascalCase": { - "safeName": "Sunny", - "unsafeName": "Sunny", - }, - "screamingSnakeCase": { - "safeName": "SUNNY", - "unsafeName": "SUNNY", - }, - "snakeCase": { - "safeName": "sunny", - "unsafeName": "sunny", - }, - }, - "wireValue": "SUNNY", - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "cloudy", - "unsafeName": "cloudy", - }, - "originalName": "CLOUDY", - "pascalCase": { - "safeName": "Cloudy", - "unsafeName": "Cloudy", - }, - "screamingSnakeCase": { - "safeName": "CLOUDY", - "unsafeName": "CLOUDY", - }, - "snakeCase": { - "safeName": "cloudy", - "unsafeName": "cloudy", - }, - }, - "wireValue": "CLOUDY", - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "raining", - "unsafeName": "raining", - }, - "originalName": "RAINING", - "pascalCase": { - "safeName": "Raining", - "unsafeName": "Raining", - }, - "screamingSnakeCase": { - "safeName": "RAINING", - "unsafeName": "RAINING", - }, - "snakeCase": { - "safeName": "raining", - "unsafeName": "raining", - }, - }, - "wireValue": "RAINING", - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "snowing", - "unsafeName": "snowing", - }, - "originalName": "SNOWING", - "pascalCase": { - "safeName": "Snowing", - "unsafeName": "Snowing", - }, - "screamingSnakeCase": { - "safeName": "SNOWING", - "unsafeName": "SNOWING", - }, - "snakeCase": { - "safeName": "snowing", - "unsafeName": "snowing", - }, - }, - "wireValue": "SNOWING", - }, - }, - ], - }, - }, - "type_types/object:NestedObjectWithOptionalField": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "nestedObjectWithOptionalField", - "unsafeName": "nestedObjectWithOptionalField", - }, - "originalName": "NestedObjectWithOptionalField", - "pascalCase": { - "safeName": "NestedObjectWithOptionalField", - "unsafeName": "NestedObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_optional_field", - "unsafeName": "nested_object_with_optional_field", - }, - }, - "typeId": "type_types/object:NestedObjectWithOptionalField", - }, - "referencedTypes": [ - { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "typeId": "type_types/object:ObjectWithOptionalField", - }, - ], - "shape": { - "_type": "object", - "_visit": [Function], - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "string", - "unsafeName": "string", - }, - "originalName": "string", - "pascalCase": { - "safeName": "String", - "unsafeName": "String", - }, - "screamingSnakeCase": { - "safeName": "STRING", - "unsafeName": "STRING", - }, - "snakeCase": { - "safeName": "string", - "unsafeName": "string", - }, - }, - "wireValue": "string", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "nestedObject", - "unsafeName": "nestedObject", - }, - "originalName": "NestedObject", - "pascalCase": { - "safeName": "NestedObject", - "unsafeName": "NestedObject", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT", - "unsafeName": "NESTED_OBJECT", - }, - "snakeCase": { - "safeName": "nested_object", - "unsafeName": "nested_object", - }, - }, - "wireValue": "NestedObject", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - }, - }, - }, - ], - "type": "object", - }, - }, - "type_types/object:NestedObjectWithRequiredField": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "nestedObjectWithRequiredField", - "unsafeName": "nestedObjectWithRequiredField", - }, - "originalName": "NestedObjectWithRequiredField", - "pascalCase": { - "safeName": "NestedObjectWithRequiredField", - "unsafeName": "NestedObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "nested_object_with_required_field", - "unsafeName": "nested_object_with_required_field", - }, - }, - "typeId": "type_types/object:NestedObjectWithRequiredField", - }, - "referencedTypes": [ - { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "typeId": "type_types/object:ObjectWithOptionalField", - }, - ], - "shape": { - "_type": "object", - "_visit": [Function], - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "string", - "unsafeName": "string", - }, - "originalName": "string", - "pascalCase": { - "safeName": "String", - "unsafeName": "String", - }, - "screamingSnakeCase": { - "safeName": "STRING", - "unsafeName": "STRING", - }, - "snakeCase": { - "safeName": "string", - "unsafeName": "string", - }, - }, - "wireValue": "string", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "nestedObject", - "unsafeName": "nestedObject", - }, - "originalName": "NestedObject", - "pascalCase": { - "safeName": "NestedObject", - "unsafeName": "NestedObject", - }, - "screamingSnakeCase": { - "safeName": "NESTED_OBJECT", - "unsafeName": "NESTED_OBJECT", - }, - "snakeCase": { - "safeName": "nested_object", - "unsafeName": "nested_object", - }, - }, - "wireValue": "NestedObject", - }, - "valueType": { - "_type": "named", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "type": "named", - "typeId": "type_types/object:ObjectWithOptionalField", - }, - }, - ], - "type": "object", - }, - }, - "type_types/object:ObjectWithOptionalField": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "objectWithOptionalField", - "unsafeName": "objectWithOptionalField", - }, - "originalName": "ObjectWithOptionalField", - "pascalCase": { - "safeName": "ObjectWithOptionalField", - "unsafeName": "ObjectWithOptionalField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_OPTIONAL_FIELD", - "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", - }, - "snakeCase": { - "safeName": "object_with_optional_field", - "unsafeName": "object_with_optional_field", - }, - }, - "typeId": "type_types/object:ObjectWithOptionalField", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "_visit": [Function], - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "string", - "unsafeName": "string", - }, - "originalName": "string", - "pascalCase": { - "safeName": "String", - "unsafeName": "String", - }, - "screamingSnakeCase": { - "safeName": "STRING", - "unsafeName": "STRING", - }, - "snakeCase": { - "safeName": "string", - "unsafeName": "string", - }, - }, - "wireValue": "string", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "integer", - "unsafeName": "integer", - }, - "originalName": "integer", - "pascalCase": { - "safeName": "Integer", - "unsafeName": "Integer", - }, - "screamingSnakeCase": { - "safeName": "INTEGER", - "unsafeName": "INTEGER", - }, - "snakeCase": { - "safeName": "integer", - "unsafeName": "integer", - }, - }, - "wireValue": "integer", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "long", - "unsafeName": "long", - }, - "originalName": "long", - "pascalCase": { - "safeName": "Long", - "unsafeName": "Long", - }, - "screamingSnakeCase": { - "safeName": "LONG", - "unsafeName": "LONG", - }, - "snakeCase": { - "safeName": "long", - "unsafeName": "long", - }, - }, - "wireValue": "long", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "LONG", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "double", - "unsafeName": "double", - }, - "originalName": "double", - "pascalCase": { - "safeName": "Double", - "unsafeName": "Double", - }, - "screamingSnakeCase": { - "safeName": "DOUBLE", - "unsafeName": "DOUBLE", - }, - "snakeCase": { - "safeName": "double", - "unsafeName": "double", - }, - }, - "wireValue": "double", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "DOUBLE", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "bool", - "unsafeName": "bool", - }, - "originalName": "bool", - "pascalCase": { - "safeName": "Bool", - "unsafeName": "Bool", - }, - "screamingSnakeCase": { - "safeName": "BOOL", - "unsafeName": "BOOL", - }, - "snakeCase": { - "safeName": "bool", - "unsafeName": "bool", - }, - }, - "wireValue": "bool", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "datetime", - "unsafeName": "datetime", - }, - "originalName": "datetime", - "pascalCase": { - "safeName": "Datetime", - "unsafeName": "Datetime", - }, - "screamingSnakeCase": { - "safeName": "DATETIME", - "unsafeName": "DATETIME", - }, - "snakeCase": { - "safeName": "datetime", - "unsafeName": "datetime", - }, - }, - "wireValue": "datetime", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "DATE_TIME", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "date", - "unsafeName": "date", - }, - "originalName": "date", - "pascalCase": { - "safeName": "Date", - "unsafeName": "Date", - }, - "screamingSnakeCase": { - "safeName": "DATE", - "unsafeName": "DATE", - }, - "snakeCase": { - "safeName": "date", - "unsafeName": "date", - }, - }, - "wireValue": "date", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "DATE", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "uuid", - "unsafeName": "uuid", - }, - "originalName": "uuid", - "pascalCase": { - "safeName": "UUID", - "unsafeName": "UUID", - }, - "screamingSnakeCase": { - "safeName": "UUID", - "unsafeName": "UUID", - }, - "snakeCase": { - "safeName": "uuid", - "unsafeName": "uuid", - }, - }, - "wireValue": "uuid", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "UUID", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "base64", - "unsafeName": "base64", - }, - "originalName": "base64", - "pascalCase": { - "safeName": "Base64", - "unsafeName": "Base64", - }, - "screamingSnakeCase": { - "safeName": "BASE64", - "unsafeName": "BASE64", - }, - "snakeCase": { - "safeName": "base64", - "unsafeName": "base64", - }, - }, - "wireValue": "base64", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "BASE_64", - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "wireValue": "list", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "set", - "unsafeName": "set", - }, - "originalName": "set", - "pascalCase": { - "safeName": "Set", - "unsafeName": "Set", - }, - "screamingSnakeCase": { - "safeName": "SET", - "unsafeName": "SET", - }, - "snakeCase": { - "safeName": "set", - "unsafeName": "set", - }, - }, - "wireValue": "set", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - }, - }, - ], - "type": "object", - }, - }, - "type_types/object:ObjectWithRequiredField": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "object", - "unsafeName": "object", - }, - "originalName": "object", - "pascalCase": { - "safeName": "Object", - "unsafeName": "Object", - }, - "screamingSnakeCase": { - "safeName": "OBJECT", - "unsafeName": "OBJECT", - }, - "snakeCase": { - "safeName": "object", - "unsafeName": "object", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "objectWithRequiredField", - "unsafeName": "objectWithRequiredField", - }, - "originalName": "ObjectWithRequiredField", - "pascalCase": { - "safeName": "ObjectWithRequiredField", - "unsafeName": "ObjectWithRequiredField", - }, - "screamingSnakeCase": { - "safeName": "OBJECT_WITH_REQUIRED_FIELD", - "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", - }, - "snakeCase": { - "safeName": "object_with_required_field", - "unsafeName": "object_with_required_field", - }, - }, - "typeId": "type_types/object:ObjectWithRequiredField", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "_visit": [Function], - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "string", - "unsafeName": "string", - }, - "originalName": "string", - "pascalCase": { - "safeName": "String", - "unsafeName": "String", - }, - "screamingSnakeCase": { - "safeName": "STRING", - "unsafeName": "STRING", - }, - "snakeCase": { - "safeName": "string", - "unsafeName": "string", - }, - }, - "wireValue": "string", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "type": "object", - }, - }, - "type_types/union:Animal": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - "originalName": "Animal", - "pascalCase": { - "safeName": "Animal", - "unsafeName": "Animal", - }, - "screamingSnakeCase": { - "safeName": "ANIMAL", - "unsafeName": "ANIMAL", - }, - "snakeCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - }, - "typeId": "type_types/union:Animal", - }, - "referencedTypes": [ - { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - "originalName": "Dog", - "pascalCase": { - "safeName": "Dog", - "unsafeName": "Dog", - }, - "screamingSnakeCase": { - "safeName": "DOG", - "unsafeName": "DOG", - }, - "snakeCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - }, - "typeId": "type_types/union:Dog", - }, - { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - "originalName": "Cat", - "pascalCase": { - "safeName": "Cat", - "unsafeName": "Cat", - }, - "screamingSnakeCase": { - "safeName": "CAT", - "unsafeName": "CAT", - }, - "snakeCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - }, - "typeId": "type_types/union:Cat", - }, - ], - "shape": { - "_type": "union", - "_visit": [Function], - "baseProperties": [], - "discriminant": { - "name": { - "camelCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - "originalName": "animal", - "pascalCase": { - "safeName": "Animal", - "unsafeName": "Animal", - }, - "screamingSnakeCase": { - "safeName": "ANIMAL", - "unsafeName": "ANIMAL", - }, - "snakeCase": { - "safeName": "animal", - "unsafeName": "animal", - }, - }, - "wireValue": "animal", - }, - "extends": [], - "type": "union", - "types": [ - { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - "originalName": "dog", - "pascalCase": { - "safeName": "Dog", - "unsafeName": "Dog", - }, - "screamingSnakeCase": { - "safeName": "DOG", - "unsafeName": "DOG", - }, - "snakeCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - }, - "wireValue": "dog", - }, - "docs": undefined, - "shape": { - "_type": "samePropertiesAsObject", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - "originalName": "Dog", - "pascalCase": { - "safeName": "Dog", - "unsafeName": "Dog", - }, - "screamingSnakeCase": { - "safeName": "DOG", - "unsafeName": "DOG", - }, - "snakeCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - }, - "propertiesType": "samePropertiesAsObject", - "type": "named", - "typeId": "type_types/union:Dog", - }, - }, - { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - "originalName": "cat", - "pascalCase": { - "safeName": "Cat", - "unsafeName": "Cat", - }, - "screamingSnakeCase": { - "safeName": "CAT", - "unsafeName": "CAT", - }, - "snakeCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - }, - "wireValue": "cat", - }, - "docs": undefined, - "shape": { - "_type": "samePropertiesAsObject", - "_visit": [Function], - "default": undefined, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "inline": undefined, - "name": { - "camelCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - "originalName": "Cat", - "pascalCase": { - "safeName": "Cat", - "unsafeName": "Cat", - }, - "screamingSnakeCase": { - "safeName": "CAT", - "unsafeName": "CAT", - }, - "snakeCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - }, - "propertiesType": "samePropertiesAsObject", - "type": "named", - "typeId": "type_types/union:Cat", - }, - }, - ], - }, - }, - "type_types/union:Cat": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - "originalName": "Cat", - "pascalCase": { - "safeName": "Cat", - "unsafeName": "Cat", - }, - "screamingSnakeCase": { - "safeName": "CAT", - "unsafeName": "CAT", - }, - "snakeCase": { - "safeName": "cat", - "unsafeName": "cat", - }, - }, - "typeId": "type_types/union:Cat", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "_visit": [Function], - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "likesToMeow", - "unsafeName": "likesToMeow", - }, - "originalName": "likesToMeow", - "pascalCase": { - "safeName": "LikesToMeow", - "unsafeName": "LikesToMeow", - }, - "screamingSnakeCase": { - "safeName": "LIKES_TO_MEOW", - "unsafeName": "LIKES_TO_MEOW", - }, - "snakeCase": { - "safeName": "likes_to_meow", - "unsafeName": "likes_to_meow", - }, - }, - "wireValue": "likesToMeow", - }, - "valueType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - }, - ], - "type": "object", - }, - }, - "type_types/union:Dog": { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "union", - "unsafeName": "union", - }, - "originalName": "union", - "pascalCase": { - "safeName": "Union", - "unsafeName": "Union", - }, - "screamingSnakeCase": { - "safeName": "UNION", - "unsafeName": "UNION", - }, - "snakeCase": { - "safeName": "union", - "unsafeName": "union", - }, - }, - "packagePath": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - }, - "name": { - "camelCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - "originalName": "Dog", - "pascalCase": { - "safeName": "Dog", - "unsafeName": "Dog", - }, - "screamingSnakeCase": { - "safeName": "DOG", - "unsafeName": "DOG", - }, - "snakeCase": { - "safeName": "dog", - "unsafeName": "dog", - }, - }, - "typeId": "type_types/union:Dog", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "_visit": [Function], - "extendedProperties": [], - "extends": [], - "extraProperties": false, - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "name": { - "camelCase": { - "safeName": "likesToWoof", - "unsafeName": "likesToWoof", - }, - "originalName": "likesToWoof", - "pascalCase": { - "safeName": "LikesToWoof", - "unsafeName": "LikesToWoof", - }, - "screamingSnakeCase": { - "safeName": "LIKES_TO_WOOF", - "unsafeName": "LIKES_TO_WOOF", - }, - "snakeCase": { - "safeName": "likes_to_woof", - "unsafeName": "likes_to_woof", - }, - }, - "wireValue": "likesToWoof", - }, - "valueType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - }, - ], - "type": "object", - }, - }, - }, - "variables": [], - "webhookGroups": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v28-to-v27/__test__/__snapshots__/migrateFromV28ToV27.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v28-to-v27/__test__/__snapshots__/migrateFromV28ToV27.test.ts.snap index 6410d2df594..9ee86c48b29 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v28-to-v27/__test__/__snapshots__/migrateFromV28ToV27.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v28-to-v27/__test__/__snapshots__/migrateFromV28ToV27.test.ts.snap @@ -635,639 +635,3 @@ exports[`migrateFromV28ToV27 > snapshot 1`] = ` "webhookGroups": {}, } `; - -exports[`migrateFromV28ToV27 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:UnauthorizedUser", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [], - "fullPath": { - "head": "/", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.getUnauthorizedUser", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getUnauthorizedUser", - "unsafeName": "getUnauthorizedUser", - }, - "originalName": "getUnauthorizedUser", - "pascalCase": { - "safeName": "GetUnauthorizedUser", - "unsafeName": "GetUnauthorizedUser", - }, - "screamingSnakeCase": { - "safeName": "GET_UNAUTHORIZED_USER", - "unsafeName": "GET_UNAUTHORIZED_USER", - }, - "snakeCase": { - "safeName": "get_unauthorized_user", - "unsafeName": "get_unauthorized_user", - }, - }, - "path": { - "head": "/", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "name": { - "camelCase": { - "safeName": "getUnauthorizedUserRequest", - "unsafeName": "getUnauthorizedUserRequest", - }, - "originalName": "GetUnauthorizedUserRequest", - "pascalCase": { - "safeName": "GetUnauthorizedUserRequest", - "unsafeName": "GetUnauthorizedUserRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_UNAUTHORIZED_USER_REQUEST", - "unsafeName": "GET_UNAUTHORIZED_USER_REQUEST", - }, - "snakeCase": { - "safeName": "get_unauthorized_user_request", - "unsafeName": "get_unauthorized_user_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - "originalName": "authorized", - "pascalCase": { - "safeName": "Authorized", - "unsafeName": "Authorized", - }, - "screamingSnakeCase": { - "safeName": "AUTHORIZED", - "unsafeName": "AUTHORIZED", - }, - "snakeCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - }, - "wireValue": "authorized", - }, - "valueType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "unauthorizedUser", - "unsafeName": "unauthorizedUser", - }, - "originalName": "UnauthorizedUser", - "pascalCase": { - "safeName": "UnauthorizedUser", - "unsafeName": "UnauthorizedUser", - }, - "screamingSnakeCase": { - "safeName": "UNAUTHORIZED_USER", - "unsafeName": "UNAUTHORIZED_USER", - }, - "snakeCase": { - "safeName": "unauthorized_user", - "unsafeName": "unauthorized_user", - }, - }, - "typeId": "type_service:UnauthorizedUser", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "getUnauthorizedUserRequest", - "unsafeName": "getUnauthorizedUserRequest", - }, - "originalName": "GetUnauthorizedUserRequest", - "pascalCase": { - "safeName": "GetUnauthorizedUserRequest", - "unsafeName": "GetUnauthorizedUserRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_UNAUTHORIZED_USER_REQUEST", - "unsafeName": "GET_UNAUTHORIZED_USER_REQUEST", - }, - "snakeCase": { - "safeName": "get_unauthorized_user_request", - "unsafeName": "get_unauthorized_user_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:UnauthorizedUser", - ], - "webhooks": null, - }, - }, - "types": { - "type_service:UnauthorizedUser": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "unauthorizedUser", - "unsafeName": "unauthorizedUser", - }, - "originalName": "UnauthorizedUser", - "pascalCase": { - "safeName": "UnauthorizedUser", - "unsafeName": "UnauthorizedUser", - }, - "screamingSnakeCase": { - "safeName": "UNAUTHORIZED_USER", - "unsafeName": "UNAUTHORIZED_USER", - }, - "snakeCase": { - "safeName": "unauthorized_user", - "unsafeName": "unauthorized_user", - }, - }, - "typeId": "type_service:UnauthorizedUser", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - "originalName": "authorized", - "pascalCase": { - "safeName": "Authorized", - "unsafeName": "Authorized", - }, - "screamingSnakeCase": { - "safeName": "AUTHORIZED", - "unsafeName": "AUTHORIZED", - }, - "snakeCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - }, - "wireValue": "authorized", - }, - "valueType": { - "_type": "primitive", - "primitive": "BOOLEAN", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v29-to-v28/__test__/__snapshots__/migrateFromV29ToV28.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v29-to-v28/__test__/__snapshots__/migrateFromV29ToV28.test.ts.snap index 87d736e9ce1..c8cb429153e 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v29-to-v28/__test__/__snapshots__/migrateFromV29ToV28.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v29-to-v28/__test__/__snapshots__/migrateFromV29ToV28.test.ts.snap @@ -1134,1138 +1134,3 @@ exports[`migrateFromV29ToV28 > snapshot 1`] = ` "webhookGroups": {}, } `; - -exports[`migrateFromV29ToV28 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - "subpackage_types", - ], - "types": [], - "webhooks": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_types:Car", - "type_types:Wheel", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:UnauthorizedUser", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [], - "fullPath": { - "head": "/", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.getUnauthorizedUser", - "method": "POST", - "name": { - "camelCase": { - "safeName": "getUnauthorizedUser", - "unsafeName": "getUnauthorizedUser", - }, - "originalName": "getUnauthorizedUser", - "pascalCase": { - "safeName": "GetUnauthorizedUser", - "unsafeName": "GetUnauthorizedUser", - }, - "screamingSnakeCase": { - "safeName": "GET_UNAUTHORIZED_USER", - "unsafeName": "GET_UNAUTHORIZED_USER", - }, - "snakeCase": { - "safeName": "get_unauthorized_user", - "unsafeName": "get_unauthorized_user", - }, - }, - "path": { - "head": "/", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "name": { - "camelCase": { - "safeName": "getUnauthorizedUserRequest", - "unsafeName": "getUnauthorizedUserRequest", - }, - "originalName": "GetUnauthorizedUserRequest", - "pascalCase": { - "safeName": "GetUnauthorizedUserRequest", - "unsafeName": "GetUnauthorizedUserRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_UNAUTHORIZED_USER_REQUEST", - "unsafeName": "GET_UNAUTHORIZED_USER_REQUEST", - }, - "snakeCase": { - "safeName": "get_unauthorized_user_request", - "unsafeName": "get_unauthorized_user_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - "originalName": "authorized", - "pascalCase": { - "safeName": "Authorized", - "unsafeName": "Authorized", - }, - "screamingSnakeCase": { - "safeName": "AUTHORIZED", - "unsafeName": "AUTHORIZED", - }, - "snakeCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - }, - "wireValue": "authorized", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "boolean": false, - "type": "boolean", - }, - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "unauthorizedUser", - "unsafeName": "unauthorizedUser", - }, - "originalName": "UnauthorizedUser", - "pascalCase": { - "safeName": "UnauthorizedUser", - "unsafeName": "UnauthorizedUser", - }, - "screamingSnakeCase": { - "safeName": "UNAUTHORIZED_USER", - "unsafeName": "UNAUTHORIZED_USER", - }, - "snakeCase": { - "safeName": "unauthorized_user", - "unsafeName": "unauthorized_user", - }, - }, - "typeId": "type_service:UnauthorizedUser", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "getUnauthorizedUserRequest", - "unsafeName": "getUnauthorizedUserRequest", - }, - "originalName": "GetUnauthorizedUserRequest", - "pascalCase": { - "safeName": "GetUnauthorizedUserRequest", - "unsafeName": "GetUnauthorizedUserRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_UNAUTHORIZED_USER_REQUEST", - "unsafeName": "GET_UNAUTHORIZED_USER_REQUEST", - }, - "snakeCase": { - "safeName": "get_unauthorized_user_request", - "unsafeName": "get_unauthorized_user_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:UnauthorizedUser", - ], - "webhooks": null, - }, - "subpackage_types": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "navigationConfig": null, - "service": null, - "subpackages": [], - "types": [ - "type_types:Car", - "type_types:Wheel", - ], - "webhooks": null, - }, - }, - "types": { - "type_service:UnauthorizedUser": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "unauthorizedUser", - "unsafeName": "unauthorizedUser", - }, - "originalName": "UnauthorizedUser", - "pascalCase": { - "safeName": "UnauthorizedUser", - "unsafeName": "UnauthorizedUser", - }, - "screamingSnakeCase": { - "safeName": "UNAUTHORIZED_USER", - "unsafeName": "UNAUTHORIZED_USER", - }, - "snakeCase": { - "safeName": "unauthorized_user", - "unsafeName": "unauthorized_user", - }, - }, - "typeId": "type_service:UnauthorizedUser", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - "originalName": "authorized", - "pascalCase": { - "safeName": "Authorized", - "unsafeName": "Authorized", - }, - "screamingSnakeCase": { - "safeName": "AUTHORIZED", - "unsafeName": "AUTHORIZED", - }, - "snakeCase": { - "safeName": "authorized", - "unsafeName": "authorized", - }, - }, - "wireValue": "authorized", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "boolean": false, - "type": "boolean", - }, - }, - }, - }, - ], - }, - }, - "type_types:Car": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "car", - "unsafeName": "car", - }, - "originalName": "Car", - "pascalCase": { - "safeName": "Car", - "unsafeName": "Car", - }, - "screamingSnakeCase": { - "safeName": "CAR", - "unsafeName": "CAR", - }, - "snakeCase": { - "safeName": "car", - "unsafeName": "car", - }, - }, - "typeId": "type_types:Car", - }, - "referencedTypes": [ - { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "wheel", - "unsafeName": "wheel", - }, - "originalName": "Wheel", - "pascalCase": { - "safeName": "Wheel", - "unsafeName": "Wheel", - }, - "screamingSnakeCase": { - "safeName": "WHEEL", - "unsafeName": "WHEEL", - }, - "snakeCase": { - "safeName": "wheel", - "unsafeName": "wheel", - }, - }, - "typeId": "type_types:Wheel", - }, - ], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "wheels", - "unsafeName": "wheels", - }, - "originalName": "wheels", - "pascalCase": { - "safeName": "Wheels", - "unsafeName": "Wheels", - }, - "screamingSnakeCase": { - "safeName": "WHEELS", - "unsafeName": "WHEELS", - }, - "snakeCase": { - "safeName": "wheels", - "unsafeName": "wheels", - }, - }, - "wireValue": "wheels", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "wheel", - "unsafeName": "wheel", - }, - "originalName": "Wheel", - "pascalCase": { - "safeName": "Wheel", - "unsafeName": "Wheel", - }, - "screamingSnakeCase": { - "safeName": "WHEEL", - "unsafeName": "WHEEL", - }, - "snakeCase": { - "safeName": "wheel", - "unsafeName": "wheel", - }, - }, - "typeId": "type_types:Wheel", - }, - }, - }, - }, - ], - }, - }, - "type_types:Wheel": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "wheel", - "unsafeName": "wheel", - }, - "originalName": "Wheel", - "pascalCase": { - "safeName": "Wheel", - "unsafeName": "Wheel", - }, - "screamingSnakeCase": { - "safeName": "WHEEL", - "unsafeName": "WHEEL", - }, - "snakeCase": { - "safeName": "wheel", - "unsafeName": "wheel", - }, - }, - "typeId": "type_types:Wheel", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "size", - "unsafeName": "size", - }, - "originalName": "size", - "pascalCase": { - "safeName": "Size", - "unsafeName": "Size", - }, - "screamingSnakeCase": { - "safeName": "SIZE", - "unsafeName": "SIZE", - }, - "snakeCase": { - "safeName": "size", - "unsafeName": "size", - }, - }, - "wireValue": "size", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "color", - "unsafeName": "color", - }, - "originalName": "color", - "pascalCase": { - "safeName": "Color", - "unsafeName": "Color", - }, - "screamingSnakeCase": { - "safeName": "COLOR", - "unsafeName": "COLOR", - }, - "snakeCase": { - "safeName": "color", - "unsafeName": "color", - }, - }, - "wireValue": "color", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v30-to-v29/__test__/__snapshots__/migrateFromV30ToV29.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v30-to-v29/__test__/__snapshots__/migrateFromV30ToV29.test.ts.snap index 09f90dcd65d..d0cccffaf01 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v30-to-v29/__test__/__snapshots__/migrateFromV30ToV29.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v30-to-v29/__test__/__snapshots__/migrateFromV30ToV29.test.ts.snap @@ -1874,1878 +1874,3 @@ exports[`migrateFromV30ToV29 > snapshot 1`] = ` "webhookGroups": {}, } `; - -exports[`migrateFromV30ToV29 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - "subpackage_types", - ], - "types": [], - "webhooks": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_types:Exception", - "type_types:ExceptionInfo", - "type_types:ExceptionStatus", - ], - "typesReferencedOnlyByService": {}, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "docs": null, - "endpointHeaders": [ - { - "value": { - "jsonExample": "0.0.1", - "shape": { - "primitive": { - "string": "0.0.1", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "X-API-Version", - }, - ], - "endpointPathParameters": [ - { - "key": "id", - "value": { - "jsonExample": "id-2sdx82h", - "shape": { - "primitive": { - "string": "id-2sdx82h", - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "name": null, - "queryParameters": [ - { - "value": { - "jsonExample": "reverse", - "shape": { - "primitive": { - "string": "reverse", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "filter", - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//check/id-2sdx82h", - }, - ], - "fullPath": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "xAPIVersion", - "unsafeName": "xAPIVersion", - }, - "originalName": "X-API-Version", - "pascalCase": { - "safeName": "XAPIVersion", - "unsafeName": "XAPIVersion", - }, - "screamingSnakeCase": { - "safeName": "X_API_VERSION", - "unsafeName": "X_API_VERSION", - }, - "snakeCase": { - "safeName": "x_api_version", - "unsafeName": "x_api_version", - }, - }, - "wireValue": "X-API-Version", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "id": "endpoint_service.check", - "method": "GET", - "name": { - "camelCase": { - "safeName": "check", - "unsafeName": "check", - }, - "originalName": "check", - "pascalCase": { - "safeName": "Check", - "unsafeName": "Check", - }, - "screamingSnakeCase": { - "safeName": "CHECK", - "unsafeName": "CHECK", - }, - "snakeCase": { - "safeName": "check", - "unsafeName": "check", - }, - }, - "path": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "requestBody": null, - "response": null, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "checkRequest", - "unsafeName": "checkRequest", - }, - "originalName": "CheckRequest", - "pascalCase": { - "safeName": "CheckRequest", - "unsafeName": "CheckRequest", - }, - "screamingSnakeCase": { - "safeName": "CHECK_REQUEST", - "unsafeName": "CHECK_REQUEST", - }, - "snakeCase": { - "safeName": "check_request", - "unsafeName": "check_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [], - "webhooks": null, - }, - "subpackage_types": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "navigationConfig": null, - "service": null, - "subpackages": [], - "types": [ - "type_types:Exception", - "type_types:ExceptionInfo", - "type_types:ExceptionStatus", - ], - "webhooks": null, - }, - }, - "types": { - "type_types:Exception": { - "availability": null, - "docs": null, - "examples": [ - { - "docs": null, - "jsonExample": { - "exceptionMessage": "This component is unavailable!", - "exceptionStacktrace": "", - "exceptionType": "Unavailable", - "type": "info", - }, - "name": { - "camelCase": { - "safeName": "one", - "unsafeName": "one", - }, - "originalName": "One", - "pascalCase": { - "safeName": "One", - "unsafeName": "One", - }, - "screamingSnakeCase": { - "safeName": "ONE", - "unsafeName": "ONE", - }, - "snakeCase": { - "safeName": "one", - "unsafeName": "one", - }, - }, - "shape": { - "properties": { - "shape": { - "properties": [ - { - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - "value": { - "jsonExample": "Unavailable", - "shape": { - "primitive": { - "string": "Unavailable", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "exceptionType", - }, - { - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - "value": { - "jsonExample": "This component is unavailable!", - "shape": { - "primitive": { - "string": "This component is unavailable!", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "exceptionMessage", - }, - { - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - "value": { - "jsonExample": "", - "shape": { - "primitive": { - "string": "", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "exceptionStacktrace", - }, - ], - "type": "object", - }, - "type": "samePropertiesAsObject", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - }, - "type": "union", - "wireDiscriminantValue": "info", - }, - }, - ], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exception", - "unsafeName": "exception", - }, - "originalName": "Exception", - "pascalCase": { - "safeName": "Exception", - "unsafeName": "Exception", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION", - "unsafeName": "EXCEPTION", - }, - "snakeCase": { - "safeName": "exception", - "unsafeName": "exception", - }, - }, - "typeId": "type_types:Exception", - }, - "referencedTypes": [ - "type_types:ExceptionInfo", - "type_types:ExceptionStatus", - ], - "shape": { - "_type": "union", - "baseProperties": [], - "discriminant": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "extends": [], - "types": [ - { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "info", - "unsafeName": "info", - }, - "originalName": "info", - "pascalCase": { - "safeName": "Info", - "unsafeName": "Info", - }, - "screamingSnakeCase": { - "safeName": "INFO", - "unsafeName": "INFO", - }, - "snakeCase": { - "safeName": "info", - "unsafeName": "info", - }, - }, - "wireValue": "info", - }, - "docs": null, - "shape": { - "_type": "samePropertiesAsObject", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - }, - { - "discriminantValue": { - "name": { - "camelCase": { - "safeName": "status", - "unsafeName": "status", - }, - "originalName": "status", - "pascalCase": { - "safeName": "Status", - "unsafeName": "Status", - }, - "screamingSnakeCase": { - "safeName": "STATUS", - "unsafeName": "STATUS", - }, - "snakeCase": { - "safeName": "status", - "unsafeName": "status", - }, - }, - "wireValue": "status", - }, - "docs": null, - "shape": { - "_type": "singleProperty", - "name": { - "name": { - "camelCase": { - "safeName": "status", - "unsafeName": "status", - }, - "originalName": "status", - "pascalCase": { - "safeName": "Status", - "unsafeName": "Status", - }, - "screamingSnakeCase": { - "safeName": "STATUS", - "unsafeName": "STATUS", - }, - "snakeCase": { - "safeName": "status", - "unsafeName": "status", - }, - }, - "wireValue": "status", - }, - "type": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionStatus", - "unsafeName": "exceptionStatus", - }, - "originalName": "ExceptionStatus", - "pascalCase": { - "safeName": "ExceptionStatus", - "unsafeName": "ExceptionStatus", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_STATUS", - "unsafeName": "EXCEPTION_STATUS", - }, - "snakeCase": { - "safeName": "exception_status", - "unsafeName": "exception_status", - }, - }, - "typeId": "type_types:ExceptionStatus", - }, - }, - }, - ], - }, - }, - "type_types:ExceptionInfo": { - "availability": null, - "docs": null, - "examples": [ - { - "docs": null, - "jsonExample": { - "exceptionMessage": "This component is unavailable!", - "exceptionStacktrace": "", - "exceptionType": "Unavailable", - }, - "name": { - "camelCase": { - "safeName": "one", - "unsafeName": "one", - }, - "originalName": "One", - "pascalCase": { - "safeName": "One", - "unsafeName": "One", - }, - "screamingSnakeCase": { - "safeName": "ONE", - "unsafeName": "ONE", - }, - "snakeCase": { - "safeName": "one", - "unsafeName": "one", - }, - }, - "shape": { - "properties": [ - { - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - "value": { - "jsonExample": "Unavailable", - "shape": { - "primitive": { - "string": "Unavailable", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "exceptionType", - }, - { - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - "value": { - "jsonExample": "This component is unavailable!", - "shape": { - "primitive": { - "string": "This component is unavailable!", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "exceptionMessage", - }, - { - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - "value": { - "jsonExample": "", - "shape": { - "primitive": { - "string": "", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "exceptionStacktrace", - }, - ], - "type": "object", - }, - }, - ], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionInfo", - "unsafeName": "exceptionInfo", - }, - "originalName": "ExceptionInfo", - "pascalCase": { - "safeName": "ExceptionInfo", - "unsafeName": "ExceptionInfo", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_INFO", - "unsafeName": "EXCEPTION_INFO", - }, - "snakeCase": { - "safeName": "exception_info", - "unsafeName": "exception_info", - }, - }, - "typeId": "type_types:ExceptionInfo", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "exceptionType", - "unsafeName": "exceptionType", - }, - "originalName": "exceptionType", - "pascalCase": { - "safeName": "ExceptionType", - "unsafeName": "ExceptionType", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_TYPE", - "unsafeName": "EXCEPTION_TYPE", - }, - "snakeCase": { - "safeName": "exception_type", - "unsafeName": "exception_type", - }, - }, - "wireValue": "exceptionType", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "exceptionMessage", - "unsafeName": "exceptionMessage", - }, - "originalName": "exceptionMessage", - "pascalCase": { - "safeName": "ExceptionMessage", - "unsafeName": "ExceptionMessage", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_MESSAGE", - "unsafeName": "EXCEPTION_MESSAGE", - }, - "snakeCase": { - "safeName": "exception_message", - "unsafeName": "exception_message", - }, - }, - "wireValue": "exceptionMessage", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "exceptionStacktrace", - "unsafeName": "exceptionStacktrace", - }, - "originalName": "exceptionStacktrace", - "pascalCase": { - "safeName": "ExceptionStacktrace", - "unsafeName": "ExceptionStacktrace", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_STACKTRACE", - "unsafeName": "EXCEPTION_STACKTRACE", - }, - "snakeCase": { - "safeName": "exception_stacktrace", - "unsafeName": "exception_stacktrace", - }, - }, - "wireValue": "exceptionStacktrace", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - "type_types:ExceptionStatus": { - "availability": null, - "docs": null, - "examples": [ - { - "docs": null, - "jsonExample": "INTERNAL", - "name": { - "camelCase": { - "safeName": "internal", - "unsafeName": "internal", - }, - "originalName": "Internal", - "pascalCase": { - "safeName": "Internal", - "unsafeName": "Internal", - }, - "screamingSnakeCase": { - "safeName": "INTERNAL", - "unsafeName": "INTERNAL", - }, - "snakeCase": { - "safeName": "internal", - "unsafeName": "internal", - }, - }, - "shape": { - "type": "enum", - "wireValue": "INTERNAL", - }, - }, - { - "docs": null, - "jsonExample": "USER", - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "shape": { - "type": "enum", - "wireValue": "USER", - }, - }, - ], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "types", - "unsafeName": "types", - }, - "originalName": "types", - "pascalCase": { - "safeName": "Types", - "unsafeName": "Types", - }, - "screamingSnakeCase": { - "safeName": "TYPES", - "unsafeName": "TYPES", - }, - "snakeCase": { - "safeName": "types", - "unsafeName": "types", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "exceptionStatus", - "unsafeName": "exceptionStatus", - }, - "originalName": "ExceptionStatus", - "pascalCase": { - "safeName": "ExceptionStatus", - "unsafeName": "ExceptionStatus", - }, - "screamingSnakeCase": { - "safeName": "EXCEPTION_STATUS", - "unsafeName": "EXCEPTION_STATUS", - }, - "snakeCase": { - "safeName": "exception_status", - "unsafeName": "exception_status", - }, - }, - "typeId": "type_types:ExceptionStatus", - }, - "referencedTypes": [], - "shape": { - "_type": "enum", - "values": [ - { - "availability": null, - "docs": "There was an internal exception.", - "name": { - "name": { - "camelCase": { - "safeName": "internal", - "unsafeName": "internal", - }, - "originalName": "INTERNAL", - "pascalCase": { - "safeName": "Internal", - "unsafeName": "Internal", - }, - "screamingSnakeCase": { - "safeName": "INTERNAL", - "unsafeName": "INTERNAL", - }, - "snakeCase": { - "safeName": "internal", - "unsafeName": "internal", - }, - }, - "wireValue": "INTERNAL", - }, - }, - { - "availability": null, - "docs": "There was a user-influenced exception.", - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "USER", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "USER", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/__test__/__snapshots__/migrateFromV33ToV32.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/__test__/__snapshots__/migrateFromV33ToV32.test.ts.snap index 842d066cc1e..3ffe700f4ff 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/__test__/__snapshots__/migrateFromV33ToV32.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/__test__/__snapshots__/migrateFromV33ToV32.test.ts.snap @@ -1020,1024 +1020,3 @@ exports[`migrateFromV33ToV32 > snapshot 1`] = ` "webhookGroups": {}, } `; - -exports[`migrateFromV33ToV32 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "value": { - "jsonExample": "id-2sdx82h", - "shape": { - "primitive": { - "string": { - "original": "id-2sdx82h", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "value": { - "jsonExample": "4956d3f3-f4c6-43fc-a037-9ad991933993", - "shape": { - "primitive": { - "type": "uuid", - "uuid": "4956d3f3-f4c6-43fc-a037-9ad991933993", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 10, - "shape": { - "primitive": { - "integer": 10, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "date", - "unsafeName": "date", - }, - "originalName": "date", - "pascalCase": { - "safeName": "Date", - "unsafeName": "Date", - }, - "screamingSnakeCase": { - "safeName": "DATE", - "unsafeName": "DATE", - }, - "snakeCase": { - "safeName": "date", - "unsafeName": "date", - }, - }, - "wireValue": "date", - }, - "value": { - "jsonExample": "1994-01-01", - "shape": { - "primitive": { - "date": "1994-01-01", - "type": "date", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "value": { - "jsonExample": "reverse", - "shape": { - "primitive": { - "string": { - "original": "reverse", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//check/id-2sdx82h", - }, - ], - "fullPath": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_service.check", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "check", - "unsafeName": "check", - }, - "originalName": "check", - "pascalCase": { - "safeName": "Check", - "unsafeName": "Check", - }, - "screamingSnakeCase": { - "safeName": "CHECK", - "unsafeName": "CHECK", - }, - "snakeCase": { - "safeName": "check", - "unsafeName": "check", - }, - }, - "path": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "valueType": { - "_type": "primitive", - "primitive": "UUID", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "date", - "unsafeName": "date", - }, - "originalName": "date", - "pascalCase": { - "safeName": "Date", - "unsafeName": "Date", - }, - "screamingSnakeCase": { - "safeName": "DATE", - "unsafeName": "DATE", - }, - "snakeCase": { - "safeName": "date", - "unsafeName": "date", - }, - }, - "wireValue": "date", - }, - "valueType": { - "_type": "primitive", - "primitive": "DATE", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalString", - "unsafeName": "optionalString", - }, - "originalName": "optionalString", - "pascalCase": { - "safeName": "OptionalString", - "unsafeName": "OptionalString", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_STRING", - "unsafeName": "OPTIONAL_STRING", - }, - "snakeCase": { - "safeName": "optional_string", - "unsafeName": "optional_string", - }, - }, - "wireValue": "optionalString", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "any", - "unsafeName": "any", - }, - "originalName": "any", - "pascalCase": { - "safeName": "Any", - "unsafeName": "Any", - }, - "screamingSnakeCase": { - "safeName": "ANY", - "unsafeName": "ANY", - }, - "snakeCase": { - "safeName": "any", - "unsafeName": "any", - }, - }, - "wireValue": "any", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - "requestBody": null, - "response": null, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "checkRequest", - "unsafeName": "checkRequest", - }, - "originalName": "CheckRequest", - "pascalCase": { - "safeName": "CheckRequest", - "unsafeName": "CheckRequest", - }, - "screamingSnakeCase": { - "safeName": "CHECK_REQUEST", - "unsafeName": "CHECK_REQUEST", - }, - "snakeCase": { - "safeName": "check_request", - "unsafeName": "check_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - ], - "webhooks": null, - }, - }, - "types": { - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v34-to-v33/__test__/__snapshots__/migrateFromV34ToV33.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v34-to-v33/__test__/__snapshots__/migrateFromV34ToV33.test.ts.snap index c895ed1cec2..18a5ee10bd9 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v34-to-v33/__test__/__snapshots__/migrateFromV34ToV33.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v34-to-v33/__test__/__snapshots__/migrateFromV34ToV33.test.ts.snap @@ -535,539 +535,3 @@ exports[`migrateFromV34ToV33 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV34ToV33 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": {}, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [], - "fullPath": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_service.check", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "check", - "unsafeName": "check", - }, - "originalName": "check", - "pascalCase": { - "safeName": "Check", - "unsafeName": "Check", - }, - "screamingSnakeCase": { - "safeName": "CHECK", - "unsafeName": "CHECK", - }, - "snakeCase": { - "safeName": "check", - "unsafeName": "check", - }, - }, - "path": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "queryParameters": [], - "requestBody": { - "name": { - "camelCase": { - "safeName": "checkRequest", - "unsafeName": "checkRequest", - }, - "originalName": "CheckRequest", - "pascalCase": { - "safeName": "CheckRequest", - "unsafeName": "CheckRequest", - }, - "screamingSnakeCase": { - "safeName": "CHECK_REQUEST", - "unsafeName": "CHECK_REQUEST", - }, - "snakeCase": { - "safeName": "check_request", - "unsafeName": "check_request", - }, - }, - "properties": [ - { - "isOptional": false, - "key": { - "name": { - "camelCase": { - "safeName": "file", - "unsafeName": "file", - }, - "originalName": "file", - "pascalCase": { - "safeName": "File", - "unsafeName": "File", - }, - "screamingSnakeCase": { - "safeName": "FILE", - "unsafeName": "FILE", - }, - "snakeCase": { - "safeName": "file", - "unsafeName": "file", - }, - }, - "wireValue": "file", - }, - "type": "file", - }, - { - "isOptional": false, - "key": { - "name": { - "camelCase": { - "safeName": "fileList", - "unsafeName": "fileList", - }, - "originalName": "fileList", - "pascalCase": { - "safeName": "FileList", - "unsafeName": "FileList", - }, - "screamingSnakeCase": { - "safeName": "FILE_LIST", - "unsafeName": "FILE_LIST", - }, - "snakeCase": { - "safeName": "file_list", - "unsafeName": "file_list", - }, - }, - "wireValue": "fileList", - }, - "type": "file", - }, - { - "isOptional": true, - "key": { - "name": { - "camelCase": { - "safeName": "maybeFile", - "unsafeName": "maybeFile", - }, - "originalName": "maybeFile", - "pascalCase": { - "safeName": "MaybeFile", - "unsafeName": "MaybeFile", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_FILE", - "unsafeName": "MAYBE_FILE", - }, - "snakeCase": { - "safeName": "maybe_file", - "unsafeName": "maybe_file", - }, - }, - "wireValue": "maybeFile", - }, - "type": "file", - }, - { - "isOptional": true, - "key": { - "name": { - "camelCase": { - "safeName": "maybeFileList", - "unsafeName": "maybeFileList", - }, - "originalName": "maybeFileList", - "pascalCase": { - "safeName": "MaybeFileList", - "unsafeName": "MaybeFileList", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_FILE_LIST", - "unsafeName": "MAYBE_FILE_LIST", - }, - "snakeCase": { - "safeName": "maybe_file_list", - "unsafeName": "maybe_file_list", - }, - }, - "wireValue": "maybeFileList", - }, - "type": "file", - }, - ], - "type": "fileUpload", - }, - "response": null, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "checkRequest", - "unsafeName": "checkRequest", - }, - "originalName": "CheckRequest", - "pascalCase": { - "safeName": "CheckRequest", - "unsafeName": "CheckRequest", - }, - "screamingSnakeCase": { - "safeName": "CHECK_REQUEST", - "unsafeName": "CHECK_REQUEST", - }, - "snakeCase": { - "safeName": "check_request", - "unsafeName": "check_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [], - "webhooks": null, - "websocket": null, - }, - }, - "types": {}, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v35-to-v34/__test__/__snapshots__/migrateFromV35ToV34.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v35-to-v34/__test__/__snapshots__/migrateFromV35ToV34.test.ts.snap index 34146684439..a7616348824 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v35-to-v34/__test__/__snapshots__/migrateFromV35ToV34.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v35-to-v34/__test__/__snapshots__/migrateFromV35ToV34.test.ts.snap @@ -774,778 +774,3 @@ exports[`migrateFromV35ToV34 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV35ToV34 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_service:User", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listUsers", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsers", - "unsafeName": "listUsers", - }, - "originalName": "listUsers", - "pascalCase": { - "safeName": "ListUsers", - "unsafeName": "ListUsers", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS", - "unsafeName": "LIST_USERS", - }, - "snakeCase": { - "safeName": "list_users", - "unsafeName": "list_users", - }, - }, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "cursor", - "unsafeName": "cursor", - }, - "originalName": "cursor", - "pascalCase": { - "safeName": "Cursor", - "unsafeName": "Cursor", - }, - "screamingSnakeCase": { - "safeName": "CURSOR", - "unsafeName": "CURSOR", - }, - "snakeCase": { - "safeName": "cursor", - "unsafeName": "cursor", - }, - }, - "wireValue": "cursor", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "requestBody": null, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUsersRequest", - "unsafeName": "listUsersRequest", - }, - "originalName": "ListUsersRequest", - "pascalCase": { - "safeName": "ListUsersRequest", - "unsafeName": "ListUsersRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_REQUEST", - "unsafeName": "LIST_USERS_REQUEST", - }, - "snakeCase": { - "safeName": "list_users_request", - "unsafeName": "list_users_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "nextPage", - "unsafeName": "nextPage", - }, - "originalName": "nextPage", - "pascalCase": { - "safeName": "NextPage", - "unsafeName": "NextPage", - }, - "screamingSnakeCase": { - "safeName": "NEXT_PAGE", - "unsafeName": "NEXT_PAGE", - }, - "snakeCase": { - "safeName": "next_page", - "unsafeName": "next_page", - }, - }, - "wireValue": "nextPage", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v36-to-v35/__test__/__snapshots__/migrateFromV36ToV35.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v36-to-v35/__test__/__snapshots__/migrateFromV36ToV35.test.ts.snap index 8a0e442af5e..9f25a26bcec 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v36-to-v35/__test__/__snapshots__/migrateFromV36ToV35.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v36-to-v35/__test__/__snapshots__/migrateFromV36ToV35.test.ts.snap @@ -904,908 +904,3 @@ exports[`migrateFromV36ToV35 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV36ToV35 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_service:User", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [ - { - "availability": null, - "docs": "Specifies the endpoint key.", - "name": { - "name": { - "camelCase": { - "safeName": "xEndpointHeader", - "unsafeName": "xEndpointHeader", - }, - "originalName": "X-Endpoint-Header", - "pascalCase": { - "safeName": "XEndpointHeader", - "unsafeName": "XEndpointHeader", - }, - "screamingSnakeCase": { - "safeName": "X_ENDPOINT_HEADER", - "unsafeName": "X_ENDPOINT_HEADER", - }, - "snakeCase": { - "safeName": "x_endpoint_header", - "unsafeName": "x_endpoint_header", - }, - }, - "wireValue": "X-Endpoint-Header", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "id": "endpoint_service.listUsers", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsers", - "unsafeName": "listUsers", - }, - "originalName": "listUsers", - "pascalCase": { - "safeName": "ListUsers", - "unsafeName": "ListUsers", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS", - "unsafeName": "LIST_USERS", - }, - "snakeCase": { - "safeName": "list_users", - "unsafeName": "list_users", - }, - }, - "pagination": { - "page": { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - "results": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - "propertyPath": [], - }, - "type": "offset", - }, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUsersRequest", - "unsafeName": "listUsersRequest", - }, - "originalName": "ListUsersRequest", - "pascalCase": { - "safeName": "ListUsersRequest", - "unsafeName": "ListUsersRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_REQUEST", - "unsafeName": "LIST_USERS_REQUEST", - }, - "snakeCase": { - "safeName": "list_users_request", - "unsafeName": "list_users_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v37-to-v36/__test__/__snapshots__/migrateFromV37ToV36.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v37-to-v36/__test__/__snapshots__/migrateFromV37ToV36.test.ts.snap index 9dbf75ce153..38c11d977d1 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v37-to-v36/__test__/__snapshots__/migrateFromV37ToV36.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v37-to-v36/__test__/__snapshots__/migrateFromV37ToV36.test.ts.snap @@ -1543,1547 +1543,3 @@ exports[`migrateFromV37ToV36 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV37ToV36 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "value": { - "jsonExample": "id-2sdx82h", - "shape": { - "primitive": { - "string": { - "original": "id-2sdx82h", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "value": { - "jsonExample": "4956d3f3-f4c6-43fc-a037-9ad991933993", - "shape": { - "primitive": { - "type": "uuid", - "uuid": "4956d3f3-f4c6-43fc-a037-9ad991933993", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 10, - "shape": { - "primitive": { - "integer": 10, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "value": { - "jsonExample": { - "name": "username", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "username", - "shape": { - "primitive": { - "string": { - "original": "username", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "value": { - "jsonExample": { - "key": "value", - }, - "shape": { - "container": { - "map": [ - { - "key": { - "jsonExample": "key", - "shape": { - "primitive": { - "string": { - "original": "key", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "value": { - "jsonExample": "value", - "shape": { - "primitive": { - "string": { - "original": "value", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "map", - }, - "type": "container", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "value": { - "jsonExample": { - "name": "multiUsername", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "multiUsername", - "shape": { - "primitive": { - "string": { - "original": "multiUsername", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "value": { - "jsonExample": "reverse", - "shape": { - "primitive": { - "string": { - "original": "reverse", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//check/id-2sdx82h", - }, - ], - "fullPath": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_service.check", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "check", - "unsafeName": "check", - }, - "originalName": "check", - "pascalCase": { - "safeName": "Check", - "unsafeName": "Check", - }, - "screamingSnakeCase": { - "safeName": "CHECK", - "unsafeName": "CHECK", - }, - "snakeCase": { - "safeName": "check", - "unsafeName": "check", - }, - }, - "pagination": null, - "path": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "valueType": { - "_type": "primitive", - "primitive": "UUID", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalString", - "unsafeName": "optionalString", - }, - "originalName": "optionalString", - "pascalCase": { - "safeName": "OptionalString", - "unsafeName": "OptionalString", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_STRING", - "unsafeName": "OPTIONAL_STRING", - }, - "snakeCase": { - "safeName": "optional_string", - "unsafeName": "optional_string", - }, - }, - "wireValue": "optionalString", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "any", - "unsafeName": "any", - }, - "originalName": "any", - "pascalCase": { - "safeName": "Any", - "unsafeName": "Any", - }, - "screamingSnakeCase": { - "safeName": "ANY", - "unsafeName": "ANY", - }, - "snakeCase": { - "safeName": "any", - "unsafeName": "any", - }, - }, - "wireValue": "any", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "unknown", - }, - }, - }, - }, - ], - "requestBody": null, - "response": null, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "checkRequest", - "unsafeName": "checkRequest", - }, - "originalName": "CheckRequest", - "pascalCase": { - "safeName": "CheckRequest", - "unsafeName": "CheckRequest", - }, - "screamingSnakeCase": { - "safeName": "CHECK_REQUEST", - "unsafeName": "CHECK_REQUEST", - }, - "snakeCase": { - "safeName": "check_request", - "unsafeName": "check_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v38-to-v37/__test__/__snapshots__/migrateFromV38ToV37.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v38-to-v37/__test__/__snapshots__/migrateFromV38ToV37.test.ts.snap index d2376cf569a..5249047e21a 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v38-to-v37/__test__/__snapshots__/migrateFromV38ToV37.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v38-to-v37/__test__/__snapshots__/migrateFromV38ToV37.test.ts.snap @@ -608,612 +608,3 @@ exports[`migrateFromV38ToV37 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV38ToV37 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "serverSentEvents", - "unsafeName": "serverSentEvents", - }, - "originalName": "server-sent-events", - "pascalCase": { - "safeName": "ServerSentEvents", - "unsafeName": "ServerSentEvents", - }, - "screamingSnakeCase": { - "safeName": "SERVER_SENT_EVENTS", - "unsafeName": "SERVER_SENT_EVENTS", - }, - "snakeCase": { - "safeName": "server_sent_events", - "unsafeName": "server_sent_events", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_completions", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": true, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_completions": [ - "type_completions:StreamedCompletion", - ], - }, - }, - "services": { - "service_completions": { - "availability": null, - "basePath": { - "head": "", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [], - "request": { - "jsonExample": { - "query": "string", - }, - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "query", - "unsafeName": "query", - }, - "originalName": "query", - "pascalCase": { - "safeName": "Query", - "unsafeName": "Query", - }, - "screamingSnakeCase": { - "safeName": "QUERY", - "unsafeName": "QUERY", - }, - "snakeCase": { - "safeName": "query", - "unsafeName": "query", - }, - }, - "wireValue": "query", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/stream", - }, - ], - "fullPath": { - "head": "stream", - "parts": [], - }, - "headers": [], - "id": "endpoint_completions.stream", - "idempotent": false, - "method": "POST", - "name": { - "camelCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - "originalName": "stream", - "pascalCase": { - "safeName": "Stream", - "unsafeName": "Stream", - }, - "screamingSnakeCase": { - "safeName": "STREAM", - "unsafeName": "STREAM", - }, - "snakeCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - }, - "pagination": null, - "path": { - "head": "/stream", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "name": { - "camelCase": { - "safeName": "streamCompletionRequest", - "unsafeName": "streamCompletionRequest", - }, - "originalName": "StreamCompletionRequest", - "pascalCase": { - "safeName": "StreamCompletionRequest", - "unsafeName": "StreamCompletionRequest", - }, - "screamingSnakeCase": { - "safeName": "STREAM_COMPLETION_REQUEST", - "unsafeName": "STREAM_COMPLETION_REQUEST", - }, - "snakeCase": { - "safeName": "stream_completion_request", - "unsafeName": "stream_completion_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "query", - "unsafeName": "query", - }, - "originalName": "query", - "pascalCase": { - "safeName": "Query", - "unsafeName": "Query", - }, - "screamingSnakeCase": { - "safeName": "QUERY", - "unsafeName": "QUERY", - }, - "snakeCase": { - "safeName": "query", - "unsafeName": "query", - }, - }, - "wireValue": "query", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": null, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "streamCompletionRequest", - "unsafeName": "streamCompletionRequest", - }, - "originalName": "StreamCompletionRequest", - "pascalCase": { - "safeName": "StreamCompletionRequest", - "unsafeName": "StreamCompletionRequest", - }, - "screamingSnakeCase": { - "safeName": "STREAM_COMPLETION_REQUEST", - "unsafeName": "STREAM_COMPLETION_REQUEST", - }, - "snakeCase": { - "safeName": "stream_completion_request", - "unsafeName": "stream_completion_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - "originalName": "completions", - "pascalCase": { - "safeName": "Completions", - "unsafeName": "Completions", - }, - "screamingSnakeCase": { - "safeName": "COMPLETIONS", - "unsafeName": "COMPLETIONS", - }, - "snakeCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - "originalName": "completions", - "pascalCase": { - "safeName": "Completions", - "unsafeName": "Completions", - }, - "screamingSnakeCase": { - "safeName": "COMPLETIONS", - "unsafeName": "COMPLETIONS", - }, - "snakeCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_completions": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - "originalName": "completions", - "pascalCase": { - "safeName": "Completions", - "unsafeName": "Completions", - }, - "screamingSnakeCase": { - "safeName": "COMPLETIONS", - "unsafeName": "COMPLETIONS", - }, - "snakeCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - "originalName": "completions", - "pascalCase": { - "safeName": "Completions", - "unsafeName": "Completions", - }, - "screamingSnakeCase": { - "safeName": "COMPLETIONS", - "unsafeName": "COMPLETIONS", - }, - "snakeCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - "originalName": "completions", - "pascalCase": { - "safeName": "Completions", - "unsafeName": "Completions", - }, - "screamingSnakeCase": { - "safeName": "COMPLETIONS", - "unsafeName": "COMPLETIONS", - }, - "snakeCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - }, - "navigationConfig": null, - "service": "service_completions", - "subpackages": [], - "types": [ - "type_completions:StreamedCompletion", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_completions:StreamedCompletion": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - "originalName": "completions", - "pascalCase": { - "safeName": "Completions", - "unsafeName": "Completions", - }, - "screamingSnakeCase": { - "safeName": "COMPLETIONS", - "unsafeName": "COMPLETIONS", - }, - "snakeCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - "originalName": "completions", - "pascalCase": { - "safeName": "Completions", - "unsafeName": "Completions", - }, - "screamingSnakeCase": { - "safeName": "COMPLETIONS", - "unsafeName": "COMPLETIONS", - }, - "snakeCase": { - "safeName": "completions", - "unsafeName": "completions", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "streamedCompletion", - "unsafeName": "streamedCompletion", - }, - "originalName": "StreamedCompletion", - "pascalCase": { - "safeName": "StreamedCompletion", - "unsafeName": "StreamedCompletion", - }, - "screamingSnakeCase": { - "safeName": "STREAMED_COMPLETION", - "unsafeName": "STREAMED_COMPLETION", - }, - "snakeCase": { - "safeName": "streamed_completion", - "unsafeName": "streamed_completion", - }, - }, - "typeId": "type_completions:StreamedCompletion", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "delta", - "unsafeName": "delta", - }, - "originalName": "delta", - "pascalCase": { - "safeName": "Delta", - "unsafeName": "Delta", - }, - "screamingSnakeCase": { - "safeName": "DELTA", - "unsafeName": "DELTA", - }, - "snakeCase": { - "safeName": "delta", - "unsafeName": "delta", - }, - }, - "wireValue": "delta", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "tokens", - "unsafeName": "tokens", - }, - "originalName": "tokens", - "pascalCase": { - "safeName": "Tokens", - "unsafeName": "Tokens", - }, - "screamingSnakeCase": { - "safeName": "TOKENS", - "unsafeName": "TOKENS", - }, - "snakeCase": { - "safeName": "tokens", - "unsafeName": "tokens", - }, - }, - "wireValue": "tokens", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap index 45e90edf334..6f2f8309f78 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap @@ -5567,5571 +5567,3 @@ exports[`migrateFromV39ToV38 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV39ToV38 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_auth", - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_auth": [ - "type_auth:TokenResponse", - ], - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_auth": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [], - "request": { - "jsonExample": { - "audience": "https://api.example.com", - "client_id": "string", - "client_secret": "string", - "grant_type": "client_credentials", - "scope": "string", - }, - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "https://api.example.com", - "shape": { - "primitive": { - "string": { - "original": "https://api.example.com", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "client_credentials", - "shape": { - "primitive": { - "string": { - "original": "client_credentials", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "body": { - "jsonExample": { - "access_token": "string", - "expires_in": 1, - "refresh_token": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/token", - }, - ], - "fullPath": { - "head": "/token", - "parts": [], - }, - "headers": [], - "id": "endpoint_auth.getToken", - "idempotent": false, - "method": "POST", - "name": { - "camelCase": { - "safeName": "getToken", - "unsafeName": "getToken", - }, - "originalName": "getToken", - "pascalCase": { - "safeName": "GetToken", - "unsafeName": "GetToken", - }, - "screamingSnakeCase": { - "safeName": "GET_TOKEN", - "unsafeName": "GET_TOKEN", - }, - "snakeCase": { - "safeName": "get_token", - "unsafeName": "get_token", - }, - }, - "pagination": null, - "path": { - "head": "/token", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "name": { - "camelCase": { - "safeName": "getTokenRequest", - "unsafeName": "getTokenRequest", - }, - "originalName": "GetTokenRequest", - "pascalCase": { - "safeName": "GetTokenRequest", - "unsafeName": "GetTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_TOKEN_REQUEST", - "unsafeName": "GET_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "get_token_request", - "unsafeName": "get_token_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "https://api.example.com", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "client_credentials", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "getTokenRequest", - "unsafeName": "getTokenRequest", - }, - "originalName": "GetTokenRequest", - "pascalCase": { - "safeName": "GetTokenRequest", - "unsafeName": "GetTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_TOKEN_REQUEST", - "unsafeName": "GET_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "get_token_request", - "unsafeName": "get_token_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [], - "request": { - "jsonExample": { - "audience": "https://api.example.com", - "client_id": "string", - "client_secret": "string", - "grant_type": "refresh_token", - "refresh_token": "string", - "scope": "string", - }, - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "https://api.example.com", - "shape": { - "primitive": { - "string": { - "original": "https://api.example.com", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "refresh_token", - "shape": { - "primitive": { - "string": { - "original": "refresh_token", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "body": { - "jsonExample": { - "access_token": "string", - "expires_in": 1, - "refresh_token": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/token", - }, - ], - "fullPath": { - "head": "/token", - "parts": [], - }, - "headers": [], - "id": "endpoint_auth.refreshToken", - "idempotent": false, - "method": "POST", - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refreshToken", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "pagination": null, - "path": { - "head": "/token", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "name": { - "camelCase": { - "safeName": "refreshTokenRequest", - "unsafeName": "refreshTokenRequest", - }, - "originalName": "RefreshTokenRequest", - "pascalCase": { - "safeName": "RefreshTokenRequest", - "unsafeName": "RefreshTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN_REQUEST", - "unsafeName": "REFRESH_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "refresh_token_request", - "unsafeName": "refresh_token_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "https://api.example.com", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "refresh_token", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "refreshTokenRequest", - "unsafeName": "refreshTokenRequest", - }, - "originalName": "RefreshTokenRequest", - "pascalCase": { - "safeName": "RefreshTokenRequest", - "unsafeName": "RefreshTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN_REQUEST", - "unsafeName": "REFRESH_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "refresh_token_request", - "unsafeName": "refresh_token_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "value": { - "jsonExample": "id-2sdx82h", - "shape": { - "primitive": { - "string": { - "original": "id-2sdx82h", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "exampleType": "userProvided", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "value": { - "jsonExample": "4956d3f3-f4c6-43fc-a037-9ad991933993", - "shape": { - "primitive": { - "type": "uuid", - "uuid": "4956d3f3-f4c6-43fc-a037-9ad991933993", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 10, - "shape": { - "primitive": { - "integer": 10, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "value": { - "jsonExample": { - "name": "username", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "username", - "shape": { - "primitive": { - "string": { - "original": "username", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "value": { - "jsonExample": { - "key": "value", - }, - "shape": { - "container": { - "map": [ - { - "key": { - "jsonExample": "key", - "shape": { - "primitive": { - "string": { - "original": "key", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "value": { - "jsonExample": "value", - "shape": { - "primitive": { - "string": { - "original": "value", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "map", - }, - "type": "container", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "value": { - "jsonExample": { - "name": "multiUsername", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "multiUsername", - "shape": { - "primitive": { - "string": { - "original": "multiUsername", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "value": { - "jsonExample": "reverse", - "shape": { - "primitive": { - "string": { - "original": "reverse", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//check/id-2sdx82h", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "value": { - "jsonExample": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - "shape": { - "primitive": { - "type": "uuid", - "uuid": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "value": { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "value": { - "jsonExample": { - "string": "string", - }, - "shape": { - "container": { - "map": [ - { - "key": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "map", - }, - "type": "container", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "optionalString", - "unsafeName": "optionalString", - }, - "originalName": "optionalString", - "pascalCase": { - "safeName": "OptionalString", - "unsafeName": "OptionalString", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_STRING", - "unsafeName": "OPTIONAL_STRING", - }, - "snakeCase": { - "safeName": "optional_string", - "unsafeName": "optional_string", - }, - }, - "wireValue": "optionalString", - }, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "value": { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "any", - "unsafeName": "any", - }, - "originalName": "any", - "pascalCase": { - "safeName": "Any", - "unsafeName": "Any", - }, - "screamingSnakeCase": { - "safeName": "ANY", - "unsafeName": "ANY", - }, - "snakeCase": { - "safeName": "any", - "unsafeName": "any", - }, - }, - "wireValue": "any", - }, - "value": { - "jsonExample": { - "key": "value", - }, - "shape": { - "container": { - "optional": { - "jsonExample": { - "key": "value", - }, - "shape": { - "type": "unknown", - "unknown": { - "key": "value", - }, - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/check/string", - }, - ], - "fullPath": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_service.check", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "check", - "unsafeName": "check", - }, - "originalName": "check", - "pascalCase": { - "safeName": "Check", - "unsafeName": "Check", - }, - "screamingSnakeCase": { - "safeName": "CHECK", - "unsafeName": "CHECK", - }, - "snakeCase": { - "safeName": "check", - "unsafeName": "check", - }, - }, - "pagination": null, - "path": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "valueType": { - "_type": "primitive", - "primitive": "UUID", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalString", - "unsafeName": "optionalString", - }, - "originalName": "optionalString", - "pascalCase": { - "safeName": "OptionalString", - "unsafeName": "OptionalString", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_STRING", - "unsafeName": "OPTIONAL_STRING", - }, - "snakeCase": { - "safeName": "optional_string", - "unsafeName": "optional_string", - }, - }, - "wireValue": "optionalString", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "any", - "unsafeName": "any", - }, - "originalName": "any", - "pascalCase": { - "safeName": "Any", - "unsafeName": "Any", - }, - "screamingSnakeCase": { - "safeName": "ANY", - "unsafeName": "ANY", - }, - "snakeCase": { - "safeName": "any", - "unsafeName": "any", - }, - }, - "wireValue": "any", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "unknown", - }, - }, - }, - }, - ], - "requestBody": null, - "response": null, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "checkRequest", - "unsafeName": "checkRequest", - }, - "originalName": "CheckRequest", - "pascalCase": { - "safeName": "CheckRequest", - "unsafeName": "CheckRequest", - }, - "screamingSnakeCase": { - "safeName": "CHECK_REQUEST", - "unsafeName": "CHECK_REQUEST", - }, - "snakeCase": { - "safeName": "check_request", - "unsafeName": "check_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": { - "jsonExample": { - "users": [ - { - "name": "string", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "string", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - ], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": { - "page": { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - "results": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - "propertyPath": [], - }, - "type": "offset", - }, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_auth": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "navigationConfig": null, - "service": "service_auth", - "subpackages": [], - "types": [ - "type_auth:TokenResponse", - ], - "webhooks": null, - "websocket": null, - }, - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_auth:TokenResponse": { - "availability": null, - "docs": "An OAuth token response.", - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - }, - }, - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v40-to-v39/__test__/__snapshots__/migrateFromV40ToV39.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v40-to-v39/__test__/__snapshots__/migrateFromV40ToV39.test.ts.snap index eb1200c00f4..6529df188fd 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v40-to-v39/__test__/__snapshots__/migrateFromV40ToV39.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v40-to-v39/__test__/__snapshots__/migrateFromV40ToV39.test.ts.snap @@ -822,826 +822,3 @@ exports[`migrateFromV40ToV39 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV40ToV39 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_user", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_user": [ - "type_user:User", - ], - }, - }, - "services": { - "service_user": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [], - "request": { - "jsonExample": { - "name": "string", - }, - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "body": { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_user:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_user:User", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/user", - }, - ], - "fullPath": { - "head": "/user", - "parts": [], - }, - "headers": [], - "id": "endpoint_user.createUser", - "idempotent": false, - "method": "POST", - "name": { - "camelCase": { - "safeName": "createUser", - "unsafeName": "createUser", - }, - "originalName": "createUser", - "pascalCase": { - "safeName": "CreateUser", - "unsafeName": "CreateUser", - }, - "screamingSnakeCase": { - "safeName": "CREATE_USER", - "unsafeName": "CREATE_USER", - }, - "snakeCase": { - "safeName": "create_user", - "unsafeName": "create_user", - }, - }, - "pagination": null, - "path": { - "head": "/user", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "name": { - "camelCase": { - "safeName": "createUserRequest", - "unsafeName": "createUserRequest", - }, - "originalName": "CreateUserRequest", - "pascalCase": { - "safeName": "CreateUserRequest", - "unsafeName": "CreateUserRequest", - }, - "screamingSnakeCase": { - "safeName": "CREATE_USER_REQUEST", - "unsafeName": "CREATE_USER_REQUEST", - }, - "snakeCase": { - "safeName": "create_user_request", - "unsafeName": "create_user_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_user:User", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "createUserRequest", - "unsafeName": "createUserRequest", - }, - "originalName": "CreateUserRequest", - "pascalCase": { - "safeName": "CreateUserRequest", - "unsafeName": "CreateUserRequest", - }, - "screamingSnakeCase": { - "safeName": "CREATE_USER_REQUEST", - "unsafeName": "CREATE_USER_REQUEST", - }, - "snakeCase": { - "safeName": "create_user_request", - "unsafeName": "create_user_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_user": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "navigationConfig": null, - "service": "service_user", - "subpackages": [], - "types": [ - "type_user:User", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_user:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_user:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap index a236dda3bce..dc075fc7d35 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap @@ -5817,5821 +5817,3 @@ exports[`migrateFromV42ToV41 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV42ToV41 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "oauth", - "configuration": { - "clientIdEnvVar": null, - "clientSecretEnvVar": null, - "refreshEndpoint": { - "endpointReference": "endpoint_auth.refreshToken", - "requestProperties": { - "refreshToken": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "type": "body", - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - "propertyPath": [], - }, - }, - "responseProperties": { - "accessToken": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - "propertyPath": [], - }, - "expiresIn": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - "propertyPath": [], - }, - "refreshToken": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - "propertyPath": [], - }, - }, - }, - "scopes": [ - "user:read", - ], - "tokenEndpoint": { - "endpointReference": "endpoint_auth.getToken", - "responseProperties": { - "accessToken": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - "propertyPath": [], - }, - "expiresIn": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - "propertyPath": [], - }, - "refreshToken": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - "propertyPath": [], - }, - }, - }, - "tokenPrefix": null, - "type": "clientCredentials", - }, - "docs": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_auth", - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_auth": [ - "type_auth:TokenResponse", - ], - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_auth": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [], - "request": { - "jsonExample": { - "audience": "https://api.example.com", - "client_id": "string", - "client_secret": "string", - "grant_type": "client_credentials", - "scope": "string", - }, - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "https://api.example.com", - "shape": { - "primitive": { - "string": { - "original": "https://api.example.com", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "client_credentials", - "shape": { - "primitive": { - "string": { - "original": "client_credentials", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "body": { - "jsonExample": { - "access_token": "string", - "expires_in": 1, - "refresh_token": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/token", - }, - ], - "fullPath": { - "head": "/token", - "parts": [], - }, - "headers": [], - "id": "endpoint_auth.getToken", - "idempotent": false, - "method": "POST", - "name": { - "camelCase": { - "safeName": "getToken", - "unsafeName": "getToken", - }, - "originalName": "getToken", - "pascalCase": { - "safeName": "GetToken", - "unsafeName": "GetToken", - }, - "screamingSnakeCase": { - "safeName": "GET_TOKEN", - "unsafeName": "GET_TOKEN", - }, - "snakeCase": { - "safeName": "get_token", - "unsafeName": "get_token", - }, - }, - "pagination": null, - "path": { - "head": "/token", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "extra-properties": false, - "name": { - "camelCase": { - "safeName": "getTokenRequest", - "unsafeName": "getTokenRequest", - }, - "originalName": "GetTokenRequest", - "pascalCase": { - "safeName": "GetTokenRequest", - "unsafeName": "GetTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_TOKEN_REQUEST", - "unsafeName": "GET_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "get_token_request", - "unsafeName": "get_token_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "https://api.example.com", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "client_credentials", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "getTokenRequest", - "unsafeName": "getTokenRequest", - }, - "originalName": "GetTokenRequest", - "pascalCase": { - "safeName": "GetTokenRequest", - "unsafeName": "GetTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "GET_TOKEN_REQUEST", - "unsafeName": "GET_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "get_token_request", - "unsafeName": "get_token_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [], - "request": { - "jsonExample": { - "audience": "https://api.example.com", - "client_id": "string", - "client_secret": "string", - "grant_type": "refresh_token", - "refresh_token": "string", - "scope": "string", - }, - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "https://api.example.com", - "shape": { - "primitive": { - "string": { - "original": "https://api.example.com", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "refresh_token", - "shape": { - "primitive": { - "string": { - "original": "refresh_token", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "body": { - "jsonExample": { - "access_token": "string", - "expires_in": 1, - "refresh_token": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/token", - }, - ], - "fullPath": { - "head": "/token", - "parts": [], - }, - "headers": [], - "id": "endpoint_auth.refreshToken", - "idempotent": false, - "method": "POST", - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refreshToken", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "pagination": null, - "path": { - "head": "/token", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentType": null, - "extends": [], - "extra-properties": false, - "name": { - "camelCase": { - "safeName": "refreshTokenRequest", - "unsafeName": "refreshTokenRequest", - }, - "originalName": "RefreshTokenRequest", - "pascalCase": { - "safeName": "RefreshTokenRequest", - "unsafeName": "RefreshTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN_REQUEST", - "unsafeName": "REFRESH_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "refresh_token_request", - "unsafeName": "refresh_token_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientID", - "unsafeName": "clientID", - }, - "originalName": "client_id", - "pascalCase": { - "safeName": "ClientID", - "unsafeName": "ClientID", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_ID", - "unsafeName": "CLIENT_ID", - }, - "snakeCase": { - "safeName": "client_id", - "unsafeName": "client_id", - }, - }, - "wireValue": "client_id", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "clientSecret", - "unsafeName": "clientSecret", - }, - "originalName": "client_secret", - "pascalCase": { - "safeName": "ClientSecret", - "unsafeName": "ClientSecret", - }, - "screamingSnakeCase": { - "safeName": "CLIENT_SECRET", - "unsafeName": "CLIENT_SECRET", - }, - "snakeCase": { - "safeName": "client_secret", - "unsafeName": "client_secret", - }, - }, - "wireValue": "client_secret", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - "originalName": "audience", - "pascalCase": { - "safeName": "Audience", - "unsafeName": "Audience", - }, - "screamingSnakeCase": { - "safeName": "AUDIENCE", - "unsafeName": "AUDIENCE", - }, - "snakeCase": { - "safeName": "audience", - "unsafeName": "audience", - }, - }, - "wireValue": "audience", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "https://api.example.com", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "grantType", - "unsafeName": "grantType", - }, - "originalName": "grant_type", - "pascalCase": { - "safeName": "GrantType", - "unsafeName": "GrantType", - }, - "screamingSnakeCase": { - "safeName": "GRANT_TYPE", - "unsafeName": "GRANT_TYPE", - }, - "snakeCase": { - "safeName": "grant_type", - "unsafeName": "grant_type", - }, - }, - "wireValue": "grant_type", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "refresh_token", - "type": "string", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - "originalName": "scope", - "pascalCase": { - "safeName": "Scope", - "unsafeName": "Scope", - }, - "screamingSnakeCase": { - "safeName": "SCOPE", - "unsafeName": "SCOPE", - }, - "snakeCase": { - "safeName": "scope", - "unsafeName": "scope", - }, - }, - "wireValue": "scope", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "refreshTokenRequest", - "unsafeName": "refreshTokenRequest", - }, - "originalName": "RefreshTokenRequest", - "pascalCase": { - "safeName": "RefreshTokenRequest", - "unsafeName": "RefreshTokenRequest", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN_REQUEST", - "unsafeName": "REFRESH_TOKEN_REQUEST", - }, - "snakeCase": { - "safeName": "refresh_token_request", - "unsafeName": "refresh_token_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "value": { - "jsonExample": "id-2sdx82h", - "shape": { - "primitive": { - "string": { - "original": "id-2sdx82h", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "exampleType": "userProvided", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "value": { - "jsonExample": "4956d3f3-f4c6-43fc-a037-9ad991933993", - "shape": { - "primitive": { - "type": "uuid", - "uuid": "4956d3f3-f4c6-43fc-a037-9ad991933993", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 10, - "shape": { - "primitive": { - "integer": 10, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "value": { - "jsonExample": { - "name": "username", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "username", - "shape": { - "primitive": { - "string": { - "original": "username", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "value": { - "jsonExample": { - "key": "value", - }, - "shape": { - "container": { - "map": [ - { - "key": { - "jsonExample": "key", - "shape": { - "primitive": { - "string": { - "original": "key", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "value": { - "jsonExample": "value", - "shape": { - "primitive": { - "string": { - "original": "value", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "map", - }, - "type": "container", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "value": { - "jsonExample": { - "name": "multiUsername", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "multiUsername", - "shape": { - "primitive": { - "string": { - "original": "multiUsername", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "value": { - "jsonExample": "reverse", - "shape": { - "primitive": { - "string": { - "original": "reverse", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//check/id-2sdx82h", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "value": { - "jsonExample": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - "shape": { - "primitive": { - "type": "uuid", - "uuid": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "value": { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "value": { - "jsonExample": { - "string": "string", - }, - "shape": { - "container": { - "map": [ - { - "key": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "map", - }, - "type": "container", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "optionalString", - "unsafeName": "optionalString", - }, - "originalName": "optionalString", - "pascalCase": { - "safeName": "OptionalString", - "unsafeName": "OptionalString", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_STRING", - "unsafeName": "OPTIONAL_STRING", - }, - "snakeCase": { - "safeName": "optional_string", - "unsafeName": "optional_string", - }, - }, - "wireValue": "optionalString", - }, - "value": { - "jsonExample": "string", - "shape": { - "container": { - "optional": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "value": { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "any", - "unsafeName": "any", - }, - "originalName": "any", - "pascalCase": { - "safeName": "Any", - "unsafeName": "Any", - }, - "screamingSnakeCase": { - "safeName": "ANY", - "unsafeName": "ANY", - }, - "snakeCase": { - "safeName": "any", - "unsafeName": "any", - }, - }, - "wireValue": "any", - }, - "value": { - "jsonExample": { - "key": "value", - }, - "shape": { - "container": { - "optional": { - "jsonExample": { - "key": "value", - }, - "shape": { - "type": "unknown", - "unknown": { - "key": "value", - }, - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/check/string", - }, - ], - "fullPath": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_service.check", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "check", - "unsafeName": "check", - }, - "originalName": "check", - "pascalCase": { - "safeName": "Check", - "unsafeName": "Check", - }, - "screamingSnakeCase": { - "safeName": "CHECK", - "unsafeName": "CHECK", - }, - "snakeCase": { - "safeName": "check", - "unsafeName": "check", - }, - }, - "pagination": null, - "path": { - "head": "/check/", - "parts": [ - { - "pathParameter": "id", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - "variable": null, - }, - ], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "id", - "unsafeName": "id", - }, - "originalName": "id", - "pascalCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "screamingSnakeCase": { - "safeName": "ID", - "unsafeName": "ID", - }, - "snakeCase": { - "safeName": "id", - "unsafeName": "id", - }, - }, - "wireValue": "id", - }, - "valueType": { - "_type": "primitive", - "primitive": "UUID", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "user", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "wireValue": "user", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "map", - "unsafeName": "map", - }, - "originalName": "map", - "pascalCase": { - "safeName": "Map", - "unsafeName": "Map", - }, - "screamingSnakeCase": { - "safeName": "MAP", - "unsafeName": "MAP", - }, - "snakeCase": { - "safeName": "map", - "unsafeName": "map", - }, - }, - "wireValue": "map", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "map", - "keyType": { - "_type": "primitive", - "primitive": "STRING", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalString", - "unsafeName": "optionalString", - }, - "originalName": "optionalString", - "pascalCase": { - "safeName": "OptionalString", - "unsafeName": "OptionalString", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_STRING", - "unsafeName": "OPTIONAL_STRING", - }, - "snakeCase": { - "safeName": "optional_string", - "unsafeName": "optional_string", - }, - }, - "wireValue": "optionalString", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "multipleUser", - "unsafeName": "multipleUser", - }, - "originalName": "multipleUser", - "pascalCase": { - "safeName": "MultipleUser", - "unsafeName": "MultipleUser", - }, - "screamingSnakeCase": { - "safeName": "MULTIPLE_USER", - "unsafeName": "MULTIPLE_USER", - }, - "snakeCase": { - "safeName": "multiple_user", - "unsafeName": "multiple_user", - }, - }, - "wireValue": "multipleUser", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - { - "allowMultiple": true, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - "originalName": "filter", - "pascalCase": { - "safeName": "Filter", - "unsafeName": "Filter", - }, - "screamingSnakeCase": { - "safeName": "FILTER", - "unsafeName": "FILTER", - }, - "snakeCase": { - "safeName": "filter", - "unsafeName": "filter", - }, - }, - "wireValue": "filter", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "any", - "unsafeName": "any", - }, - "originalName": "any", - "pascalCase": { - "safeName": "Any", - "unsafeName": "Any", - }, - "screamingSnakeCase": { - "safeName": "ANY", - "unsafeName": "ANY", - }, - "snakeCase": { - "safeName": "any", - "unsafeName": "any", - }, - }, - "wireValue": "any", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "unknown", - }, - }, - }, - }, - ], - "requestBody": null, - "response": null, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "checkRequest", - "unsafeName": "checkRequest", - }, - "originalName": "CheckRequest", - "pascalCase": { - "safeName": "CheckRequest", - "unsafeName": "CheckRequest", - }, - "screamingSnakeCase": { - "safeName": "CHECK_REQUEST", - "unsafeName": "CHECK_REQUEST", - }, - "snakeCase": { - "safeName": "check_request", - "unsafeName": "check_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": { - "jsonExample": { - "users": [ - { - "name": "string", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "string", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - ], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": { - "page": { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - "results": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - "propertyPath": [], - }, - "type": "offset", - }, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_auth": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "navigationConfig": null, - "service": "service_auth", - "subpackages": [], - "types": [ - "type_auth:TokenResponse", - ], - "webhooks": null, - "websocket": null, - }, - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_auth:TokenResponse": { - "availability": null, - "docs": "An OAuth token response.", - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - "originalName": "auth", - "pascalCase": { - "safeName": "Auth", - "unsafeName": "Auth", - }, - "screamingSnakeCase": { - "safeName": "AUTH", - "unsafeName": "AUTH", - }, - "snakeCase": { - "safeName": "auth", - "unsafeName": "auth", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "tokenResponse", - "unsafeName": "tokenResponse", - }, - "originalName": "TokenResponse", - "pascalCase": { - "safeName": "TokenResponse", - "unsafeName": "TokenResponse", - }, - "screamingSnakeCase": { - "safeName": "TOKEN_RESPONSE", - "unsafeName": "TOKEN_RESPONSE", - }, - "snakeCase": { - "safeName": "token_response", - "unsafeName": "token_response", - }, - }, - "typeId": "type_auth:TokenResponse", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "accessToken", - "unsafeName": "accessToken", - }, - "originalName": "access_token", - "pascalCase": { - "safeName": "AccessToken", - "unsafeName": "AccessToken", - }, - "screamingSnakeCase": { - "safeName": "ACCESS_TOKEN", - "unsafeName": "ACCESS_TOKEN", - }, - "snakeCase": { - "safeName": "access_token", - "unsafeName": "access_token", - }, - }, - "wireValue": "access_token", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "expiresIn", - "unsafeName": "expiresIn", - }, - "originalName": "expires_in", - "pascalCase": { - "safeName": "ExpiresIn", - "unsafeName": "ExpiresIn", - }, - "screamingSnakeCase": { - "safeName": "EXPIRES_IN", - "unsafeName": "EXPIRES_IN", - }, - "snakeCase": { - "safeName": "expires_in", - "unsafeName": "expires_in", - }, - }, - "wireValue": "expires_in", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "refreshToken", - "unsafeName": "refreshToken", - }, - "originalName": "refresh_token", - "pascalCase": { - "safeName": "RefreshToken", - "unsafeName": "RefreshToken", - }, - "screamingSnakeCase": { - "safeName": "REFRESH_TOKEN", - "unsafeName": "REFRESH_TOKEN", - }, - "snakeCase": { - "safeName": "refresh_token", - "unsafeName": "refresh_token", - }, - }, - "wireValue": "refresh_token", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - }, - }, - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v43-to-v42/__test__/__snapshots__/migrateFromV43ToV42.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v43-to-v42/__test__/__snapshots__/migrateFromV43ToV42.test.ts.snap index aae2290782f..a9c4cc3e7d9 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v43-to-v42/__test__/__snapshots__/migrateFromV43ToV42.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v43-to-v42/__test__/__snapshots__/migrateFromV43ToV42.test.ts.snap @@ -998,1002 +998,3 @@ exports[`migrateFromV43ToV42 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV43ToV42 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_service:ListUsersResponse", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - ], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": null, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "type": "response", - }, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v44-to-v43/__test__/__snapshots__/migrateFromV44ToV43.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v44-to-v43/__test__/__snapshots__/migrateFromV44ToV43.test.ts.snap index 3532818d96a..3896d9fd194 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v44-to-v43/__test__/__snapshots__/migrateFromV44ToV43.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v44-to-v43/__test__/__snapshots__/migrateFromV44ToV43.test.ts.snap @@ -2514,2518 +2514,3 @@ exports[`migrateFromV44ToV43 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV44ToV43 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasStreamingEndpoints": true, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "body": { - "jsonExample": { - "users": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": { - "jsonExample": { - "users": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - ], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": null, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": 201, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list/stream", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list/stream", - }, - ], - "fullPath": { - "head": "/list/stream", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listStream", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listStream", - "unsafeName": "listStream", - }, - "originalName": "listStream", - "pascalCase": { - "safeName": "ListStream", - "unsafeName": "ListStream", - }, - "screamingSnakeCase": { - "safeName": "LIST_STREAM", - "unsafeName": "LIST_STREAM", - }, - "snakeCase": { - "safeName": "list_stream", - "unsafeName": "list_stream", - }, - }, - "pagination": null, - "path": { - "head": "/list/stream", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "streaming", - "value": { - "docs": null, - "payload": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "terminator": null, - "type": "json", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list/sse", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "body": null, - "type": "ok", - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list/sse", - }, - ], - "fullPath": { - "head": "/list/sse", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listStreamSse", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listStreamSse", - "unsafeName": "listStreamSse", - }, - "originalName": "listStreamSse", - "pascalCase": { - "safeName": "ListStreamSse", - "unsafeName": "ListStreamSse", - }, - "screamingSnakeCase": { - "safeName": "LIST_STREAM_SSE", - "unsafeName": "LIST_STREAM_SSE", - }, - "snakeCase": { - "safeName": "list_stream_sse", - "unsafeName": "list_stream_sse", - }, - }, - "pagination": null, - "path": { - "head": "/list/sse", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "streaming", - "value": { - "docs": null, - "payload": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "terminator": null, - "type": "sse", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v45-to-v44/__test__/__snapshots__/migrateFromV45ToV44.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v45-to-v44/__test__/__snapshots__/migrateFromV45ToV44.test.ts.snap index f5c67dc4c46..7f99d09be36 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v45-to-v44/__test__/__snapshots__/migrateFromV45ToV44.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v45-to-v44/__test__/__snapshots__/migrateFromV45ToV44.test.ts.snap @@ -4048,4052 +4048,3 @@ exports[`migrateFromV45ToV44 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV45ToV44 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": true, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "big", - "unsafeName": "big", - }, - "originalName": "big", - "pascalCase": { - "safeName": "Big", - "unsafeName": "Big", - }, - "screamingSnakeCase": { - "safeName": "BIG", - "unsafeName": "BIG", - }, - "snakeCase": { - "safeName": "big", - "unsafeName": "big", - }, - }, - "wireValue": "big", - }, - "value": { - "jsonExample": "123456789123456789", - "shape": { - "primitive": { - "string": { - "original": "123456789123456789", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - }, - { - "name": "Bob", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - ], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": null, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "big", - "unsafeName": "big", - }, - "originalName": "big", - "pascalCase": { - "safeName": "Big", - "unsafeName": "Big", - }, - "screamingSnakeCase": { - "safeName": "BIG", - "unsafeName": "BIG", - }, - "snakeCase": { - "safeName": "big", - "unsafeName": "big", - }, - }, - "wireValue": "big", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": 201, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "stream", - "value": [ - { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list/stream", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "stream", - "value": [ - { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list/stream", - }, - ], - "fullPath": { - "head": "/list/stream", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listStream", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listStream", - "unsafeName": "listStream", - }, - "originalName": "listStream", - "pascalCase": { - "safeName": "ListStream", - "unsafeName": "ListStream", - }, - "screamingSnakeCase": { - "safeName": "LIST_STREAM", - "unsafeName": "LIST_STREAM", - }, - "snakeCase": { - "safeName": "list_stream", - "unsafeName": "list_stream", - }, - }, - "pagination": null, - "path": { - "head": "/list/stream", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "streaming", - "value": { - "docs": null, - "payload": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "terminator": null, - "type": "json", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "sse", - "value": [ - { - "data": { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - { - "data": { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list/sse", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "sse", - "value": [ - { - "data": { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - { - "data": { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list/sse", - }, - ], - "fullPath": { - "head": "/list/sse", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listStreamSse", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listStreamSse", - "unsafeName": "listStreamSse", - }, - "originalName": "listStreamSse", - "pascalCase": { - "safeName": "ListStreamSse", - "unsafeName": "ListStreamSse", - }, - "screamingSnakeCase": { - "safeName": "LIST_STREAM_SSE", - "unsafeName": "LIST_STREAM_SSE", - }, - "snakeCase": { - "safeName": "list_stream_sse", - "unsafeName": "list_stream_sse", - }, - }, - "pagination": null, - "path": { - "head": "/list/sse", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "streaming", - "value": { - "docs": null, - "payload": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "terminator": null, - "type": "sse", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v46-to-v45/__test__/__snapshots__/migrateFromV46ToV45.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v46-to-v45/__test__/__snapshots__/migrateFromV46ToV45.test.ts.snap index 2fdce856fe5..03bf7e50892 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v46-to-v45/__test__/__snapshots__/migrateFromV46ToV45.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v46-to-v45/__test__/__snapshots__/migrateFromV46ToV45.test.ts.snap @@ -4939,4943 +4939,3 @@ exports[`migrateFromV46ToV45 > snapshot 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV46ToV45 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": true, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "big", - "unsafeName": "big", - }, - "originalName": "big", - "pascalCase": { - "safeName": "Big", - "unsafeName": "Big", - }, - "screamingSnakeCase": { - "safeName": "BIG", - "unsafeName": "BIG", - }, - "snakeCase": { - "safeName": "big", - "unsafeName": "big", - }, - }, - "wireValue": "big", - }, - "value": { - "jsonExample": "123456789123456789", - "shape": { - "primitive": { - "string": { - "original": "123456789123456789", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - ], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": null, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "big", - "unsafeName": "big", - }, - "originalName": "big", - "pascalCase": { - "safeName": "Big", - "unsafeName": "Big", - }, - "screamingSnakeCase": { - "safeName": "BIG", - "unsafeName": "BIG", - }, - "snakeCase": { - "safeName": "big", - "unsafeName": "big", - }, - }, - "wireValue": "big", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "BIG_INTEGER", - "v2": null, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": 201, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "stream", - "value": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list/stream", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "stream", - "value": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "primitive": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list/stream", - }, - ], - "fullPath": { - "head": "/list/stream", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listStream", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listStream", - "unsafeName": "listStream", - }, - "originalName": "listStream", - "pascalCase": { - "safeName": "ListStream", - "unsafeName": "ListStream", - }, - "screamingSnakeCase": { - "safeName": "LIST_STREAM", - "unsafeName": "LIST_STREAM", - }, - "snakeCase": { - "safeName": "list_stream", - "unsafeName": "list_stream", - }, - }, - "pagination": null, - "path": { - "head": "/list/stream", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "streaming", - "value": { - "docs": null, - "payload": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "terminator": null, - "type": "json", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "sse", - "value": [ - { - "data": { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - { - "data": { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list/sse", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "sse", - "value": [ - { - "data": { - "jsonExample": { - "name": "Alice", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - { - "data": { - "jsonExample": { - "name": "Bob", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - "event": "data", - }, - ], - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list/sse", - }, - ], - "fullPath": { - "head": "/list/sse", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listStreamSse", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listStreamSse", - "unsafeName": "listStreamSse", - }, - "originalName": "listStreamSse", - "pascalCase": { - "safeName": "ListStreamSse", - "unsafeName": "ListStreamSse", - }, - "screamingSnakeCase": { - "safeName": "LIST_STREAM_SSE", - "unsafeName": "LIST_STREAM_SSE", - }, - "snakeCase": { - "safeName": "list_stream_sse", - "unsafeName": "list_stream_sse", - }, - }, - "pagination": null, - "path": { - "head": "/list/sse", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "streaming", - "value": { - "docs": null, - "payload": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "terminator": null, - "type": "sse", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "goose", - "type": "string", - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap index 370de966090..fe5262bf414 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap @@ -149,7 +149,7 @@ exports[`migrateFromV47ToV46 > snapshot 1`] = ` "endpointHeaders": [], "endpointPathParameters": [], "exampleType": "userProvided", - "id": null, + "id": "1da8c4a6d7c7185e7aecd968fa60506f73aa6a2c0c8d52757c029c556e05be15", "name": null, "queryParameters": [], "request": null, @@ -2024,7 +2024,7 @@ const user = client.users.get(1234); "endpointHeaders": [], "endpointPathParameters": [], "exampleType": "userProvided", - "id": null, + "id": "7e05f42bdc17de2ac7cd32ab17c819ec8af3e5c9ed2b285f42a336d1d65cc907", "name": null, "queryParameters": [], "request": null, @@ -3003,3007 +3003,3 @@ const user = client.users.get(1234); "websocketChannels": {}, } `; - -exports[`migrateFromV47ToV46 snapshot 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "id": null, - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "generated", - "id": "e995a68dd08e99884a03ac329f1cb9ef418188e7", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - ], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": null, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": 201, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - }, - }, - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "userID", - "unsafeName": "userID", - }, - "originalName": "userId", - "pascalCase": { - "safeName": "UserID", - "unsafeName": "UserID", - }, - "screamingSnakeCase": { - "safeName": "USER_ID", - "unsafeName": "USER_ID", - }, - "snakeCase": { - "safeName": "user_id", - "unsafeName": "user_id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - "variable": null, - }, - ], - "auth": false, - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "examples": [ - { - "codeSamples": [ - { - "code": "const client = new Client(); -const user = client.users.get(1234); -", - "docs": null, - "install": null, - "language": "typescript", - "name": null, - "type": "language", - }, - ], - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "exampleType": "userProvided", - "id": null, - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//{userId}", - }, - { - "codeSamples": null, - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "userID", - "unsafeName": "userID", - }, - "originalName": "userId", - "pascalCase": { - "safeName": "UserID", - "unsafeName": "UserID", - }, - "screamingSnakeCase": { - "safeName": "USER_ID", - "unsafeName": "USER_ID", - }, - "snakeCase": { - "safeName": "user_id", - "unsafeName": "user_id", - }, - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "exampleType": "generated", - "id": "43adba1ee3267b4692e26594b99bde39e6595dcf", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "name": "string", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/string", - }, - ], - "fullPath": { - "head": "/", - "parts": [ - { - "pathParameter": "userId", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_service.get", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "get", - "unsafeName": "get", - }, - "originalName": "get", - "pascalCase": { - "safeName": "Get", - "unsafeName": "Get", - }, - "screamingSnakeCase": { - "safeName": "GET", - "unsafeName": "GET", - }, - "snakeCase": { - "safeName": "get", - "unsafeName": "get", - }, - }, - "pagination": null, - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "userId", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "userID", - "unsafeName": "userID", - }, - "originalName": "userId", - "pascalCase": { - "safeName": "UserID", - "unsafeName": "UserID", - }, - "screamingSnakeCase": { - "safeName": "USER_ID", - "unsafeName": "USER_ID", - }, - "snakeCase": { - "safeName": "user_id", - "unsafeName": "user_id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - "variable": null, - }, - ], - "queryParameters": [], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "type": "response", - }, - }, - "status-code": 201, - }, - "sdkRequest": null, - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "goose", - "type": "string", - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v48-to-v47/__test__/__snapshots__/migrateFromV48ToV47.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v48-to-v47/__test__/__snapshots__/migrateFromV48ToV47.test.ts.snap index 6495a55b7ac..391de322a9b 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v48-to-v47/__test__/__snapshots__/migrateFromV48ToV47.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v48-to-v47/__test__/__snapshots__/migrateFromV48ToV47.test.ts.snap @@ -3347,3351 +3347,3 @@ exports[`migrateFromV48ToV47 > simple 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV48ToV47 remove-all-pagination 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_service:User", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": "d5ce4135718bb82a218e345903424f377578f8f6", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "string", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "string", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/users", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listUsersWithStep", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsersWithStep", - "unsafeName": "listUsersWithStep", - }, - "originalName": "listUsersWithStep", - "pascalCase": { - "safeName": "ListUsersWithStep", - "unsafeName": "ListUsersWithStep", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_WITH_STEP", - "unsafeName": "LIST_USERS_WITH_STEP", - }, - "snakeCase": { - "safeName": "list_users_with_step", - "unsafeName": "list_users_with_step", - }, - }, - "pagination": null, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUsersWithStepRequest", - "unsafeName": "listUsersWithStepRequest", - }, - "originalName": "ListUsersWithStepRequest", - "pascalCase": { - "safeName": "ListUsersWithStepRequest", - "unsafeName": "ListUsersWithStepRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_WITH_STEP_REQUEST", - "unsafeName": "LIST_USERS_WITH_STEP_REQUEST", - }, - "snakeCase": { - "safeName": "list_users_with_step_request", - "unsafeName": "list_users_with_step_request", - }, - }, - }, - }, - "userSpecifiedExamples": [], - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; - -exports[`migrateFromV48ToV47 simple 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": true, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_service:User", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": "86cf887d1a836a080dc06059382cebbc9f4be694", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "string", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "string", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/users", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listUsers", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsers", - "unsafeName": "listUsers", - }, - "originalName": "listUsers", - "pascalCase": { - "safeName": "ListUsers", - "unsafeName": "ListUsers", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS", - "unsafeName": "LIST_USERS", - }, - "snakeCase": { - "safeName": "list_users", - "unsafeName": "list_users", - }, - }, - "pagination": { - "page": { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - "results": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - "propertyPath": [], - }, - "type": "offset", - }, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUsersRequest", - "unsafeName": "listUsersRequest", - }, - "originalName": "ListUsersRequest", - "pascalCase": { - "safeName": "ListUsersRequest", - "unsafeName": "ListUsersRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_REQUEST", - "unsafeName": "LIST_USERS_REQUEST", - }, - "snakeCase": { - "safeName": "list_users_request", - "unsafeName": "list_users_request", - }, - }, - }, - }, - "userSpecifiedExamples": [], - }, - { - "allPathParameters": [], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": "d5ce4135718bb82a218e345903424f377578f8f6", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "string", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "string", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "string", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/users", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listUsersWithStep", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsersWithStep", - "unsafeName": "listUsersWithStep", - }, - "originalName": "listUsersWithStep", - "pascalCase": { - "safeName": "ListUsersWithStep", - "unsafeName": "ListUsersWithStep", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_WITH_STEP", - "unsafeName": "LIST_USERS_WITH_STEP", - }, - "snakeCase": { - "safeName": "list_users_with_step", - "unsafeName": "list_users_with_step", - }, - }, - "pagination": null, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - "originalName": "limit", - "pascalCase": { - "safeName": "Limit", - "unsafeName": "Limit", - }, - "screamingSnakeCase": { - "safeName": "LIMIT", - "unsafeName": "LIMIT", - }, - "snakeCase": { - "safeName": "limit", - "unsafeName": "limit", - }, - }, - "wireValue": "limit", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUsersWithStepRequest", - "unsafeName": "listUsersWithStepRequest", - }, - "originalName": "ListUsersWithStepRequest", - "pascalCase": { - "safeName": "ListUsersWithStepRequest", - "unsafeName": "ListUsersWithStepRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_WITH_STEP_REQUEST", - "unsafeName": "LIST_USERS_WITH_STEP_REQUEST", - }, - "snakeCase": { - "safeName": "list_users_with_step_request", - "unsafeName": "list_users_with_step_request", - }, - }, - }, - }, - "userSpecifiedExamples": [], - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v49-to-v48/__test__/__snapshots__/migrateFromV49ToV48.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v49-to-v48/__test__/__snapshots__/migrateFromV49ToV48.test.ts.snap index e60e4f4b608..7de0cdd48b7 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v49-to-v48/__test__/__snapshots__/migrateFromV49ToV48.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v49-to-v48/__test__/__snapshots__/migrateFromV49ToV48.test.ts.snap @@ -561,565 +561,3 @@ exports[`migrateFromV49ToV48 > simple 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV49ToV48 simple 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/__test__/__snapshots__/migrateFromV5ToV4.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/__test__/__snapshots__/migrateFromV5ToV4.test.ts.snap index 42807c372fa..9d2a1ecf81a 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/__test__/__snapshots__/migrateFromV5ToV4.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/__test__/__snapshots__/migrateFromV5ToV4.test.ts.snap @@ -315,319 +315,3 @@ exports[`migrateFromV5ToV4 > correctly migrates 1`] = ` ], } `; - -exports[`migrateFromV5ToV4 correctly migrates 1`] = ` -{ - "apiDisplayName": undefined, - "apiDocs": undefined, - "apiName": "api", - "auth": { - "docs": undefined, - "requirement": "ALL", - "schemes": [], - }, - "constants": { - "errorDiscriminant": "_error", - "errorInstanceIdKey": "_errorInstanceId", - "unknownErrorDiscriminantValue": "_unknown", - }, - "constantsV2": { - "errors": { - "errorContentKey": { - "camelCase": "content", - "originalValue": "content", - "pascalCase": "Content", - "screamingSnakeCase": "CONTENT", - "snakeCase": "content", - "wireValue": "content", - }, - "errorDiscriminant": { - "camelCase": "error", - "originalValue": "error", - "pascalCase": "Error", - "screamingSnakeCase": "ERROR", - "snakeCase": "error", - "wireValue": "error", - }, - "errorInstanceIdKey": { - "camelCase": "errorInstanceID", - "originalValue": "errorInstanceId", - "pascalCase": "ErrorInstanceID", - "screamingSnakeCase": "ERROR_INSTANCE_ID", - "snakeCase": "error_instance_id", - "wireValue": "errorInstanceId", - }, - }, - "errorsV2": { - "errorContentKey": { - "name": { - "safeName": { - "camelCase": "content", - "originalValue": "content", - "pascalCase": "Content", - "screamingSnakeCase": "CONTENT", - "snakeCase": "content", - }, - "unsafeName": { - "camelCase": "content", - "originalValue": "content", - "pascalCase": "Content", - "screamingSnakeCase": "CONTENT", - "snakeCase": "content", - }, - }, - "wireValue": "content", - }, - "errorDiscriminant": { - "name": { - "safeName": { - "camelCase": "error", - "originalValue": "error", - "pascalCase": "Error", - "screamingSnakeCase": "ERROR", - "snakeCase": "error", - }, - "unsafeName": { - "camelCase": "error", - "originalValue": "error", - "pascalCase": "Error", - "screamingSnakeCase": "ERROR", - "snakeCase": "error", - }, - }, - "wireValue": "error", - }, - "errorInstanceIdKey": { - "name": { - "safeName": { - "camelCase": "errorInstanceID", - "originalValue": "errorInstanceId", - "pascalCase": "ErrorInstanceID", - "screamingSnakeCase": "ERROR_INSTANCE_ID", - "snakeCase": "error_instance_id", - }, - "unsafeName": { - "camelCase": "errorInstanceID", - "originalValue": "errorInstanceId", - "pascalCase": "ErrorInstanceID", - "screamingSnakeCase": "ERROR_INSTANCE_ID", - "snakeCase": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - }, - "defaultEnvironment": undefined, - "environments": [], - "errorDiscriminant": undefined, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": [], - "headers": [], - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - "userAgent": undefined, - }, - }, - "services": { - "http": [], - "websocket": [], - }, - "types": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [ - { - "docs": undefined, - "jsonExample": { - "title": "hello", - }, - "name": undefined, - "shape": { - "properties": [ - { - "originalTypeDeclaration": { - "fernFilepath": [ - { - "camelCase": "blog", - "originalValue": "blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - ], - "fernFilepathV2": [ - { - "safeName": { - "camelCase": "blog", - "originalValue": "blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - "unsafeName": { - "camelCase": "blog", - "originalValue": "blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - }, - ], - "name": "Blog", - "nameV2": { - "camelCase": "blog", - "originalValue": "Blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - "nameV3": { - "safeName": { - "camelCase": "blog", - "originalValue": "Blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - "unsafeName": { - "camelCase": "blog", - "originalValue": "Blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - }, - }, - "value": { - "jsonExample": "hello", - "shape": { - "primitive": { - "string": "hello", - "type": "string", - }, - "type": "primitive", - }, - }, - "wireKey": "title", - }, - ], - "type": "object", - }, - }, - ], - "name": { - "fernFilepath": [ - { - "camelCase": "blog", - "originalValue": "blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - ], - "fernFilepathV2": [ - { - "safeName": { - "camelCase": "blog", - "originalValue": "blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - "unsafeName": { - "camelCase": "blog", - "originalValue": "blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - }, - ], - "name": "Blog", - "nameV2": { - "camelCase": "blog", - "originalValue": "Blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - "nameV3": { - "safeName": { - "camelCase": "blog", - "originalValue": "Blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - "unsafeName": { - "camelCase": "blog", - "originalValue": "Blog", - "pascalCase": "Blog", - "screamingSnakeCase": "BLOG", - "snakeCase": "blog", - }, - }, - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "properties": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "name": { - "camelCase": "title", - "originalValue": "title", - "pascalCase": "Title", - "screamingSnakeCase": "TITLE", - "snakeCase": "title", - "wireValue": "title", - }, - "nameV2": { - "name": { - "safeName": { - "camelCase": "title", - "originalValue": "title", - "pascalCase": "Title", - "screamingSnakeCase": "TITLE", - "snakeCase": "title", - }, - "unsafeName": { - "camelCase": "title", - "originalValue": "title", - "pascalCase": "Title", - "screamingSnakeCase": "TITLE", - "snakeCase": "title", - }, - }, - "wireValue": "title", - }, - "valueType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - ], - }, - }, - ], -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v50-to-v49/__test__/__snapshots__/migrateFromV50ToV49.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v50-to-v49/__test__/__snapshots__/migrateFromV50ToV49.test.ts.snap index 8fdbc61ec43..9c07ea0a11d 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v50-to-v49/__test__/__snapshots__/migrateFromV50ToV49.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v50-to-v49/__test__/__snapshots__/migrateFromV50ToV49.test.ts.snap @@ -1086,1090 +1086,3 @@ exports[`migrateFromV50ToV49 > simple 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV50ToV49 simple 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": "6b664a32e0bf353f2104503f66486bef3b3de38b", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": { - "jsonExample": { - "stream": true, - }, - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - "originalName": "stream", - "pascalCase": { - "safeName": "Stream", - "unsafeName": "Stream", - }, - "screamingSnakeCase": { - "safeName": "STREAM", - "unsafeName": "STREAM", - }, - "snakeCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - }, - "wireValue": "stream", - }, - "originalTypeDeclaration": null, - "value": { - "jsonExample": true, - "shape": { - "container": { - "optional": { - "jsonExample": true, - "shape": { - "primitive": { - "boolean": true, - "type": "boolean", - }, - "type": "primitive", - }, - }, - "type": "optional", - }, - "type": "container", - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": "SGVsbG8gd29ybGQh", - "shape": { - "primitive": { - "string": { - "original": "SGVsbG8gd29ybGQh", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/users", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listUsers", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsers", - "unsafeName": "listUsers", - }, - "originalName": "listUsers", - "pascalCase": { - "safeName": "ListUsers", - "unsafeName": "ListUsers", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS", - "unsafeName": "LIST_USERS", - }, - "snakeCase": { - "safeName": "list_users", - "unsafeName": "list_users", - }, - }, - "pagination": null, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "page", - "unsafeName": "page", - }, - "originalName": "page", - "pascalCase": { - "safeName": "Page", - "unsafeName": "Page", - }, - "screamingSnakeCase": { - "safeName": "PAGE", - "unsafeName": "PAGE", - }, - "snakeCase": { - "safeName": "page", - "unsafeName": "page", - }, - }, - "wireValue": "page", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": { - "contentType": null, - "extends": [], - "extra-properties": false, - "name": { - "camelCase": { - "safeName": "listUsersRequest", - "unsafeName": "listUsersRequest", - }, - "originalName": "ListUsersRequest", - "pascalCase": { - "safeName": "ListUsersRequest", - "unsafeName": "ListUsersRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_REQUEST", - "unsafeName": "LIST_USERS_REQUEST", - }, - "snakeCase": { - "safeName": "list_users_request", - "unsafeName": "list_users_request", - }, - }, - "properties": [ - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - "originalName": "stream", - "pascalCase": { - "safeName": "Stream", - "unsafeName": "Stream", - }, - "screamingSnakeCase": { - "safeName": "STREAM", - "unsafeName": "STREAM", - }, - "snakeCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - }, - "wireValue": "stream", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": { - "v1": "BOOLEAN", - "v2": null, - }, - }, - }, - }, - }, - ], - "type": "inlinedRequestBody", - }, - "response": { - "body": { - "nonStreamResponse": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "streamResponse": { - "docs": null, - "payload": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "terminator": null, - "type": "json", - }, - "type": "streamParameter", - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUsersRequest", - "unsafeName": "listUsersRequest", - }, - "originalName": "ListUsersRequest", - "pascalCase": { - "safeName": "ListUsersRequest", - "unsafeName": "ListUsersRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_REQUEST", - "unsafeName": "LIST_USERS_REQUEST", - }, - "snakeCase": { - "safeName": "list_users_request", - "unsafeName": "list_users_request", - }, - }, - }, - "streamParameter": { - "property": { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - "originalName": "stream", - "pascalCase": { - "safeName": "Stream", - "unsafeName": "Stream", - }, - "screamingSnakeCase": { - "safeName": "STREAM", - "unsafeName": "STREAM", - }, - "snakeCase": { - "safeName": "stream", - "unsafeName": "stream", - }, - }, - "wireValue": "stream", - }, - "type": "body", - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "primitive", - "primitive": { - "v1": "BOOLEAN", - "v2": null, - }, - }, - }, - }, - }, - "propertyPath": [], - }, - }, - "userSpecifiedExamples": [], - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap index 458c7f271ee..c0ffc16ee00 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap @@ -1185,7 +1185,7 @@ exports[`migrateFromV51ToV50 > simple 1`] = ` "docs": null, "endpointHeaders": [], "endpointPathParameters": [], - "id": null, + "id": "1da8c4a6d7c7185e7aecd968fa60506f73aa6a2c0c8d52757c029c556e05be15", "name": null, "queryParameters": [], "request": null, @@ -2528,3019 +2528,7 @@ const user = client.users.get(1234); "docs": null, "endpointHeaders": [], "endpointPathParameters": [], - "id": null, - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": null, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//{userId}", - }, - }, - ], - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - }, - "type_service:User": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "literal", - "literal": { - "string": "goose", - "type": "string", - }, - }, - }, - }, - ], - }, - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; - -exports[`migrateFromV51ToV50 simple 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "apiVersion": null, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:User", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": "e995a68dd08e99884a03ac329f1cb9ef418188e7", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/list", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/list", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.list", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "list", - "unsafeName": "list", - }, - "originalName": "list", - "pascalCase": { - "safeName": "List", - "unsafeName": "List", - }, - "screamingSnakeCase": { - "safeName": "LIST", - "unsafeName": "LIST", - }, - "snakeCase": { - "safeName": "list", - "unsafeName": "list", - }, - }, - "pagination": null, - "path": { - "head": "/list", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "pageNum", - "unsafeName": "pageNum", - }, - "originalName": "pageNum", - "pascalCase": { - "safeName": "PageNum", - "unsafeName": "PageNum", - }, - "screamingSnakeCase": { - "safeName": "PAGE_NUM", - "unsafeName": "PAGE_NUM", - }, - "snakeCase": { - "safeName": "page_num", - "unsafeName": "page_num", - }, - }, - "wireValue": "pageNum", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": { - "default": null, - "type": "integer", - "validation": null, - }, - }, - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": 201, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listRequest", - "unsafeName": "listRequest", - }, - "originalName": "ListRequest", - "pascalCase": { - "safeName": "ListRequest", - "unsafeName": "ListRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_REQUEST", - "unsafeName": "LIST_REQUEST", - }, - "snakeCase": { - "safeName": "list_request", - "unsafeName": "list_request", - }, - }, - }, - "streamParameter": null, - }, - "userSpecifiedExamples": [ - { - "codeSamples": null, - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": null, - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "name": "Alice", - "type": "goose", - }, - { - "name": "Bob", - "type": "goose", - }, - ], - "shape": { - "container": { - "list": [ - { - "jsonExample": { - "name": "Alice", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Alice", - "shape": { - "primitive": { - "string": { - "original": "Alice", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - { - "jsonExample": { - "name": "Bob", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "Bob", - "shape": { - "primitive": { - "string": { - "original": "Bob", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "//list", - }, - }, - ], - }, - { - "allPathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "userID", - "unsafeName": "userID", - }, - "originalName": "userId", - "pascalCase": { - "safeName": "UserID", - "unsafeName": "UserID", - }, - "screamingSnakeCase": { - "safeName": "USER_ID", - "unsafeName": "USER_ID", - }, - "snakeCase": { - "safeName": "user_id", - "unsafeName": "user_id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - "variable": null, - }, - ], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [ - { - "name": { - "camelCase": { - "safeName": "userID", - "unsafeName": "userID", - }, - "originalName": "userId", - "pascalCase": { - "safeName": "UserID", - "unsafeName": "UserID", - }, - "screamingSnakeCase": { - "safeName": "USER_ID", - "unsafeName": "USER_ID", - }, - "snakeCase": { - "safeName": "user_id", - "unsafeName": "user_id", - }, - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - ], - "id": "43adba1ee3267b4692e26594b99bde39e6595dcf", - "name": null, - "queryParameters": [], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "name": "string", - "type": "goose", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "type", - "unsafeName": "type", - }, - "originalName": "type", - "pascalCase": { - "safeName": "Type", - "unsafeName": "Type", - }, - "screamingSnakeCase": { - "safeName": "TYPE", - "unsafeName": "TYPE", - }, - "snakeCase": { - "safeName": "type", - "unsafeName": "type", - }, - }, - "wireValue": "type", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "goose", - "shape": { - "container": { - "literal": { - "string": { - "original": "goose", - }, - "type": "string", - }, - "type": "literal", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/string", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/", - "parts": [ - { - "pathParameter": "userId", - "tail": "", - }, - ], - }, - "headers": [], - "id": "endpoint_service.get", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "get", - "unsafeName": "get", - }, - "originalName": "get", - "pascalCase": { - "safeName": "Get", - "unsafeName": "Get", - }, - "screamingSnakeCase": { - "safeName": "GET", - "unsafeName": "GET", - }, - "snakeCase": { - "safeName": "get", - "unsafeName": "get", - }, - }, - "pagination": null, - "path": { - "head": "/", - "parts": [ - { - "pathParameter": "userId", - "tail": "", - }, - ], - }, - "pathParameters": [ - { - "docs": null, - "location": "ENDPOINT", - "name": { - "camelCase": { - "safeName": "userID", - "unsafeName": "userID", - }, - "originalName": "userId", - "pascalCase": { - "safeName": "UserID", - "unsafeName": "UserID", - }, - "screamingSnakeCase": { - "safeName": "USER_ID", - "unsafeName": "USER_ID", - }, - "snakeCase": { - "safeName": "user_id", - "unsafeName": "user_id", - }, - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - "variable": null, - }, - ], - "queryParameters": [], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "type": "response", - }, - }, - "status-code": 201, - }, - "sdkRequest": null, - "userSpecifiedExamples": [ - { - "codeSamples": [ - { - "code": "const client = new Client(); -const user = client.users.get(1234); -", - "docs": null, - "install": null, - "language": "typescript", - "name": null, - "type": "language", - }, - ], - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": null, + "id": "7e05f42bdc17de2ac7cd32ab17c819ec8af3e5c9ed2b285f42a336d1d65cc907", "name": null, "queryParameters": [], "request": null, diff --git a/packages/cli/generation/ir-migrations/src/migrations/v52-to-v51/__test__/__snapshots__/migrateFromV52ToV51.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v52-to-v51/__test__/__snapshots__/migrateFromV52ToV51.test.ts.snap index e0f1056cad8..05256b0bcc5 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v52-to-v51/__test__/__snapshots__/migrateFromV52ToV51.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v52-to-v51/__test__/__snapshots__/migrateFromV52ToV51.test.ts.snap @@ -1995,1999 +1995,3 @@ exports[`migrateFromV52ToV51 > simple 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV52ToV51 simple 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "apiVersion": null, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_service:User", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:UserType", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": "a4d835ca03895eaad8e53c0e7df9f91d39b81c5d", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "value": { - "jsonExample": "ADMIN", - "shape": { - "shape": { - "type": "enum", - "value": { - "name": { - "camelCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - "originalName": "ADMIN", - "pascalCase": { - "safeName": "Admin", - "unsafeName": "Admin", - }, - "screamingSnakeCase": { - "safeName": "ADMIN", - "unsafeName": "ADMIN", - }, - "snakeCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - }, - "wireValue": "ADMIN", - }, - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "age": 1, - "name": "string", - "userType": "ADMIN", - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "age": 1, - "name": "string", - "userType": "ADMIN", - }, - ], - "shape": { - "container": { - "itemType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "list": [ - { - "jsonExample": { - "age": 1, - "name": "string", - "userType": "ADMIN", - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "ADMIN", - "shape": { - "shape": { - "type": "enum", - "value": { - "name": { - "camelCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - "originalName": "ADMIN", - "pascalCase": { - "safeName": "Admin", - "unsafeName": "Admin", - }, - "screamingSnakeCase": { - "safeName": "ADMIN", - "unsafeName": "ADMIN", - }, - "snakeCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - }, - "wireValue": "ADMIN", - }, - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "age", - "unsafeName": "age", - }, - "originalName": "age", - "pascalCase": { - "safeName": "Age", - "unsafeName": "Age", - }, - "screamingSnakeCase": { - "safeName": "AGE", - "unsafeName": "AGE", - }, - "snakeCase": { - "safeName": "age", - "unsafeName": "age", - }, - }, - "wireValue": "age", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/users", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listUsers", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsers", - "unsafeName": "listUsers", - }, - "originalName": "listUsers", - "pascalCase": { - "safeName": "ListUsers", - "unsafeName": "ListUsers", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS", - "unsafeName": "LIST_USERS", - }, - "snakeCase": { - "safeName": "list_users", - "unsafeName": "list_users", - }, - }, - "pagination": null, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUserRequest", - "unsafeName": "listUserRequest", - }, - "originalName": "ListUserRequest", - "pascalCase": { - "safeName": "ListUserRequest", - "unsafeName": "ListUserRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USER_REQUEST", - "unsafeName": "LIST_USER_REQUEST", - }, - "snakeCase": { - "safeName": "list_user_request", - "unsafeName": "list_user_request", - }, - }, - }, - "streamParameter": null, - }, - "userSpecifiedExamples": [], - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:UserType", - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "autogeneratedExamples": [], - "availability": null, - "docs": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - "type_service:UserType", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - "userProvidedExamples": [], - }, - "type_service:User": { - "autogeneratedExamples": [], - "availability": null, - "docs": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [ - "type_service:UserType", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "age", - "unsafeName": "age", - }, - "originalName": "age", - "pascalCase": { - "safeName": "Age", - "unsafeName": "Age", - }, - "screamingSnakeCase": { - "safeName": "AGE", - "unsafeName": "AGE", - }, - "snakeCase": { - "safeName": "age", - "unsafeName": "age", - }, - }, - "wireValue": "age", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "INTEGER", - "v2": null, - }, - }, - }, - ], - }, - "userProvidedExamples": [], - }, - "type_service:UserType": { - "autogeneratedExamples": [], - "availability": null, - "docs": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - "referencedTypes": [], - "shape": { - "_type": "enum", - "default": null, - "values": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - "originalName": "ADMIN", - "pascalCase": { - "safeName": "Admin", - "unsafeName": "Admin", - }, - "screamingSnakeCase": { - "safeName": "ADMIN", - "unsafeName": "ADMIN", - }, - "snakeCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - }, - "wireValue": "ADMIN", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "authenticated", - "unsafeName": "authenticated", - }, - "originalName": "AUTHENTICATED", - "pascalCase": { - "safeName": "Authenticated", - "unsafeName": "Authenticated", - }, - "screamingSnakeCase": { - "safeName": "AUTHENTICATED", - "unsafeName": "AUTHENTICATED", - }, - "snakeCase": { - "safeName": "authenticated", - "unsafeName": "authenticated", - }, - }, - "wireValue": "AUTHENTICATED", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "unauthenticated", - "unsafeName": "unauthenticated", - }, - "originalName": "UNAUTHENTICATED", - "pascalCase": { - "safeName": "Unauthenticated", - "unsafeName": "Unauthenticated", - }, - "screamingSnakeCase": { - "safeName": "UNAUTHENTICATED", - "unsafeName": "UNAUTHENTICATED", - }, - "snakeCase": { - "safeName": "unauthenticated", - "unsafeName": "unauthenticated", - }, - }, - "wireValue": "UNAUTHENTICATED", - }, - }, - ], - }, - "userProvidedExamples": [], - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v53-to-v52/__test__/__snapshots__/migrateFromV53ToV52.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v53-to-v52/__test__/__snapshots__/migrateFromV53ToV52.test.ts.snap index 756c3876893..0b5f12febaa 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v53-to-v52/__test__/__snapshots__/migrateFromV53ToV52.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v53-to-v52/__test__/__snapshots__/migrateFromV53ToV52.test.ts.snap @@ -2140,2144 +2140,3 @@ exports[`migrateFromV53ToV52 > simple 1`] = ` "websocketChannels": {}, } `; - -exports[`migrateFromV53ToV52 simple 1`] = ` -{ - "apiDisplayName": null, - "apiDocs": null, - "apiName": { - "camelCase": { - "safeName": "simpleAPI", - "unsafeName": "simpleAPI", - }, - "originalName": "simple-api", - "pascalCase": { - "safeName": "SimpleAPI", - "unsafeName": "SimpleAPI", - }, - "screamingSnakeCase": { - "safeName": "SIMPLE_API", - "unsafeName": "SIMPLE_API", - }, - "snakeCase": { - "safeName": "simple_api", - "unsafeName": "simple_api", - }, - }, - "apiVersion": null, - "auth": { - "docs": null, - "requirement": "ALL", - "schemes": [ - { - "_type": "bearer", - "docs": null, - "token": { - "camelCase": { - "safeName": "token", - "unsafeName": "token", - }, - "originalName": "token", - "pascalCase": { - "safeName": "Token", - "unsafeName": "Token", - }, - "screamingSnakeCase": { - "safeName": "TOKEN", - "unsafeName": "TOKEN", - }, - "snakeCase": { - "safeName": "token", - "unsafeName": "token", - }, - }, - "tokenEnvVar": null, - }, - ], - }, - "basePath": null, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": null, - "errorDiscriminationStrategy": { - "type": "statusCode", - }, - "errors": {}, - "headers": [], - "idempotencyHeaders": [], - "pathParameters": [], - "readmeConfig": null, - "rootPackage": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": null, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "navigationConfig": null, - "service": null, - "subpackages": [ - "subpackage_service", - ], - "types": [], - "webhooks": null, - "websocket": null, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_service:User", - ], - "typesReferencedOnlyByService": { - "service_service": [ - "type_service:UserType", - "type_service:ListUsersResponse", - ], - }, - }, - "services": { - "service_service": { - "availability": null, - "basePath": { - "head": "/", - "parts": [], - }, - "displayName": null, - "endpoints": [ - { - "allPathParameters": [], - "auth": false, - "autogeneratedExamples": [ - { - "example": { - "docs": null, - "endpointHeaders": [], - "endpointPathParameters": [], - "id": "8ee2d4ed14cfb0125ce0defa7e4bd57e1c7f993f", - "name": null, - "queryParameters": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "value": { - "jsonExample": "ADMIN", - "shape": { - "shape": { - "type": "enum", - "value": { - "name": { - "camelCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - "originalName": "ADMIN", - "pascalCase": { - "safeName": "Admin", - "unsafeName": "Admin", - }, - "screamingSnakeCase": { - "safeName": "ADMIN", - "unsafeName": "ADMIN", - }, - "snakeCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - }, - "wireValue": "ADMIN", - }, - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - }, - }, - ], - "request": null, - "response": { - "type": "ok", - "value": { - "type": "body", - "value": { - "jsonExample": { - "users": [ - { - "age": 1, - "name": "string", - "userType": "ADMIN", - "weight": 1.1, - }, - ], - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "value": { - "jsonExample": [ - { - "age": 1, - "name": "string", - "userType": "ADMIN", - "weight": 1.1, - }, - ], - "shape": { - "container": { - "itemType": { - "_type": "named", - "default": null, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "inline": null, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "list": [ - { - "jsonExample": { - "age": 1, - "name": "string", - "userType": "ADMIN", - "weight": 1.1, - }, - "shape": { - "shape": { - "properties": [ - { - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "ADMIN", - "shape": { - "shape": { - "type": "enum", - "value": { - "name": { - "camelCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - "originalName": "ADMIN", - "pascalCase": { - "safeName": "Admin", - "unsafeName": "Admin", - }, - "screamingSnakeCase": { - "safeName": "ADMIN", - "unsafeName": "ADMIN", - }, - "snakeCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - }, - "wireValue": "ADMIN", - }, - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": "string", - "shape": { - "primitive": { - "string": { - "original": "string", - }, - "type": "string", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "age", - "unsafeName": "age", - }, - "originalName": "age", - "pascalCase": { - "safeName": "Age", - "unsafeName": "Age", - }, - "screamingSnakeCase": { - "safeName": "AGE", - "unsafeName": "AGE", - }, - "snakeCase": { - "safeName": "age", - "unsafeName": "age", - }, - }, - "wireValue": "age", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": 1, - "shape": { - "primitive": { - "integer": 1, - "type": "integer", - }, - "type": "primitive", - }, - }, - }, - { - "name": { - "name": { - "camelCase": { - "safeName": "weight", - "unsafeName": "weight", - }, - "originalName": "weight", - "pascalCase": { - "safeName": "Weight", - "unsafeName": "Weight", - }, - "screamingSnakeCase": { - "safeName": "WEIGHT", - "unsafeName": "WEIGHT", - }, - "snakeCase": { - "safeName": "weight", - "unsafeName": "weight", - }, - }, - "wireValue": "weight", - }, - "originalTypeDeclaration": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "value": { - "jsonExample": 1.1, - "shape": { - "primitive": { - "double": 1.1, - "type": "double", - }, - "type": "primitive", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - ], - "type": "list", - }, - "type": "container", - }, - }, - }, - ], - "type": "object", - }, - "type": "named", - "typeName": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - }, - }, - }, - }, - "rootPathParameters": [], - "serviceHeaders": [], - "servicePathParameters": [], - "url": "/users", - }, - }, - ], - "availability": null, - "baseUrl": null, - "displayName": null, - "docs": null, - "errors": [], - "fullPath": { - "head": "/users", - "parts": [], - }, - "headers": [], - "id": "endpoint_service.listUsers", - "idempotent": false, - "method": "GET", - "name": { - "camelCase": { - "safeName": "listUsers", - "unsafeName": "listUsers", - }, - "originalName": "listUsers", - "pascalCase": { - "safeName": "ListUsers", - "unsafeName": "ListUsers", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS", - "unsafeName": "LIST_USERS", - }, - "snakeCase": { - "safeName": "list_users", - "unsafeName": "list_users", - }, - }, - "pagination": null, - "path": { - "head": "/users", - "parts": [], - }, - "pathParameters": [], - "queryParameters": [ - { - "allowMultiple": false, - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "valueType": { - "_type": "named", - "default": null, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "inline": null, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - ], - "requestBody": null, - "response": { - "body": { - "type": "json", - "value": { - "docs": null, - "responseBodyType": { - "_type": "named", - "default": null, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "inline": null, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "type": "response", - }, - }, - "status-code": null, - }, - "sdkRequest": { - "requestParameterName": { - "camelCase": { - "safeName": "request", - "unsafeName": "request", - }, - "originalName": "request", - "pascalCase": { - "safeName": "Request", - "unsafeName": "Request", - }, - "screamingSnakeCase": { - "safeName": "REQUEST", - "unsafeName": "REQUEST", - }, - "snakeCase": { - "safeName": "request", - "unsafeName": "request", - }, - }, - "shape": { - "bodyKey": { - "camelCase": { - "safeName": "body", - "unsafeName": "body", - }, - "originalName": "body", - "pascalCase": { - "safeName": "Body", - "unsafeName": "Body", - }, - "screamingSnakeCase": { - "safeName": "BODY", - "unsafeName": "BODY", - }, - "snakeCase": { - "safeName": "body", - "unsafeName": "body", - }, - }, - "type": "wrapper", - "wrapperName": { - "camelCase": { - "safeName": "listUserRequest", - "unsafeName": "listUserRequest", - }, - "originalName": "ListUserRequest", - "pascalCase": { - "safeName": "ListUserRequest", - "unsafeName": "ListUserRequest", - }, - "screamingSnakeCase": { - "safeName": "LIST_USER_REQUEST", - "unsafeName": "LIST_USER_REQUEST", - }, - "snakeCase": { - "safeName": "list_user_request", - "unsafeName": "list_user_request", - }, - }, - }, - "streamParameter": null, - }, - "userSpecifiedExamples": [], - }, - ], - "headers": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - }, - "pathParameters": [], - }, - }, - "subpackages": { - "subpackage_service": { - "docs": null, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": true, - "name": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "navigationConfig": null, - "service": "service_service", - "subpackages": [], - "types": [ - "type_service:UserType", - "type_service:User", - "type_service:ListUsersResponse", - ], - "webhooks": null, - "websocket": null, - }, - }, - "types": { - "type_service:ListUsersResponse": { - "autogeneratedExamples": [], - "availability": null, - "docs": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "listUsersResponse", - "unsafeName": "listUsersResponse", - }, - "originalName": "ListUsersResponse", - "pascalCase": { - "safeName": "ListUsersResponse", - "unsafeName": "ListUsersResponse", - }, - "screamingSnakeCase": { - "safeName": "LIST_USERS_RESPONSE", - "unsafeName": "LIST_USERS_RESPONSE", - }, - "snakeCase": { - "safeName": "list_users_response", - "unsafeName": "list_users_response", - }, - }, - "typeId": "type_service:ListUsersResponse", - }, - "referencedTypes": [ - "type_service:User", - "type_service:UserType", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "users", - "unsafeName": "users", - }, - "originalName": "users", - "pascalCase": { - "safeName": "Users", - "unsafeName": "Users", - }, - "screamingSnakeCase": { - "safeName": "USERS", - "unsafeName": "USERS", - }, - "snakeCase": { - "safeName": "users", - "unsafeName": "users", - }, - }, - "wireValue": "users", - }, - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "named", - "default": null, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "inline": null, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - }, - }, - }, - ], - }, - "userProvidedExamples": [], - }, - "type_service:User": { - "autogeneratedExamples": [], - "availability": null, - "docs": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "user", - "unsafeName": "user", - }, - "originalName": "User", - "pascalCase": { - "safeName": "User", - "unsafeName": "User", - }, - "screamingSnakeCase": { - "safeName": "USER", - "unsafeName": "USER", - }, - "snakeCase": { - "safeName": "user", - "unsafeName": "user", - }, - }, - "typeId": "type_service:User", - }, - "referencedTypes": [ - "type_service:UserType", - ], - "shape": { - "_type": "object", - "extends": [], - "extra-properties": false, - "properties": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "userType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "wireValue": "userType", - }, - "valueType": { - "_type": "named", - "default": null, - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "inline": null, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "name", - "unsafeName": "name", - }, - "originalName": "name", - "pascalCase": { - "safeName": "Name", - "unsafeName": "Name", - }, - "screamingSnakeCase": { - "safeName": "NAME", - "unsafeName": "NAME", - }, - "snakeCase": { - "safeName": "name", - "unsafeName": "name", - }, - }, - "wireValue": "name", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "STRING", - "v2": { - "default": null, - "type": "string", - "validation": null, - }, - }, - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "age", - "unsafeName": "age", - }, - "originalName": "age", - "pascalCase": { - "safeName": "Age", - "unsafeName": "Age", - }, - "screamingSnakeCase": { - "safeName": "AGE", - "unsafeName": "AGE", - }, - "snakeCase": { - "safeName": "age", - "unsafeName": "age", - }, - }, - "wireValue": "age", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "UINT", - "v2": null, - }, - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "weight", - "unsafeName": "weight", - }, - "originalName": "weight", - "pascalCase": { - "safeName": "Weight", - "unsafeName": "Weight", - }, - "screamingSnakeCase": { - "safeName": "WEIGHT", - "unsafeName": "WEIGHT", - }, - "snakeCase": { - "safeName": "weight", - "unsafeName": "weight", - }, - }, - "wireValue": "weight", - }, - "valueType": { - "_type": "primitive", - "primitive": { - "v1": "DOUBLE", - "v2": null, - }, - }, - }, - ], - }, - "userProvidedExamples": [], - }, - "type_service:UserType": { - "autogeneratedExamples": [], - "availability": null, - "docs": null, - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "userType", - "unsafeName": "userType", - }, - "originalName": "UserType", - "pascalCase": { - "safeName": "UserType", - "unsafeName": "UserType", - }, - "screamingSnakeCase": { - "safeName": "USER_TYPE", - "unsafeName": "USER_TYPE", - }, - "snakeCase": { - "safeName": "user_type", - "unsafeName": "user_type", - }, - }, - "typeId": "type_service:UserType", - }, - "referencedTypes": [], - "shape": { - "_type": "enum", - "default": null, - "values": [ - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - "originalName": "ADMIN", - "pascalCase": { - "safeName": "Admin", - "unsafeName": "Admin", - }, - "screamingSnakeCase": { - "safeName": "ADMIN", - "unsafeName": "ADMIN", - }, - "snakeCase": { - "safeName": "admin", - "unsafeName": "admin", - }, - }, - "wireValue": "ADMIN", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "authenticated", - "unsafeName": "authenticated", - }, - "originalName": "AUTHENTICATED", - "pascalCase": { - "safeName": "Authenticated", - "unsafeName": "Authenticated", - }, - "screamingSnakeCase": { - "safeName": "AUTHENTICATED", - "unsafeName": "AUTHENTICATED", - }, - "snakeCase": { - "safeName": "authenticated", - "unsafeName": "authenticated", - }, - }, - "wireValue": "AUTHENTICATED", - }, - }, - { - "availability": null, - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "unauthenticated", - "unsafeName": "unauthenticated", - }, - "originalName": "UNAUTHENTICATED", - "pascalCase": { - "safeName": "Unauthenticated", - "unsafeName": "Unauthenticated", - }, - "screamingSnakeCase": { - "safeName": "UNAUTHENTICATED", - "unsafeName": "UNAUTHENTICATED", - }, - "snakeCase": { - "safeName": "unauthenticated", - "unsafeName": "unauthenticated", - }, - }, - "wireValue": "UNAUTHENTICATED", - }, - }, - ], - }, - "userProvidedExamples": [], - }, - }, - "variables": [], - "webhookGroups": {}, - "websocketChannels": {}, -} -`; diff --git a/packages/cli/generation/ir-migrations/src/migrations/v9-to-v8/__test__/__snapshots__/migrateFromV9ToV8.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v9-to-v8/__test__/__snapshots__/migrateFromV9ToV8.test.ts.snap index 200b7a695bd..190315daacd 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v9-to-v8/__test__/__snapshots__/migrateFromV9ToV8.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v9-to-v8/__test__/__snapshots__/migrateFromV9ToV8.test.ts.snap @@ -266,270 +266,3 @@ exports[`migrateFromV9ToV8 > migrates maps to list 1`] = ` "webhookGroups": {}, } `; - -exports[`migrateFromV9ToV8 migrates maps to list 1`] = ` -{ - "apiDisplayName": undefined, - "apiDocs": undefined, - "apiName": { - "camelCase": { - "safeName": "api", - "unsafeName": "api", - }, - "originalName": "api", - "pascalCase": { - "safeName": "API", - "unsafeName": "API", - }, - "screamingSnakeCase": { - "safeName": "API", - "unsafeName": "API", - }, - "snakeCase": { - "safeName": "api", - "unsafeName": "api", - }, - }, - "auth": { - "docs": undefined, - "requirement": "ALL", - "schemes": [], - }, - "basePath": undefined, - "constants": { - "errorInstanceIdKey": { - "name": { - "camelCase": { - "safeName": "errorInstanceID", - "unsafeName": "errorInstanceID", - }, - "originalName": "errorInstanceId", - "pascalCase": { - "safeName": "ErrorInstanceID", - "unsafeName": "ErrorInstanceID", - }, - "screamingSnakeCase": { - "safeName": "ERROR_INSTANCE_ID", - "unsafeName": "ERROR_INSTANCE_ID", - }, - "snakeCase": { - "safeName": "error_instance_id", - "unsafeName": "error_instance_id", - }, - }, - "wireValue": "errorInstanceId", - }, - }, - "environments": undefined, - "errorDiscriminationStrategy": { - "_visit": [Function], - "type": "statusCode", - }, - "errors": [], - "headers": [], - "pathParameters": [], - "rootPackage": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [], - "file": undefined, - "packagePath": [], - }, - "hasEndpointsInTree": false, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [ - "subpackage_file", - ], - "types": [], - "webhooks": undefined, - "websocket": undefined, - }, - "sdkConfig": { - "hasFileDownloadEndpoints": false, - "hasPaginatedEndpoints": false, - "hasStreamingEndpoints": false, - "isAuthMandatory": false, - "platformHeaders": { - "language": "X-Fern-Language", - "sdkName": "X-Fern-SDK-Name", - "sdkVersion": "X-Fern-SDK-Version", - "userAgent": undefined, - }, - }, - "serviceTypeReferenceInfo": { - "sharedTypes": [ - "type_file:StringType", - ], - "typesReferencedOnlyByService": {}, - }, - "services": [], - "subpackages": { - "subpackage_file": { - "docs": undefined, - "errors": [], - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "file", - "unsafeName": "file", - }, - "originalName": "file", - "pascalCase": { - "safeName": "File", - "unsafeName": "File", - }, - "screamingSnakeCase": { - "safeName": "FILE", - "unsafeName": "FILE", - }, - "snakeCase": { - "safeName": "file", - "unsafeName": "file", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "file", - "unsafeName": "file", - }, - "originalName": "file", - "pascalCase": { - "safeName": "File", - "unsafeName": "File", - }, - "screamingSnakeCase": { - "safeName": "FILE", - "unsafeName": "FILE", - }, - "snakeCase": { - "safeName": "file", - "unsafeName": "file", - }, - }, - "packagePath": [], - }, - "hasEndpointsInTree": false, - "name": { - "camelCase": { - "safeName": "file", - "unsafeName": "file", - }, - "originalName": "file", - "pascalCase": { - "safeName": "File", - "unsafeName": "File", - }, - "screamingSnakeCase": { - "safeName": "FILE", - "unsafeName": "FILE", - }, - "snakeCase": { - "safeName": "file", - "unsafeName": "file", - }, - }, - "navigationConfig": undefined, - "service": undefined, - "subpackages": [], - "types": [ - "type_file:StringType", - ], - "webhooks": undefined, - "websocket": undefined, - }, - }, - "types": [ - { - "availability": { - "message": undefined, - "status": "GENERAL_AVAILABILITY", - }, - "docs": undefined, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "file", - "unsafeName": "file", - }, - "originalName": "file", - "pascalCase": { - "safeName": "File", - "unsafeName": "File", - }, - "screamingSnakeCase": { - "safeName": "FILE", - "unsafeName": "FILE", - }, - "snakeCase": { - "safeName": "file", - "unsafeName": "file", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "file", - "unsafeName": "file", - }, - "originalName": "file", - "pascalCase": { - "safeName": "File", - "unsafeName": "File", - }, - "screamingSnakeCase": { - "safeName": "FILE", - "unsafeName": "FILE", - }, - "snakeCase": { - "safeName": "file", - "unsafeName": "file", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "stringType", - "unsafeName": "stringType", - }, - "originalName": "StringType", - "pascalCase": { - "safeName": "StringType", - "unsafeName": "StringType", - }, - "screamingSnakeCase": { - "safeName": "STRING_TYPE", - "unsafeName": "STRING_TYPE", - }, - "snakeCase": { - "safeName": "string_type", - "unsafeName": "string_type", - }, - }, - "typeId": "type_file:StringType", - }, - "referencedTypes": [], - "shape": { - "_type": "alias", - "aliasOf": { - "_type": "primitive", - "primitive": "STRING", - }, - "resolvedType": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - ], - "variables": [], - "webhookGroups": {}, -} -`;